From owner-freebsd-net@FreeBSD.ORG Wed Mar 7 20:53:15 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4069E16A402 for ; Wed, 7 Mar 2007 20:53:15 +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 CF4EC13C4B5 for ; Wed, 7 Mar 2007 20:53:14 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id A40D01CC59; Thu, 8 Mar 2007 09:53:11 +1300 (NZDT) Date: Thu, 8 Mar 2007 09:53:11 +1300 From: Andrew Thompson To: Corey Smith Message-ID: <20070307205311.GB54828@heff.fud.org.nz> References: <8061fbee0703071206w58c1985fl78d7110a040fa144@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8061fbee0703071206w58c1985fl78d7110a040fa144@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-net@freebsd.org Subject: Re: 802.1q bridged trunk with STP 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: Wed, 07 Mar 2007 20:53:15 -0000 On Wed, Mar 07, 2007 at 03:06:10PM -0500, Corey Smith wrote: > Please CC: me as I am off list. > > I want to be able to create an 802.1q bridged trunk. This is nice if > you want layer 1 and 2 redundancy on an arbitrary number of logical > networks with only two physical network interfaces. > > ifconfig bridge18 inet 192.168.1.50/24 addm vlan18 stp vlan18 addm vlan118 \ > stp vlan118 up > ifconfig: unable to set bridge flags: Invalid argument > > This works if you don't enable stp but gives the error above > otherwise. Without using spanning tree you can't actually plug it > into your switch. I believe that MST support is needed in order to use spanning tree with vlans but do be honest I havnt looked too far into it. The stp code in 6.2-RELEASE explicitly does not allow stp to be enabled on a vlan and people who have removed this check have reported that it does indeed not work. HEAD and 6-STABLE both now have RSTP support in it and MST is an extension of RSTP so could be added with some work. I plan to do this sometime this year but you are welcome to kick it off. cheers, Andrew