Ubuntu server eth0 renamed to eth1
I am running an Ubuntu server(9.04) virtual machine(virtualbox) on my computer at work and one night Win 7 rebooted after some security updates. After bringing the VM back up again the network didn't work.
The only thing I can see in the dmesg log is:
[] eth0: registered as PCnet/FAST III 79c973
[] udev: renamed network interface eth0 to eth1
My /etc/network/interfaces looks like:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
The iconfig shows only lo interface.
If I try:
sudo ifup eth0
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
...............
sudo ifup eth1
Ignoring unknown interface eth1=eth1
I am not a ubuntu geek, just use it as a git repository, any help to bring the network up again will be appreciated.
Solution 1:
Perhaps mac address or driver has changed for the network card.
Remove /etc/udev/rules.d/*-persistent-net.rules and reboot vm.
Solution 2:
Edit "/etc/udev/rules.d/70-persistent-net.rules
".