Page 1 of 1

bridge networking not working, linux does not see eth0

Posted: 27. Nov 2013, 05:57
by WayneG
I have three Unbuntu servers on my Ubuntu host machine. Each time that I've moved the guest machines to a new host I've had to play "plug and play" with the network interfaces numbers in etc/networking/interfaces in order to get static IP networking to come up.

I had to do the same this time and ended up at eth5 on two guest to get networking to work. but on one machine the guessing game is just not working... I've tried eth0 to eth9 with no good result. I can't seem to get networking to come up on this guest. My etc/networking/interface files look like this

# The primary network interface
auto eth5
iface eth5 inet static
address 192.168.2.3
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1

In Virutalbox networking have only one selection in bridge networking at that is eth0.

Can someone help out on this?

Thanks
Wayne

Re: bridge networking not working, linux does not see eth0

Posted: 27. Nov 2013, 12:17
by noteirak
This is not a Virtualbox problem but a guest OS problem - Virtualbox only provided the hardware, so your issue is not supported here.

I will still give you a hint : if you exported/imported the VM, then the MAC is reset, and the guest OS will consider this as a new interface and give it a new number. This is expected behaviour.
If you only copy the VM access, then you wouldn't have this issue since the MAC doesn't change.
Use the following command to list all your available interfaces :

Code: Select all

ifconfig -a

Re: bridge networking not working, linux does not see eth0

Posted: 27. Nov 2013, 15:28
by Perryg
By default Ubuntu is expecting eth0 for the default interface.
edit the /etc/udev/rules.d/70-persistent-net.rules or you can delete the rules and Linux will configure it on the next boot

Re: bridge networking not working, linux does not see eth0

Posted: 27. Nov 2013, 22:26
by WayneG
thanks for the replies... both were right. I continued to dig a bit last night... found this

problem solved
~~~~~~~~~~~~~

When you clone a virtual machine in VirtualBox and tick on the "Reinitialize the MAC address of all network cards", after start the new Linux OS for example Ubuntu you found out that the network interface could not bringing up, to solve simply remove the persistent-net.rules and reboot the virtual machine.

$ sudo rm -f /etc/udev/rules.d/70-persistent-net.rules

Ubuntu Linux restart network command

$ sudo /etc/init.d/networking restart