CentOS 6.5 not bringing up network interface automatically after reboot [ifup eth0]

centosinterfacenetworking

I am having this issue with many of my CentOS servers where after a reboot the network interface fails to come up automatically. This is a big problem for me since I need to drive to the datacenter every time when this happens as a result from a remote reboot. Then on the console eth0 is down and I have to ifup this manually. Is there a specific config file I can check to prevent this from happening in the future?

Best Answer

Ensure that the file /etc/sysconfig/network-scripts/ifcfg-eth0 has the line

ONBOOT="yes"

See 9.2. Interface Configuration Files for details.