SlideShare a Scribd company logo
8
Most read
15
Most read
16
Most read
Manage Linux Networking
Static IP vs Dynamic IP
Feature Static IP Dynamic IP
Configuratio
n
Manually set in device's network
settings or by network administrator
Automatically assigned by DHCP
(Dynamic Host Configuration Protocol)
server
Stability Remains constant, providing
consistent access to network
resources
Can change periodically or with each
network connection
Network
Monitoring
Easier to monitor and track devices
due to predictable addresses
May require more sophisticated
monitoring systems to track changing
addresses
Suitable for Servers, networked devices
requiring constant and predictable
access.
Home network & networks with frequent
changes in devices/ configurations
● Network Interface: Hardware/software component that connects a
device to a network.
● MAC Address: Unique identifier assigned to a network interface by
its manufacturer.
● Subnet Mask: Divides an IP address into network and host parts.
● Gateway: Entry and exit point for a network, enabling
communication between devices on different networks.
● DNS (Domain Name System): Translates human-readable domain
names into IP addresses.
OS Network Components
Two ways to get ip address:
1. Command: ifconfig
2. Command: ip addr
Check system gateway information
● Command: netstat-rnv
To get the information about the domain and DNS server address
● Command: nslookup <site-name>
Verify 'NetworkManager' service status
● Command: systemctl status NetworkManager
Manage network interfaces with nmcli
CLI based tool to inspect available network interfaces
● Command: nmcli
Modify a network interface to set a static IPv4 address
● Command: nmcli connection modify <interface_name> ipv4.addresses
<static_ip_address>
Set the gateway address for a network interface
● Command: nmcli connection modify <interface_name> ipv4.gateway
<gateway_ip_address>
Ip and gateway configuration
Change IP assignment method to manual
● Command: nmcli connection modify <interface_name> ipv4.method
<method>
DNS Configuration
Set the DNS server
● Command: nmcli connection modify <interface_name> ipv4.dns
<dns_address>
Restart the network interface
● Command: nmcli connection down <interface_name> &&
nmcli connection up <interface_name>
Add secondary ipv4 address to the interface
● Command: nmcli connection modify <interface_name>
+ipv4.addresses <secondary_ipv4_address>
Note: Restart and confirm the changes
Network Configuration Using nmtui
1. Text-based interface for managing and configuring network settings
Command: nmtui
3. Choose the interface to edit its configuration
4. Add the ip address while navigating to the IP Address configuration
Access the network configuration scripts
● Command: cd <path_to_network_scripts_directory>
Network files
Review the contents of the 'hosts' file
● Command: cat <path_to_hosts_file>
Note: The file stores the system's hostname, and changes will take effect after a
reboot
Modify the DNS server address in the system's resolver configuration file
● Command: sudo vi /etc/resolv.conf
View the system configuration file that specifies the order and sources for
system database lookups
● Command: sudo cat <path_to_configuration_file>
Basic Commands
● ping-primary TCP/IP command used to troubleshoot connectivity,
reachability
● traceroute- Trace the route taken by the packets to reach the target device
● tcpdump-Captures and analyzes network traffic passing through a specific
interface
● ethtool-To get ethernet adapter details of a network interface
● dig-Get the information about domain names, commonly used for
troubleshooting DNS issues

More Related Content

DOCX
Networking DHCP server Setup Reports
PDF
configure a DHCP server on Fedora.pdf
PPT
Wintel ppt for dhcp
PPT
Session 6 Tp 6
PPTX
PPTX
dynamichost configuration protocol
PPT
PPT
CCNA Network Services
Networking DHCP server Setup Reports
configure a DHCP server on Fedora.pdf
Wintel ppt for dhcp
Session 6 Tp 6
dynamichost configuration protocol
CCNA Network Services

Similar to Manage Networking in RHEL - RHCSA (RH124).pdf (20)

