Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2012 23:04:04 +0900 (JST)
From:      MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
To:        flo@freebsd.org
Cc:        freebsd-net@freebsd.org, freebsd-emulation@freebsd.org, freebsd@psconsult.nl
Subject:   Re: if_bridge stops when running virtualbox 4.1.8
Message-ID:  <20120316.230404.1590768603250781725.sanpei@sanpei.org>
In-Reply-To: <4F6097DF.8000400@freebsd.org>
References:  <20120304184529.GA57370@psconsult.nl> <20120314.215908.1291465837804728646.sanpei@sanpei.org> <4F6097DF.8000400@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Thank you for your information.

I mistake bridge interface settings. 
I use only one bridge interface(bridge0) and add ethernet, wi-fi and tap interfaces.

Now I can use both VirtualBox and WI-FI HOSTAP mode.
I refered below URL for TAP setup.
http://forums.freebsd.org/showthread.php?t=7153

1. load kernel modules
kldload /boot/kernel/if_bridge.ko
kldload /boot/kernel/if_tap.ko

2. setup tap interface
sysctl net.link.tap.user_open=1
chown root:vboxusers /dev/tap0
chmod 660 /dev/tap0

3. create tap interface and bridge interface
 - wlan0 is for WI-FI interface
 - net0 is for my ehternet network

ifconfig bridge0 create
ifconfig bridge0 addm net0
ifconfig tap0 192.168.1.111 netmask 255.255.255.0
ifconfig bridge0 addm tap0
ifconfig bridge0 addm wlan0
ifconfig bridge0 up

4. start virtualbox and change bridge adapter to tap0

5. enable WI-FI with src/tools/tools/net80211/scripts/setup.wpa2


/ Florian
>On 14.03.2012 13:59, MIHIRA Sanpei Yoshiro wrote:
>> Hi,
>>
>> I also have this problem.
>> My environment is below
>>    - FreeBSD-8.2-RELEASE/amd64 and FreeBSD-10-current/i386
>>      - Virtualbox 4.0.14(now I'm compiling new version 4.1.8)
>>      - WI-FI HOSTAP mode(if_bridge)
>>
>> I hope to use both function(VirtualBox and if_bridge) at same.
>> Please let us to know the appropriate settings.
>>
>>> I just noticed that when running Virtualbox 4.1.8 with a bridged
>>> network
>>> interface, I loose connectivity to another virtual host running in
>>> qemu
>>> whose network interface is bridged to my ethernet interface.  After
>>> stopping the Virtualbox instance, I regain connection to the virtual
>>> host under qemu.  Ifconfig doesn't give a clue.  Has anyone seen
>>> this
>>> behaviour or, even better, have a solution?
>>
>
>What i did was create another tap interface add that to the bridge
>and configure VirtualBox to use the tap interface. Seems to work for
>me.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120316.230404.1590768603250781725.sanpei>