Jumat, 10 Juli 2015

Ubuntu - Eth0 : Error while getting interface flags : No such device

This article is step-by-step tutorial how to fix a problem which occured after I restored my virtual machines from backup to my Esxi 5.5 server.
1
ifconfig

ifconfig when eth0 is not available
when I used lspci, result was
1
lspci

lspci result

Solution : 


Ubuntu keeps track of the association between MAC addresses and interface names in /etc/udev/rules.d/70-persistent-net.rules
When you restore the VM on a different server, the network connection has a different MAC. eth0 is still associated with the old MAC (because of this file), so the new MAC address is allocated the next available ethX interface. (Since you ended up with eth2, you probably have existing rules for eth0 and eth1)
You can edit that file and remove the old rules but unless you have some complicated networking requirements, just remove the file and reboot and you will find your network connection on eth0 as you originally expected.

sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.old
sudo reboot

Naturally, if you have followed the steps in the original post and changed /etc/network/interfaces then you need to revert that back to eth0 :-)
(“ifconfig -a” might have been useful for you!)

Source : https://blog.inventic.eu/2013/03/ubuntu-eth0-error-while-getting-interface-flags-no-such-device/

Tidak ada komentar:

Posting Komentar

Jumat, 10 Juli 2015

Ubuntu - Eth0 : Error while getting interface flags : No such device

This article is step-by-step tutorial how to fix a problem which occured after I restored my virtual machines from backup to my Esxi 5.5 server.
1
ifconfig

ifconfig when eth0 is not available
when I used lspci, result was
1
lspci

lspci result

Solution : 


Ubuntu keeps track of the association between MAC addresses and interface names in /etc/udev/rules.d/70-persistent-net.rules
When you restore the VM on a different server, the network connection has a different MAC. eth0 is still associated with the old MAC (because of this file), so the new MAC address is allocated the next available ethX interface. (Since you ended up with eth2, you probably have existing rules for eth0 and eth1)
You can edit that file and remove the old rules but unless you have some complicated networking requirements, just remove the file and reboot and you will find your network connection on eth0 as you originally expected.

sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.old
sudo reboot

Naturally, if you have followed the steps in the original post and changed /etc/network/interfaces then you need to revert that back to eth0 :-)
(“ifconfig -a” might have been useful for you!)

Source : https://blog.inventic.eu/2013/03/ubuntu-eth0-error-while-getting-interface-flags-no-such-device/

Tidak ada komentar:

Posting Komentar

Subscribe