From owner-freebsd-net@FreeBSD.ORG Fri Mar 16 12:34:52 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1DF54106566B; Fri, 16 Mar 2012 12:34:52 +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 D5B728FC0C; Fri, 16 Mar 2012 12:34:51 +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 A1B3513686E; Fri, 16 Mar 2012 21:34:44 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by cherry2.sanpei.org (8.14.4/8.14.3) with ESMTP id q2GCYfCm005261; Fri, 16 Mar 2012 21:34:42 +0900 (JST) (envelope-from sanpei@sanpei.org) Date: Fri, 16 Mar 2012 21:34:41 +0900 (JST) Message-Id: <20120316.213441.1551145784576134237.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 21:34:44 +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 12:34:52 -0000 Hi, Thank you for your information. 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 - I use bridge1 for tap, because I use bridge0 for WI-FI HOSTAP - net0 is for my ehternet network ifconfig bridge1 create ifconfig bridge1 addm net0 ifconfig tap0 192.168.1.111 netmask 255.255.255.0 ifconfig bridge1 addm tap0 ifconfig bridge1 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.