From owner-freebsd-emulation@FreeBSD.ORG Sun Nov 22 23:19:11 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E797E1065676; Sun, 22 Nov 2009 23:19:11 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF568FC12; Sun, 22 Nov 2009 23:19:11 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 53E441E0071B; Mon, 23 Nov 2009 00:19:10 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id nAMNGwE8068521; Mon, 23 Nov 2009 00:16:58 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id nAMNGwfV068520; Mon, 23 Nov 2009 00:16:58 +0100 (CET) (envelope-from nox) Date: Mon, 23 Nov 2009 00:16:58 +0100 (CET) From: Juergen Lock Message-Id: <200911222316.nAMNGwfV068520@triton8.kn-bremen.de> To: fli@shapeshifter.se X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <4B09992F.1080900@shapeshifter.se> References: <4B08DD0C.3080106@FreeBSD.org> <4B0963BF.1070908@shapeshifter.se> <4B0972B5.40903@FreeBSD.org> Organization: home Cc: freebsd-net@FreeBSD.org, freebsd-emulation@FreeBSD.org, Doug Barton Subject: bridging vs wifi, proxy arp broken on 8.0 rc? (was: Re: Bridged networking for virtualbox on -current?) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2009 23:19:12 -0000 In article <4B09992F.1080900@shapeshifter.se> you write: >Doug Barton wrote: >> Fredrik Lindberg wrote: >>> Doug Barton wrote: >>>> Is bridged networking for vbox supposed to work on -current? It says >>>> on the wiki that it does, but I tried it tonight and couldn't get it >>>> to work. >>>> >>>> I did see one page that suggested trying one of the Intel virtual >>>> nicks, which I did, no luck. >>>> >>>> If this is not supposed to work it would be nice to update the wiki, I >>>> spent quite a bit of time trying to get it to work that I hope was not >>>> wasted. >>>> >>> The short answer is that it should work. The long answer is that >>> it depends, for example it doesn't play nice when trying to >>> bridge a virtual nic with an if_bridge interface. >>> >>> A slightly more verbose description of your environment and what >>> error messages you're seeing would probably help. >> >> Thanks. I'm using an up to date -current, and my outgoing nic is >> wlan0. I followed the instructions on the wiki. I first tried the >> default nic in OSE then I tried the first Intel nic on the list (which >> required downloading drivers of course). >> > >Which type of virtual interface you're using in virtualbox doesn't >matter. However, it hits me that I've actually never really tested >the bridging code with a wireless interface and it looks like you've >hit a bug. I tried to use a wireless interface just now and it >doesn't work, need to look into why though. The problem with bridging and wifi is that on wifi you usually can use only a single mac address... There are ways around this (using nat or routing), and I actually played with the latter using qemu tap networking recently, but couldn't get the most ideal solution working the way I wanted on 8.0 rc - it only worked on 7-stable. (using a sub-subnet of the lan interface for the tap interface + guest, and routing + proxy arp for the guest ip.) I just wanted to try it again on the 8.0 rc box and now even setting up the prox arp entry fails with: arp: writing to routing socket: Invalid argument Commands I tried: arp -s pub only and arp -s auto pub only (both before even configuring the tap interface this time...) Mind you my 8.0 rc checkout is a little old (Sep 29) so maybe I should try updating first (I want to test 8-stable anyway one of these days) - but looking for `arp' in the relevant commitlogs also came up empty. :( (I'm Cc'ing -net just in case, please keep me on the Cc cause I'm not subscribed there...) Cheers, Juergen