bridge.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: gellert grindelwald <grindelwaldus@gmail.com>
Cc: bridge@lists.linux-foundation.org
Subject: Re: [Bridge] RSTP, vlans and bridges
Date: Sat, 7 Jan 2017 09:47:25 -0800	[thread overview]
Message-ID: <20170107094725.45ef4887@xeon-e3> (raw)
In-Reply-To: <CAJiguwoUWDOYoeU9UPm9FoXhO3h9ZOhjrpW_ijyyG+9eBYMm0g@mail.gmail.com>

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
   

      reply	other threads:[~2017-01-07 17:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-06 15:15 [Bridge] RSTP, vlans and bridges gellert grindelwald
2017-01-07 17:47 ` Stephen Hemminger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170107094725.45ef4887@xeon-e3 \
    --to=stephen@networkplumber.org \
    --cc=bridge@lists.linux-foundation.org \
    --cc=grindelwaldus@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).