Cumulus Linux vs Cisco IOS: Spanning Tree Protocol

Follow

{{table_of_contents}}

Issue

User already knows Cisco IOS format and wants translation to mstpd (spanning-tree daemon for Linux).

Please refer to the spanning tree protocol documentation for more information.

You can find the Cisco Configuration Guide used to interpret their commands here.

Spanning Tree Translation Table

Cumulus Linux Cisco Systems IOS Description
mstpctl-maxage 20
-configured under the bridge
spanning-tree vlan vlan-id max-age 20
-global configuration command
 Sets the bridge/VLAN maximum age to <max_age> seconds. The default is 20 for both Operating Systems.
mstpctl-fdelay 15
-configured under the bridge
spanning-tree vlan vlan-id forward-time seconds
-global configuration command 
 Sets the bridge/VLAN forward delay to <time> seconds. The default is  15 for both Operating Systems.
mstpctl-maxhops 20
-configured under the bridge
spanning-tree vlan vlan-id root primary [ diameter net-diameter [ hello-time seconds ]] 
-global confgiuration command
 Sets the bridge's maximum hops to <max_hops>. The default on Cumulus Linux is 20.  On Cisco the range is 2 to 7 with the default being 7.
mstpctl-txholdcount 6
-configured under the bridge
spanning-tree transmit hold-count value

-global confgiuration command

Sets the bridge/VLAN transmit hold count to <tx_hold_count>. The default is 6 for both Operating Systems.  Cisco describes this as "the number of BPDUs that can be sent before pausing for 1 second."
mstpctl-forcevers rstp
-configured under the bridge
spanning-tree mode{ pvst | mst | rapid-pvst }
-global configuration command
 Sets the bridge/VLAN to a particular spanning-tree mode (MST, RSTP, etc)
mstpctl-treeprio 32768
-configured under the bridge
spanning-tree vlan vlan-id priority priority
-global configuration command
Configure the switch's priority of a bridge/VLAN. The default for both operating systems is 32768. The range is a number between 0 and 65535
mstpctl-hello 2
-configured under the bridge
spanning-tree vlan vlan-id hello-time seconds
-global configuration command
Sets the bridge/VLAN hello time to <time> seconds. The default is 2 for both operating systems.
mstpctl-portpathcost swp1=0 swp2=0
-configured under the bridge
mstpctl-portpathcost 10
-configured under an interface stanza
spanning-tree vlan vlan-id cost cost

-interface configuration command

Configure the cost for a bridge/VLAN.  The range is 1 to 200000000.  For Cisco the cost is derived from the media speed of the interface.  On Cumulus Linux the default is 0.
mstpctl-portadminedge swp1=no swp2=no

-configured under the bridge

mstpctl-portadminedge yes

-configured under the interface

spanning-tree portfast default

-global configuration command

spanning-tree portfast

-interface configuration command

Immediately brings an interface configured as an access or trunk port to the forwarding state from a blocking state, bypassing the listening and learning states. 
mstpctl-portautoedge swp1=yes swp2=yes
-configured under the bridge
mstpctl-portautoedge yes
-configured under interface
No Comparable Command
 Reception of BPDUs on a port determines whether port is an edge port or not. When the port is receiving no BPDUs it becomes an edge port.
mstpctl-portp2p swp1=no swp2=no

-configured under the bridge

mstpctl-portp2p yes

-configured under the interface

spanning-tree link-type { point-to-point | shared }

-interface configuration command

Enables/disables the point-to-point detection mode of the port <port> in bridge <bridge>. The default is auto on Cumulus Linux.  On Cisco the link-type is determined by the duplex settings (full is p2p and half is shared). 
mstpctl-portrestrrole swp1=no swp2=no
-configured under the bridge
mstpctl-portrestrrole yes
-configured under the interface
spanning-tree guard root 

-interface configuration command

Enables/disables the ability of the port <port> in bridge <bridge> to take the root role. The default is no. 
mstpctl-bpduguard swp1=no swp2=no
-configured under the bridge
mstpctl-bpduguard yes
-configured under the interface
spanning-tree portfast bpduguard default
-global configuration command, however only affects ports configured with
spanning-tree portfast
Enables/disables the BPDU guard configuration
mstpctl-portbpdufilter swp1=yes swp2=yes
-configured under the bridge
mstpctl-portbpdufilter yes
-configured under the interface
spanning-tree portfast bpdufilter default
-global configuration command, however only affects ports configured with
spanning-tree portfast
Enables bpdufilter on a switch port, which filters BPDUs in both directions.
mstpctl-portrestrtcn swp1=no swp2=no
-configured under the bridge
mstpctl-portrestrtcn yes
-configured under the interface
 no equivalent Enables/disables the ability of the port <port> in bridge <bridge> to propagate received topology change notifications. The default is no.
mstpctl-portnetwork swp1=no
-configured under the bridge
mstpctl-portnetwork yes
-configured under the interface
spanning-tree bridge assurance
-global configuration command
Enables/disables the bridge assurance capability
mstpctl-treeportprio swp3=128
-configured under the bridge
mstpctl-treeportprio 128
-configured under the interface
spanning-tree port-priority priority
-configured under the interface
Configure the port priority for an interface.  The default for both operating systems is 128. 

Full Configuration Example

auto br0
iface br0
bridge-ports glob swp1-10
bridge-vlan-aware yes
bridge-vids 1-2000
bridge-pvid 1
bridge-stp on
mstpctl-maxhops 20
mstpctl-maxage 20

auto swp1
iface swp1
mstpctl-portadminedge yes

auto swp2
iface swp2
mstpctl-portautoedge yes

auto swp3
iface swp3
mstpctl-portp2p yes

auto swp4
iface swp4
mstpctl-portrestrrole yes

auto swp5
iface swp5
mstpctl-bpduguard yes

auto swp6
iface swp6
mstpctl-portbpdufilter yes

auto swp7
iface swp7
mstpctl-portrestrtcn yes

auto swp8
iface swp8
mstpctl-portnetwork yes

auto swp9
iface swp9
mstpctl-treeportprio 128
Have more questions? Submit a request

Comments

Powered by Zendesk