PPT
Networking For Application Developers by Roy Kim
PPT
Lecture 14
PPTX
MANUAWAN FL_NETWORKING_CONFIGURATION.pptx
PPTX
MTCNA Show.pptx
PDF
Module17 nat v2
PPT
CCNP.ppt
PPTX
DNS,SMTP and POP3
PPTX
MikroTik Basic Training Class - Online Moduls - English
PPT
LinuxWeek13.ppt
PPT
Durai presentation of dhcp
PDF
DYNAMIC HOST CONFIGURATION PROTOCOL
PDF
14047721
PPTX
Dynamic Host Configuration Protocol ( DHCP).pptx
PPT
Apend. networking linux
PPTX
CCN CEP.pptx
PPT
Vpnppt1884
PPTX
Dhcp server configuration
Networking For Application Developers by Roy Kim
Lecture 14
MANUAWAN FL_NETWORKING_CONFIGURATION.pptx
MTCNA Show.pptx
Module17 nat v2
CCNP.ppt
DNS,SMTP and POP3
MikroTik Basic Training Class - Online Moduls - English
LinuxWeek13.ppt
Durai presentation of dhcp
DYNAMIC HOST CONFIGURATION PROTOCOL
14047721
Dynamic Host Configuration Protocol ( DHCP).pptx
Apend. networking linux
CCN CEP.pptx
Vpnppt1884
Dhcp server configuration
Ad

More from RHCSA Guru (20)

