Page 1 of 1

Can't ping after adding eth1 to bridge (br0)

Posted: 28. Dec 2008, 03:31
by hikerguy
I'm running Ubuntu and trying to set it up so I can also run WinXP inside Vbox. Before tinkering with the brctl command, I can ping any URL (e.g. google.com). Once I've added my eht1 interface to the bridge (br0), all I can ping is my local router. I can't even ping the DSL modem. Can someone give me a hand with this? Here's my config:

-----------------

Code: Select all

k$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
#
# auto br0
# iface br0 inet dhcp
# bridge_ports eth1 vbox0
#
 auto br0
 iface br0 inet static
 address 192.168.2.16
 network 192.168.2.0 
 netmask 255.255.255.0 
 gateway 192.168.2.1 
 bridge_ports eth1 vbox0
 dns-nameservers 192.168.2.1
#
 auto eth1 
 iface eth1 inet static
 address 192.168.2.15
 network 192.168.2.0 
 netmask 255.255.255.0 
 gateway 192.168.2.1 

Code: Select all

k$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
#
# auto br0
# iface br0 inet dhcp
# bridge_ports eth1 vbox0
#
 auto br0
 iface br0 inet static
 address 192.168.2.16
 network 192.168.2.0 
 netmask 255.255.255.0 
 gateway 192.168.2.1 
 bridge_ports eth1 vbox0
 dns-nameservers 192.168.2.1
#
 auto eth1 
 iface eth1 inet static
 address 192.168.2.15
 network 192.168.2.0 
 netmask 255.255.255.0 
 gateway 192.168.2.1 

Code: Select all

$ brctl show
bridge name	bridge id		STP enabled	interfaces
br0		8000.0011092d55a0	no		eth1
							vbox0

Thanks!

Andy

Posted: 30. Dec 2008, 23:25
by Sasquatch
Is eth1 a wireless adapter, or a wired NIC? Wireless won't work with a bridge. The config itself is also strange. You posted the same output twice, which is the Host and which is the Guest? Eth1 does not need the static and auto options, that is handled by the bridge. Comment out the auto eth1 line, change static to manual and you're done for that.

Did you try the new 2.1.0 yet? That has easier HIF setup where you select the interface you want to use directly. There are a few bugs that might stop you from upgrading though.

Please be more specific, you haven't given all the info we need.

Posted: 31. Dec 2008, 19:01
by hikerguy
Hello Sasquatch,

You hit the nail on the head. I upgraded to v2.1.0 last night and BAMM! it worked. I was even able to remove the br0 info in the /etc/network/interfaces file. Much, much easier. Very big improvement. Thanks for getting back to me.

Andy