Complete Guide to Red Hat Enterprise Linux 9
with Grant McWilliams
Config Files Cheat Sheet
/etc/sysconfig/network-scripts/ifcfg-eth#
The /etc/sysconfig/network-scripts/ifcfg-eth# contains network settings for each network interface.
Static ip example:
DEVICE=eth0
BOOTPROTO=none
IPV6INIT=yes
MTU=1500
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Ethernet
HWADDR=[Link]
IPADDR=[Link]
NETMASK=[Link]
GATEWAY=[Link]
DNS1=[Link]
USERCTL=no
Dynamic IP example:
DEVICE=eth0
BOOTPROTO=dynamic
Argument Value
DEVICE= Network DeviceName (eth0, eth1)
BOOTPROTO= Static (none) or dynamic
IPV6INIT= Initialize IPv6
MTU= Maximum transmission unit
NM_CONTROLLED= Control with NetworkManager? (yes, no)
ONBOOT= Start interface on boot?
TYPE= Type of network card (Ethernet)
HWADDR= Hardware address (MAC)
Complete Guide to Red Hat Enterprise Linux 9 with Grant McWilliams 1 of 2
IPADDR= IP address
NETMASK= Network subnet mask
GATEWAY= Default gateway for the interface
DNS1= Nameserver for the interface
USERCTL= Type of network card (Ethernet)
Complete Guide to Red Hat Enterprise Linux 9 with Grant McWilliams 2 of 2