Udev : renaming my network interface

While this is rather late, I fixed my issue by removing the

KERNEL="eth*",

part of the rule in /etc/udev/rules.d/70-persistent-net.rules file. This works because, once UDEV has renamed the device to "rename*", this part will stop the rule matching. So, removing it allows the correct name to be assigned to the correct device regardless of what UDEV has called it in the meantime.


In my case, the issue is coming from the fact that the mac address for each interface was set in three files :

/etc/udev/rules.d/70-persistent-net.rules
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1

We need consistency between ifcfg file and net.rules for the mac address.


I was able to resolve this by simply deleting /etc/udev/rules.d/70-persistent-net.rules and rebooting.

Tags:

Linux

Rhel

Udev