Linux : udev renamed network interface eth0 to eth1 on RHEL6

By | September 12, 2011

In some rare circumstances, your system may boot without network interface and you discover the following message in dmesg :

udev: renamed network interface eth0 to eth1

Since RHEL6, kudzu is no longer available since the kernel and udev take care of hardware changes.  So, you need to modify using udev to get back you’re eth0 interface. Edit the following file “/etc/udev/rules.d/70-persistent-net.rules“.

Normally, you should have a double entry (eth0 and eth1) with different MAC address. This often happen when the OS is virtualized. Just delete the whole entry for eth1 and then rename eth1 to eth0 on the following entry and reboot. There is how the udev network interface entry look like :

# PCI device 0x8086:0x100f (e1000)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:34:0f:38", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"