[Bridge] RSTP on bridge with VLANS

Daria Alpert grindelwaldus at mail.ru
Sat Jan 7 08:50:37 UTC 2017

Hello everyone.
I looked through all the topics where combining VLANs with STP was discussed - there are few of them - but I am still not sure if this is possible to implement.
I am trying to bridge three interfaces, two of which are supposed to act as trunk (hdlc0 and hdlc1) and one is supposed to act as access port (eth0). I also need to enable RSTP on each interface included in bridge, but with the configuration listed below RSTP packets are sent via hdlc0 and hdlc1 tagged (!) so other devices rejects them. 

Here's my configuration:
ifconfig eth0 up

ifconfig hdlc0 up
ifconfig hdlc1 up
vconfig add hdlc0 42
vconfig add hdlc1 42
ifconfig hdlc0.42 up
ifconfig hdlc1.42 up

brctl addbr br1
brctl addif br1 eth0
brctl addif br1 hdlc0.42
brctl addif br1 hdlc1.42
ifconfig br1 up
brctl stp br1 on
What I already tried: I tried to create two bridges: first with vlan interfaces, second with physical interfaces included. I enabled RSTP on second bridge and also created ebtables rule so second bridge won't consume tagged packets. I supposed RSTP will converge in underlying physical interface so vlan interfaces will be blocked as well, but it's not like that: RSTP converges on physical interfaces, but vlan interface is still unblockes, so loop occur.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/bridge/attachments/20170107/5693ed0f/attachment.html>

More information about the Bridge mailing list