misc/179429: STP enabled tap bridge

Tiago Daniel Jacobs os at tdj.cc
Sat Jun 8 16:40:01 UTC 2013


>Number:         179429
>Category:       misc
>Synopsis:       STP enabled tap bridge
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 08 16:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tiago Daniel Jacobs
>Release:        8.1-RELEASE-p13
>Organization:
iMDT.com.br
>Environment:
FreeBSD ht2p7-router.ht2p.local 8.1-RELEASE-p13 FreeBSD 8.1-RELEASE-p13 #1: Fri Apr 12 10:58:43 EDT 2013     root at snapshots-8_1-amd64.builders.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8  amd64
>Description:
Create two tap interfaces and include in a bridge.
Enable STP on the interfaces.
The TAP interfaces will be "role disabled state discarding".
It avoid us to create redundant layer2 VPN using openvpn.
>How-To-Repeat:
ifconfig tap10 create
ifconfig tap11 create
ifconfig bridge1 create
ifconfig bridge1 addm tap10
bridge1 addm tap11
ifconfig bridge1


bridge1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:3e:35:58:14:01
        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 0 ifcost 0 port 0
        member: tap11 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 15 priority 128 path cost 2000000
        member: tap10 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 14 priority 128 path cost 2000000

ifconfig tap10 up
ifconfig tap11 up
ifconfig bridge1 stp tap10
ifconfig bridge1 stp tap11


ifconfig bridge1
bridge1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:3e:35:58:14:01
        id 00:bd:12:22:00:01 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
        root id 00:bd:12:22:00:01 priority 32768 ifcost 0 port 0
        member: tap11 flags=147<LEARNING,DISCOVER,STP,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 15 priority 128 path cost 2000000 proto rstp
                role disabled state discarding
        member: tap10 flags=147<LEARNING,DISCOVER,STP,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 14 priority 128 path cost 2000000 proto rstp
                role disabled state discarding

>Fix:
Not sure, but i found a discussion on the following link.

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/net/2008-09/msg00207.html


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list