From owner-freebsd-net@FreeBSD.ORG Fri Oct 12 20:46:14 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 360D516A500 for ; Fri, 12 Oct 2007 20:46:14 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id D76DE13C47E for ; Fri, 12 Oct 2007 20:46:13 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 2C4201CC58; Sat, 13 Oct 2007 09:46:12 +1300 (NZDT) Date: Sat, 13 Oct 2007 09:46:12 +1300 From: Andrew Thompson To: Erik Osterholm , Jon Otterholm , freebsd-net@freebsd.org Message-ID: <20071012204612.GC78305@heff.fud.org.nz> References: <470E7C97.3080804@ide.resurscentrum.se> <20071011194653.GB40950@heff.fud.org.nz> <20071012195944.GA77625@aleph.cepheid.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071012195944.GA77625@aleph.cepheid.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: 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:46:14 -0000 On Fri, Oct 12, 2007 at 02:59:44PM -0500, Erik Osterholm wrote: > 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. > It doesnt need anything special to work. If you go 'ifconfig bridge0 addr' it should show the forwarding table with the correct vlan. 00:11:bb:48:ca:02 Vlana100 em0 1200 flags=0<> Can you tcpdump on em0, em1 and bridge0 to see where the arp is being dropped. cheers, Andrew