Troubleshooting Auto_ethX issues

Blog of interesting data center technical tips / tasks / articles which we come across

Troubleshooting Auto_ethX issues

April 14, 2014 Linux Linux Networking Troubleshooting 0

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

/etc/udev/rules.d/70-persistent-net.rules

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

/lib/udev/write_net_rules
echo add > /sys/class/net/eth0/uevent

The following file has the list of devices that the above script will look into:

/lib/udev/rules.d/75-persistent-net-generator.rules

 

Leave a Reply

Your email address will not be published. Required fields are marked *