From owner-freebsd-net@FreeBSD.ORG Tue Apr 16 10:20:23 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8379B2D7 for ; Tue, 16 Apr 2013 10:20:23 +0000 (UTC) (envelope-from nbari@inbox.im) Received: from us3.route.mx (us3.route.mx [107.21.107.127]) by mx1.freebsd.org (Postfix) with ESMTP id 3F763A2 for ; Tue, 16 Apr 2013 10:20:22 +0000 (UTC) Received: (route-mx 19509 invoked from network); 16 Apr 2013 10:13:40 -0000 Received: from unknown (HELO nbari-z200.diz.la) (nbari@inbox.im@route.mx) (envelope-sender ) by us3.route.mx (route-mx) with CAMELLIA256-SHA encrypted SMTP for ; 16 Apr 2013 10:13:40 -0000 Message-ID: <516D2451.80105@inbox.im> Date: Tue, 16 Apr 2013 11:13:37 +0100 From: Nicolas de Bari Embriz Garcia Rojas User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130405 Thunderbird/17.0.5 MIME-Version: 1.0 To: Stefan Bethke Subject: Re: VirtualBox, if_bridge and bridged networking References: <0BD2971C-918F-423C-8D59-A2A3E3B02F04@lassitu.de> In-Reply-To: <0BD2971C-918F-423C-8D59-A2A3E3B02F04@lassitu.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2013 10:20:23 -0000 Try creating a tap interface and later bridge your VM to that tap. in your host create a bridge containing re0 and tap0. regards. On 04/16/2013 09:31, Stefan Bethke wrote: > Hey, > > I'm a bit stumped getting a (FreeBSD guest) VM to use bridged networking to work. The same VM works fine on a Mac OS X and an Ubuntu host, so I'm certain it's not the VMs setting. > > I'm running > # pkg info -g virtualbox* > virtualbox-ose-4.2.6 A general-purpose full virtualizer for x86 hardware > virtualbox-ose-kmod-4.2.6_4 VirtualBox kernel module for FreeBSD > on FreeBSD 9.1-STABLE r249476 amd64. > > My LAN gets to the host via vlan1 (attached to re0); which in turn is bridged via bridge0. IP configuration is on bridge0. > > It appears that frames sent from the guest make it to the host and machines connected to the LAN, but no replies appear to be getting back to the guest. I've tried bridging the guest to bridge0 as well as vlan1. > > If I configure the guest's network manually, I can see arp requests arriving on the host and the LAN; inside the guest I can't see any frames arriving. If I add arp entries manually on the guest, I can see pings going out, but the replies never make it back. > > I am running pf, but I don't see any rejected packets of pflog0 that correlate in any way. > > Is there a magic configuration bit that I'm missing? Or is there some incompatibility between if_bridge and ng_ether? > > > Thanks, > Stefan >