From owner-freebsd-net@FreeBSD.ORG Fri Oct 12 20:16:34 2007 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 BBD0F16A418; Fri, 12 Oct 2007 20:16:34 +0000 (UTC) (envelope-from erik@cepheid.org) Received: from mail.cepheid.org (aleph.cepheid.org [72.232.60.94]) by mx1.freebsd.org (Postfix) with ESMTP id A072613C447; Fri, 12 Oct 2007 20:16:34 +0000 (UTC) (envelope-from erik@cepheid.org) Received: by mail.cepheid.org (Postfix, from userid 1006) id A88A59B4048; Fri, 12 Oct 2007 14:59:44 -0500 (CDT) Date: Fri, 12 Oct 2007 14:59:44 -0500 From: Erik Osterholm To: Andrew Thompson Message-ID: <20071012195944.GA77625@aleph.cepheid.org> Mail-Followup-To: Erik Osterholm , Andrew Thompson , Jon Otterholm , freebsd-net@freebsd.org References: <470E7C97.3080804@ide.resurscentrum.se> <20071011194653.GB40950@heff.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071011194653.GB40950@heff.fud.org.nz> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org, Jon Otterholm Subject: Re: if_bridge on a vlan-trunk 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, 12 Oct 2007 20:16:34 -0000 On Fri, Oct 12, 2007 at 08:46:53AM +1300, Andrew Thompson wrote: > On Thu, Oct 11, 2007 at 09:42:15PM +0200, Jon Otterholm wrote: > > Hi. > > > > Does anyone know if it is possible to put a transparent bridge on a > > vlan-trunk? > > As from rev1.100 of if_bridge back in June it will correctly use the > vlan number if the forwarding table so it is now possible to bridge a > vlan trunk. Is this all you need? (7+ only, it wont be in 6-stable) Does anything special need to be done in order for this to work? I've got a machine running a recent snapshot (7.0-CURRENT-200709) where it simply isn't bridging the trunk. It looks like ARP isn't getting passed. If I remove the FreeBSD box from the line, everything works. If I explicitly create VLANs interfaces on the FreeBSD box and just bridge the VLAN interfaces, it works. em0: flags=8943 metric 0 mtu 1500 options=88 ether 00:30:48:43:7e:dc media: Ethernet autoselect (100baseTX ) status: active em1: flags=8943 metric 0 mtu 1500 options=88 ether 00:30:48:43:7e:dd media: Ethernet autoselect (1000baseTX ) status: active plip0: flags=108810 metric 0 mtu 1500 lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 bridge0: flags=8843 metric 0 mtu 1500 ether 2e:8d:bb:a9:15:94 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: em1 flags=143 member: em0 flags=143 FreeBSD 7.0-CURRENT-200709 FreeBSD 7.0-CURRENT-200709 #0: Tue Sep 11 04:44:48 UTC 2007 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Thanks, Erik