netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Network problem with bridge and virtualbox
@ 2011-09-29 12:49 William Thompson
  2011-09-29 21:56 ` Nicolas de Pesloüan
  2011-10-01  0:18 ` Stephen Hemminger
  0 siblings, 2 replies; 5+ messages in thread
From: William Thompson @ 2011-09-29 12:49 UTC (permalink / raw)
  To: netdev

Please keep me in the CC as I am not subscribed.

I'm using a 64-bit kernel 3.0.0 and virtualbox 4.1.2.

My problem is that I cannot ping the host from a virtual machine.

My bridge is configured as follows:
# brctl addbr br0
# brctl setfd br0 0
# brctl stp br0 off
# ifconfig br0 10.2.3.1 netmask 255.255.255.0

In the virtual machine, it is set to use br0 as it's interface (bridge mode)
and it's IP is 10.2.3.10.

The host gets packets from the vm, but the vm does not receive packets back. 

I have this same setup working on a 32-bit kernel 2.6.38.6 on another
machine with virtualbox 4.0.4.

I had a thought that the bridge on the host wasn't responding due to having
no ports configured so I added one of my spare ethernet cards to it as
follows:
# brctl addif br0 eth1
# ifconfig eth1 up

The card was plugged into a switch.  After doing this, the vm still could not
talk to the host.  I added a physical machine to the switch that eth1 was
connected to and configured it to 10.2.3.2.  I was able to ping 10.2.3.2 but
not 10.2.3.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-03 11:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-29 12:49 Network problem with bridge and virtualbox William Thompson
2011-09-29 21:56 ` Nicolas de Pesloüan
2011-09-30 14:36   ` William Thompson
2011-10-01  0:18 ` Stephen Hemminger
2011-10-03 11:30   ` William Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).