From owner-freebsd-net@FreeBSD.ORG Tue Apr 16 08:31:39 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9724F353 for ; Tue, 16 Apr 2013 08:31:39 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2a00:14b0:4200:32e0::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 5EBB6812 for ; Tue, 16 Apr 2013 08:31:39 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 8971C192A5C for ; Tue, 16 Apr 2013 08:31:31 +0000 (UTC) From: Stefan Bethke Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: VirtualBox, if_bridge and bridged networking Date: Tue, 16 Apr 2013 10:31:27 +0200 Message-Id: <0BD2971C-918F-423C-8D59-A2A3E3B02F04@lassitu.de> To: FreeBSD Net Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) 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 08:31:39 -0000 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 --=20 Stefan Bethke Fon +49 151 14070811