PDF
Flatpak CLI Application Management & Building on RHEL.pdf
PDF
How to Set Up a RHEL 9 Virtual Lab for RHCSA Practice.pdf
PDF
CompTIA Linux (Plus) Exam Overview .pdf
PDF
Linux Professional Institute LPIC-1 Exam.pdf
PDF
LVM Management & Disaster Recovery - RHCSA+.pdf
PDF
Managing Multiple Logical Volumes - RHCSA+.pdf
PDF
Master Logical Volume Management - RHCSA+.pdf
PDF
Ansible Vault Encrypting and Protecting Secrets - RHCE.pdf
PDF
Ansible Variables in Playbook - RHCE.pdf
PDF
Comprehensive Guide to Ansible Application Roles.pdf
PDF
Using Tags in Ansible Playbooks RHCE.pdf
PDF
Comprehensive Guide to Ansible Roles - RHCE
PDF
Mastering Handlers, Conditions, and Loops in Ansible Playbooks - RHCE.pdf
PDF
Essential Ad-hoc Commands in Ansible - RHCE.pdf
PDF
RHEL in Shell Scripting Advanced - RHCSA+.pdf
PDF
Shell Scripting Intermediate - RHCSA+.pdf
PDF
Introduction to Shell Scripting - RHCSA+.pdf
PDF
Command Line Text Processing - RHCSA +.pdf
PDF
Mounting and Creating Links - RHCSA (RH124) .pdf
PDF
Basic Command Line Tools - RHCSA (RH124).pdf
Flatpak CLI Application Management & Building on RHEL.pdf
How to Set Up a RHEL 9 Virtual Lab for RHCSA Practice.pdf
CompTIA Linux (Plus) Exam Overview .pdf
Linux Professional Institute LPIC-1 Exam.pdf
LVM Management & Disaster Recovery - RHCSA+.pdf
Managing Multiple Logical Volumes - RHCSA+.pdf
Master Logical Volume Management - RHCSA+.pdf
Ansible Vault Encrypting and Protecting Secrets - RHCE.pdf
Ansible Variables in Playbook - RHCE.pdf
Comprehensive Guide to Ansible Application Roles.pdf
Using Tags in Ansible Playbooks RHCE.pdf
Comprehensive Guide to Ansible Roles - RHCE
Mastering Handlers, Conditions, and Loops in Ansible Playbooks - RHCE.pdf
Essential Ad-hoc Commands in Ansible - RHCE.pdf
RHEL in Shell Scripting Advanced - RHCSA+.pdf
Shell Scripting Intermediate - RHCSA+.pdf
Introduction to Shell Scripting - RHCSA+.pdf
Command Line Text Processing - RHCSA +.pdf
Mounting and Creating Links - RHCSA (RH124) .pdf
Basic Command Line Tools - RHCSA (RH124).pdf
Ad

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Spectroscopy.pptx food analysis technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation theory and applications.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
sap open course for s4hana steps from ECC to s4
Spectroscopy.pptx food analysis technology
NewMind AI Weekly Chronicles - August'25 Week I
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Empathic Computing: Creating Shared Understanding
Spectral efficient network and resource selection model in 5G networks
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
Encapsulation_ Review paper, used for researhc scholars
MIND Revenue Release Quarter 2 2025 Press Release
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation theory and applications.pdf
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Digital-Transformation-Roadmap-for-Companies.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Manage Networking in RHEL - RHCSA (RH124).pdf

  • 2. Static IP vs Dynamic IP Feature Static IP Dynamic IP Configuratio n Manually set in device's network settings or by network administrator Automatically assigned by DHCP (Dynamic Host Configuration Protocol) server Stability Remains constant, providing consistent access to network resources Can change periodically or with each network connection Network Monitoring Easier to monitor and track devices due to predictable addresses May require more sophisticated monitoring systems to track changing addresses Suitable for Servers, networked devices requiring constant and predictable access. Home network & networks with frequent changes in devices/ configurations
  • 3. ● Network Interface: Hardware/software component that connects a device to a network. ● MAC Address: Unique identifier assigned to a network interface by its manufacturer. ● Subnet Mask: Divides an IP address into network and host parts. ● Gateway: Entry and exit point for a network, enabling communication between devices on different networks. ● DNS (Domain Name System): Translates human-readable domain names into IP addresses. OS Network Components
  • 4. Two ways to get ip address: 1. Command: ifconfig
  • 6. Check system gateway information ● Command: netstat-rnv To get the information about the domain and DNS server address ● Command: nslookup <site-name>
  • 7. Verify 'NetworkManager' service status ● Command: systemctl status NetworkManager Manage network interfaces with nmcli
  • 8. CLI based tool to inspect available network interfaces ● Command: nmcli
  • 9. Modify a network interface to set a static IPv4 address ● Command: nmcli connection modify <interface_name> ipv4.addresses <static_ip_address> Set the gateway address for a network interface ● Command: nmcli connection modify <interface_name> ipv4.gateway <gateway_ip_address> Ip and gateway configuration
  • 10. Change IP assignment method to manual ● Command: nmcli connection modify <interface_name> ipv4.method <method> DNS Configuration Set the DNS server ● Command: nmcli connection modify <interface_name> ipv4.dns <dns_address>
  • 11. Restart the network interface ● Command: nmcli connection down <interface_name> && nmcli connection up <interface_name> Add secondary ipv4 address to the interface ● Command: nmcli connection modify <interface_name> +ipv4.addresses <secondary_ipv4_address> Note: Restart and confirm the changes
  • 12. Network Configuration Using nmtui 1. Text-based interface for managing and configuring network settings Command: nmtui
  • 13. 3. Choose the interface to edit its configuration 4. Add the ip address while navigating to the IP Address configuration
  • 14. Access the network configuration scripts ● Command: cd <path_to_network_scripts_directory> Network files
  • 15. Review the contents of the 'hosts' file ● Command: cat <path_to_hosts_file> Note: The file stores the system's hostname, and changes will take effect after a reboot
  • 16. Modify the DNS server address in the system's resolver configuration file ● Command: sudo vi /etc/resolv.conf
  • 17. View the system configuration file that specifies the order and sources for system database lookups ● Command: sudo cat <path_to_configuration_file>
  • 18. Basic Commands ● ping-primary TCP/IP command used to troubleshoot connectivity, reachability ● traceroute- Trace the route taken by the packets to reach the target device ● tcpdump-Captures and analyzes network traffic passing through a specific interface ● ethtool-To get ethernet adapter details of a network interface ● dig-Get the information about domain names, commonly used for troubleshooting DNS issues