Red Hat / Cent OS networking config
/etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
/etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost.localdomain
/etc/sysconfig/network-scripts/ifcfg-<interface-name, i.e., eth0>
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.21
NETMASK=255.255.255.0
USERCTL=yes
HWADDR=00:0C:29:CA:5F:05
IPV6INIT=no
IPV6_AUTOCONF=no
ONBOOT=yes
GATEWAY=192.168.1.1
NETWORK=192.168.1.0
HOSTNAME=someHostName
/etc/resolv.conf
search axeda.com
nameserver 192.168.0.28
nameserver 192.168.0.23
/etc/hostname - set via above
CentOS network config
CentOS network config files
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
/etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost.localdomain
/etc/sysconfig/network-scripts/ifcfg-<interface-name, i.e., eth0>
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.21
NETMASK=255.255.255.0
USERCTL=yes
HWADDR=00:0C:29:CA:5F:05
IPV6INIT=no
IPV6_AUTOCONF=no
ONBOOT=yes
GATEWAY=192.168.1.1
NETWORK=192.168.1.0
HOSTNAME=someHostName
/etc/resolv.conf
search axeda.com
nameserver 192.168.0.28
nameserver 192.168.0.23
/etc/hostname - set via above
CentOS network config
CentOS network config files
Comments