bridge.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [Bridge] RSTP, vlans and bridges
@ 2017-01-06 15:15 gellert grindelwald
  2017-01-07 17:47 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: gellert grindelwald @ 2017-01-06 15:15 UTC (permalink / raw)
  To: bridge

[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]

I tried to figure out how to setup RSTP on Linux with VLANs and bridges
involved and now am completely confused.

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 (like Cisco switches) reject 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


Another question: I also wonder how to configure RSTP in scenarios where I
have multiple bridges: say eth0 is trunk with vlan 42-42 allowed, vlan 42
is supposed to pass via hdlc0 and vlan 43 is supposed to go via hdlc1, so I
have two bridges. If i enable RSTP on both bridges it will (probably) run
independently on each bridge so I'll face problems soon?

[-- Attachment #2: Type: text/html, Size: 2692 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bridge] RSTP, vlans and bridges
  2017-01-06 15:15 [Bridge] RSTP, vlans and bridges gellert grindelwald
@ 2017-01-07 17:47 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2017-01-07 17:47 UTC (permalink / raw)
  To: gellert grindelwald; +Cc: bridge

On Fri, 6 Jan 2017 18:15:24 +0300
gellert grindelwald <grindelwaldus@gmail.com> wrote:

> I tried to figure out how to setup RSTP on Linux with VLANs and bridges
> involved and now am completely confused.
> 
> 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 (like Cisco switches) reject 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
> 
> 
> Another question: I also wonder how to configure RSTP in scenarios where I
> have multiple bridges: say eth0 is trunk with vlan 42-42 allowed, vlan 42
> is supposed to pass via hdlc0 and vlan 43 is supposed to go via hdlc1, so I
> have two bridges. If i enable RSTP on both bridges it will (probably) run
> independently on each bridge so I'll face problems soon?

1. If doing vlan and RSTP then you wan to use external Spanning Tree daemon mstp
  https://github.com/mstpd/mstpd
2. Learn to use modern linux network utils (iproute2) to configure network
and vlan.
  https://docs.cumulusnetworks.com/display/CL25/Spanning+Tree+and+Rapid+Spanning+Tree
   

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-07 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-06 15:15 [Bridge] RSTP, vlans and bridges gellert grindelwald
2017-01-07 17:47 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).