Stephen Hemminger | 1 Oct 2011 02:18
Favicon

Re: Network problem with bridge and virtualbox

On Thu, 29 Sep 2011 08:49:41 -0400
William Thompson <wt <at> electro-mechanical.com> wrote:

> 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
(Continue reading)

William Thompson | 3 Oct 2011 13:30

Re: Network problem with bridge and virtualbox

On Fri, Sep 30, 2011 at 05:18:39PM -0700, Stephen Hemminger wrote:
> On Thu, 29 Sep 2011 08:49:41 -0400
> William Thompson <wt <at> electro-mechanical.com> wrote:
> 
> > 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
> > 
(Continue reading)


Gmane