root
:
~]# udevadm info /sys/class/net/ifname | grep ID_NET_NAME
where ifname is one of the interfaces listed by the following command:
~]$ ls /sys/class/net/
/usr/lib/udev/rules.d/60-net.rules
- from initscripts,
/usr/lib/udev/rules.d/71-biosdevname.rules
- from biosdevname,
/usr/lib/udev/rules.d/80-net-name-slot.rules
- from systemd
80-net-name-slot.rules
from /usr/
to /etc/
and edit the file appropriately. In other words, comment out or arrange schemes to be used in a certain order.
Example 8.1. Some interfaces have names from the kernel namespace (eth[0,1,2...]) while others are successfully renamed by udev
Example 8.2. In /var/log/messages or the systemd journal, renaming is seen to be done twice for each interface
initrd
image are likely to encounter this issue. The interface name is initially assigned (via biosdevname or udev or dracut parameters on the kernel command line) during early-boot while still in initrd
. Then after switching to real rootfs
, renaming is done a second time and a new interface name is determined by the /usr/lib/udev/rename_device
binary spawned by udev because of processing 60-net.rules. You can safely ignore such messages.
Example 8.3. Using naming scheme in ifcfg files with ethX names does not work