From owner-freebsd-net@FreeBSD.ORG Fri Mar 16 14:04:12 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F0A910656D0; Fri, 16 Mar 2012 14:04:12 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from mail1.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 25C948FC16; Fri, 16 Mar 2012 14:04:11 +0000 (UTC) Received: from cherry2.sanpei.org (j069113.ppp.asahi-net.or.jp [61.213.69.113]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id 855B3134B61; Fri, 16 Mar 2012 23:04:09 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by cherry2.sanpei.org (8.14.4/8.14.3) with ESMTP id q2GE45RX006431; Fri, 16 Mar 2012 23:04:05 +0900 (JST) (envelope-from sanpei@sanpei.org) Date: Fri, 16 Mar 2012 23:04:04 +0900 (JST) Message-Id: <20120316.230404.1590768603250781725.sanpei@sanpei.org> To: flo@freebsd.org From: MIHIRA Sanpei Yoshiro In-Reply-To: <4F6097DF.8000400@freebsd.org> References: <20120304184529.GA57370@psconsult.nl> <20120314.215908.1291465837804728646.sanpei@sanpei.org> <4F6097DF.8000400@freebsd.org> X-Mailer: Mew version 6.3 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (cherry2.sanpei.org [127.0.0.1]); Fri, 16 Mar 2012 23:04:09 +0900 (JST) Cc: freebsd-net@freebsd.org, freebsd-emulation@freebsd.org, freebsd@psconsult.nl Subject: Re: if_bridge stops when running virtualbox 4.1.8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 14:04:12 -0000 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.