Sunday, September 28, 2014

How to fix eth0 network interface on centos, redhat VM,

  1. Issue:-

  • ifup eth0

  • Device eth0 does not seem to be present, delaying initialization

Note:- The fix was quite easy, just have to remove the mac address from the ifcfg-eth0 file and also a 70-persistent-net.rules from the location /etc/udev/rules.d/ and then reboot the VM.

  1. So the steps for the fix would be:

  • rm -f /etc/udev/rules.d/70-persistent-net.rules
  • Edit the file ifcfg-eth0 and remove the UID and MACADDR:
  • vim /etc/sysconfig/networking/devices/ifcfg-eth0

  • Then just reboot the server, and on the next boot, we should have network connection!