With multiple NICs installed, udev would sometimes change order in which they were named. This leads to inconsistent network interface name between reboots. And NetworkManager also creates problems by renaming the interface to Auto_ethX. Ex: auto_eth0
Sometimes, we see that a device is continuously named wrongly or does not allow us to give a specific name. This happens because of rules defined in
If you can reboot the server, it is an easy process. Just delete this file and reboot.
This file can also be regenerated by running
echo add > /sys/class/net/eth0/uevent
The following file has the list of devices that the above script will look into: