bridge networking not working, linux does not see eth0

Discussions about using Linux guests in VirtualBox.
Post Reply
WayneG
Posts: 7
Joined: 15. Aug 2013, 17:19

bridge networking not working, linux does not see eth0

Post 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
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

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

Post 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
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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
WayneG
Posts: 7
Joined: 15. Aug 2013, 17:19

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

Post 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
Post Reply