Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] VirtualBox bridge mode eth0

48 views
Skip to first unread message

Joseph

unread,
Apr 8, 2010, 12:20:03 AM4/8/10
to
I've activated Network adapter in VirtualBox (running Windows XP) but I it is not working.
It works only in NAT mode not in Bridge mode.
The worst part is when I enable bridge mode on second adapter the keyboard lock up, so I need to reboot the box :-/

I've copied the VM into my other box and VirtualBox Network part is working in both Bridge and NAT mode.
So I can not seem to understand why it is working on one box but not the other.

Does it have something to do with Promiscuous Mode?

--
Joseph

Nikos Chantziaras

unread,
Apr 8, 2010, 7:10:02 AM4/8/10
to

Promiscuous Mode is needed for bridging to work. This is why NAT mode
is preferable, btw, unless you have a good reason to use bridging.

Fernando Antunes

unread,
Apr 8, 2010, 7:10:02 AM4/8/10
to
On Thu, Apr 8, 2010 at 1:11 AM, Joseph <sysc...@gmail.com> wrote:
I've activated Network adapter in VirtualBox (running Windows XP) but I it is not working. It works only in NAT mode not in Bridge mode.
I'm running VirtualBox Binary in bridge mode (host Gentoo, guest XP). I'm not sure, but did you configure bridge support in your Linux kernel ?
 

Joseph

unread,
Apr 8, 2010, 9:30:03 AM4/8/10
to
On 04/08/10 07:40, Fernando Antunes wrote:
>On Thu, Apr 8, 2010 at 1:11 AM, Joseph <sysc...@gmail.com> wrote:
>
>> I've activated Network adapter in VirtualBox (running Windows XP) but I it
>> is not working. It works only in NAT mode not in Bridge mode.
>>
>I'm running VirtualBox Binary in bridge mode (host Gentoo, guest XP). I'm
>not sure, but did you configure bridge support in your Linux kernel ?

Good suggestion, I just need to find it.
Which option is it?

--
Joseph

Joseph

unread,
Apr 8, 2010, 9:50:01 AM4/8/10
to

How to check if network card is set/support "promiscuose" mode?
I know to set it is:
ifconfig eth0 promisc

I need to mount some directory via samba to backup some windows files and in NAT mode was not able to mount the Windows XP directory, it bridge mode
samba has no problem mounting windows directory.

--
Joseph

Fernando Antunes

unread,
Apr 8, 2010, 12:40:02 PM4/8/10
to



Probally you are using virtualbox greater than 2.1. Just do this :
Networking --->
Networking Options --->
<*> 802.1d Ethernet Bridging
and loaded this three modules. I believe the second one is mandatory to bridge.
vboxnetadp             
vboxnetflt            
vboxdrv              

More information here :

http://en.gentoo-wiki.com/wiki/Virtualbox#Bridged


 
--
Joseph


Joseph

unread,
Apr 8, 2010, 1:00:02 PM4/8/10
to

I don't think I need this option:
<*> 802.1d Ethernet Bridging
as according to gentoo wiki:
...Note: The following steps are not necessary for setting up Host Interface on VirtualBox >= 2.1. "

I'm using VirtualBox-bin 3.1.6
and on my two other systems AMD quad core and Intel Quad-core Bridge networking works OK without: <*> 802.1d Ethernet Bridging

--
Joseph

Joseph

unread,
Apr 8, 2010, 1:20:03 PM4/8/10
to
On 04/08/10 13:33, Fernando Antunes wrote:
>
>Probally you are using virtualbox greater than 2.1. Just do this :
>
>Networking --->
> Networking Options --->
> <*> 802.1d Ethernet Bridging
>
>and loaded this three modules. I believe the second one is mandatory to
>bridge.
>vboxnetadp
>vboxnetflt
>vboxdrv
>
>More information here :
>
>http://en.gentoo-wiki.com/wiki/Virtualbox#Bridged

No, it is defiantly not the option, when I compile it in VirtualBox will not start and it freezes my box, mouse is not even responding.

--
Joseph

Kyle Bader

unread,
Apr 8, 2010, 2:00:02 PM4/8/10
to
CONFIG_BRIDGE :)

--
Sent from my mobile device


Kyle

Joseph

unread,
Apr 8, 2010, 2:30:02 PM4/8/10
to
On 04/08/10 10:55, Kyle Bader wrote:
>CONFIG_BRIDGE :)

grep -i config_bridge .config
# CONFIG_BRIDGE is not set

CONFIG_BRIDGE refers to iptable (netfilter) I think; beside on my other two boxes CONFIG_BRIDGE is not set and bridge in VirtualBox is working OK.
The only box that VM bridge network is not working is Intel ATOM 330 with with RTL8168c/8111c network card.
It seems to me this card support Promiscuous Mode
http://developer.novell.com/yes/70604.htm
I hope the one in the kernel does.

--
Joseph

Mick

unread,
Apr 12, 2010, 2:40:03 PM4/12/10
to
On Thursday 08 April 2010 14:45:49 Joseph wrote:
> On 04/08/10 13:40, Nikos Chantziaras wrote:
> >On 04/08/2010 07:11 AM, Joseph wrote:
> >>I've activated Network adapter in VirtualBox (running Windows XP) but I
> >>it is not working. It works only in NAT mode not in Bridge mode.
> >>The worst part is when I enable bridge mode on second adapter the
> >>keyboard lock up, so I need to reboot the box :-/
> >>
> >>I've copied the VM into my other box and VirtualBox Network part is
> >>working in both Bridge and NAT mode.
> >>So I can not seem to understand why it is working on one box but not the
> >>other.
> >>
> >>Does it have something to do with Promiscuous Mode?
> >
> >Promiscuous Mode is needed for bridging to work. This is why NAT
> >mode is preferable, btw, unless you have a good reason to use
> >bridging.
>
> How to check if network card is set/support "promiscuose" mode?
> I know to set it is:
> ifconfig eth0 promisc

If you run ifconfig eth0 it should show you in the details of the interface if
it is running in promiscuous mode.

--
Regards,
Mick

signature.asc
0 new messages