Primary Profile
The primary profile settings are found in /etcHostName
IP address
# cat /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0 ONBOOT=yes BOOTPROTO=none IPADDR=10.10.10.10 NETMASK=255.0.0.0 GATEWAY=10.10.10.11 TYPE=Ethernet USERCTL=no PEERDNS=yes IPV6INIT=no
Red Hat 7 & 8 routes
# cat /etc/sysconfig/static-routeseth0 net 10.10.0.0 netmask 255.255.0.0 gw 192.168.0.1
CentOS 3&4 RHEL 3&4 routes
# cat /etc/sysconfig/network-scripts/route-eth0GATEWAY0=192.168.0.1 NETMASK0=255.0.0.0 ADDRESS0=10.10.0.0
DNS
# cat /etc/resolv.confnameserver 158.43.240.3 nameserver 158.43.240.4
Default & Alternative Network Profiles
CentOS and Red Hat RHEL support multiple network profilesIP Address
# cat /etc/sysconfig/networking/profiles/default/ifcfg-eth0DEVICE=eth0 ONBOOT=yes BOOTPROTO=none IPADDR=10.10.10.10 NETMASK=255.0.0.0 GATEWAY=10.10.10.11 TYPE=Ethernet USERCTL=no PEERDNS=yes IPV6INIT=no
DNS
# cat /etc/sysconfig/networking/profiles/default/resolv.confnameserver 158.43.240.3 nameserver 158.43.240.4
NetworkCommands
REFERRERS
NetworkConfiguration