Sunday, August 27, 2017
CentOS 6 Network Configuration
CentOS 6 Network Configuration
After installing CentOS 6.7 eth0 would not be listed in the output of the ifconfig command. This is because in /etc/sysconfig/network-scripts/ifcfg-eth0 the ONBOOT variable is set to no. If this is changed to yes, and the network service is restarted eth0 becomes active.
Example:
#vi /etc/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=[mac:address]
TYPE=Ethernet
UUID=[some long number]
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
Once these changes are saved, then restart the network service with:
#service network restart
If using DHCP, then CentOS can now be updated and other tools can be installed.
Labels:
6,
centos,
configuration,
network