From owner-freebsd-net@FreeBSD.ORG Tue Sep 2 20:28:00 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 C9C4C934 for ; Tue, 2 Sep 2014 20:28:00 +0000 (UTC) Received: from mail-qg0-x235.google.com (mail-qg0-x235.google.com [IPv6:2607:f8b0:400d:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 87E2D1EB9 for ; Tue, 2 Sep 2014 20:28:00 +0000 (UTC) Received: by mail-qg0-f53.google.com with SMTP id z107so7262323qgd.12 for ; Tue, 02 Sep 2014 13:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=gGzNqjAt1AdeLhHZPAdyOB1Vd2BXlcy43Ba3bR8swkY=; b=u8R9ZSVSMT91QJlj+VU6pZ87ZdGlhti/MzoPBHhNOyPtEam0M78GWq1MQ9aSS5xPSy u+kXc/23dr4GeAKf0fX4drKSe4gdNAC7wl8ktPUSg48kOqA5r/b896oNpv/ccILRMO6D CHtbiPp3S4bFH7cdf9ZygrpZzUJnXQ5G7K5QuivihCioucBb93cWec5tHu7M+s9F9nUH dbjuK4TfgjpTM/d8i26EyDEJzPzM4RjskIjop+HR1fu0dNy35344uXXAA+oouQ08wZT0 E6nV3Rd1aSo/NbNHzW5nHmrZ5/wWxY/lAB2vweEi1GOcknZffzWbOeLVYmfiV9ALoJRf IxPA== MIME-Version: 1.0 X-Received: by 10.140.46.55 with SMTP id j52mr45525745qga.27.1409689679519; Tue, 02 Sep 2014 13:27:59 -0700 (PDT) Sender: djmitche@gmail.com Received: by 10.140.167.130 with HTTP; Tue, 2 Sep 2014 13:27:59 -0700 (PDT) In-Reply-To: <540625B4.6040907@wp.pl> References: <20120827094956.GA93853@server.rulingia.com> <20120901215514.GA84970@server.rulingia.com> <540625B4.6040907@wp.pl> Date: Tue, 2 Sep 2014 16:27:59 -0400 X-Google-Sender-Auth: qEQoTKKFyC5wNjiWTDyIj5CnXyY Message-ID: Subject: Re: bridging VLAN interfaces and STP From: "Dustin J. Mitchell" To: Marek Salwerowicz Content-Type: text/plain; charset=UTF-8 Cc: freebsd-net@freebsd.org, Peter Jeremy 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 20:28:00 -0000 No, I never figured it out. I never really even got Peter to understand the problem - he was still asking about whether STP packets were on the wire when I left the issue, yet the problem is interface configuration, not traffic. FreeBSD doesn't support configuring STP on VLAN interfaces - whether that's a bug or a feature is for someone else to decide. I can confirm it is still the case: hilbert ~ # sysctl -n kern.osrelease kern.ostype 9.2-RELEASE-p10 FreeBSD hilbert ~ # ifconfig bridge10 bridge10: flags=8843 metric 0 mtu 1500 ether 02:f4:a1:63:5a:0a inet6 fe80::f4:a1ff:fe63:5a0a%bridge10 prefixlen 64 scopeid 0xd inet 172.16.1.21 netmask 0xffffff00 broadcast 172.16.1.255 inet 172.16.1.1 netmask 0xffffffff broadcast 172.16.1.1 inet6 2001:470:1f11:826::1:15 prefixlen 64 inet6 2001:470:1f11:826::1:1 prefixlen 128 nd6 options=21 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: vr3 flags=143 ifmaxaddr 0 port 4 priority 128 path cost 55 member: vr2 flags=143 ifmaxaddr 0 port 3 priority 128 path cost 200000 member: vr1.10 flags=143 ifmaxaddr 0 port 9 priority 128 path cost 200000 hilbert ~ # ifconfig vr1.10 vr1.10: flags=8943 metric 0 mtu 1500 ether 00:00:24:ce:ec:95 inet6 fe80::200:24ff:fece:ec95%vr1.10 prefixlen 64 scopeid 0x9 nd6 options=21 media: Ethernet autoselect (100baseTX ) status: active vlan: 10 parent interface: vr1 hilbert ~ # ifconfig bridge10 stp vr1.10 ifconfig: unable to set bridge flags: Invalid argument Dustin On Tue, Sep 2, 2014 at 4:16 PM, Marek Salwerowicz wrote: > 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 > > >