From owner-freebsd-net@FreeBSD.ORG Tue Sep 2 21:17:02 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCECF8B3 for ; Tue, 2 Sep 2014 21:17:01 +0000 (UTC) Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.wp.pl", Issuer "Thawte SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5A12914A6 for ; Tue, 2 Sep 2014 21:17:00 +0000 (UTC) Received: (wp-smtpd smtp.wp.pl 18919 invoked from network); 2 Sep 2014 22:16:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1409689015; bh=69Y72XE9BGxh+VgRqeqh4IMIV7jWZLVnrFgKqvRvjos=; h=From:To:CC:Subject; b=IAmjKqO62lrASdICEdPl/0pQWR7GK8vB7e1humpr3yBB2GdY17IRCTVhpWFto9FH9 JcvQamar8qiAl9pMaZOEji11dpPy1NsxiLIxMu2CYKoxsVMf3eveWJdHvIw2UbW3+7 ujes/ox31QLtBAMhvsJ3cABwXCBDcSeYCdvXMzro= Received: from 250-210-250-178.ftth.cust.kwaoo.net (HELO [10.0.5.104]) (marek_sal@[178.250.210.250]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with AES128-SHA encrypted SMTP for ; 2 Sep 2014 22:16:55 +0200 Message-ID: <540625B4.6040907@wp.pl> Date: Tue, 02 Sep 2014 22:16:52 +0200 From: Marek Salwerowicz User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: "Dustin J. Mitchell" , Peter Jeremy Subject: Re: bridging VLAN interfaces and STP References: <20120827094956.GA93853@server.rulingia.com> <20120901215514.GA84970@server.rulingia.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [IePU] Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 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, 02 Sep 2014 21:17:02 -0000 Hello Dustin, W dniu 2012-09-02 o 01:13, Dustin J. Mitchell pisze: > On Sat, Sep 1, 2012 at 5:55 PM, Peter Jeremy wrote: >> >That looks like RSTP is enabled on both bridge10 and bridge20 but is >> >not seeing incoming [R]STP packets. Are you sure the switch connected >> >to vr1 is configured with per-VLAN STP (this is probably not the >> >switch default). >> > >> >Have you tried running tcpdump on vr1 and checked that you are seeing >> >STP packets within the VLANs. > Actually, if you compare with my original ifconfig, you'll see that > this particular arrangement shows STP as enabled on the bridge, but > not on any of the members (no STP in their options. In the OP, you > can see that the vr{2,3} get STP in their flags > () while vr1.10 does not. > That, and the error message from the 'ifconfig bridge10 stp vr1.10' > command.. I'd like to ask if have you managed to figure out this issue? I am facing more or less the same problem I have set up multiple VLANs on my FreeBSD box and now would like to bridge WiFi adapter (wlan0) with only one vlan: When I try to configure bridge: % sudo ifconfig bridge create % sudo ifconfig bridge addm wlan0 % sudo ifconfig bridge addm vlan1200 bridge0: error setting interface capabilities on vlan1200 % sudo ifconfig bridge stp wlan0 % sudo ifconfig bridge0 stp vlan1200 ifconfig: unable to set bridge flags: Invalid argument % ifconfig bridge0 bridge0: flags=8802 metric 0 mtu 1500 ether 02:8e:2e:18:3e:00 nd6 options=9 id 04:f0:21:0f:77:d7 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 04:f0:21:0f:77:d7 priority 32768 ifcost 0 port 0 member: vlan1200 flags=143 ifmaxaddr 0 port 6 priority 128 path cost 20000 member: wlan0 flags=147 ifmaxaddr 0 port 11 priority 128 path cost 33333 proto rstp role designated state discarding If I change vlan1200 to physical interface, everything works without any problems.. Do you have any idea? Cheers, Marek