Cumulus Linux vs Cisco IOS - Spanning Tree Protocol
Issue
User already knows Cisco IOS format and wants translation to mstpd
(the spanning tree protocol daemon for Linux).
Refer to the STP parameter list 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 |
---|---|---|
Configured under the bridge | Global configuration command | Sets the bridge/VLAN maximum age to <max_age> seconds. The default is 20 for both Operating Systems. |
Configured under the bridge | Global configuration command | Sets the bridge/VLAN forward delay to <time> seconds. The default is 15 for both Operating Systems. |
Configured under the bridge | Global configuration 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. |
Configured under the bridge |
Global configuration 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." |
Configured under the bridge | Global configuration command | Sets the bridge/VLAN to a particular spanning-tree mode (MST, RSTP, etc) |
Configured under the bridge | 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 |
Configured under the bridge | Global configuration command | Sets the bridge/VLAN hello time to <time> seconds. The default is 2 for both operating systems. |
Configured under an interface stanza |
-interface configuration command | Configure the cost for a bridge/VLAN. The range is 1 to 200000000. Cisco derives the cost from the media speed of the interface. On Cumulus Linux the default is 0. |
Configured under the interface |
Global configuration command
-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. |
Configured under interface |
| 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. |
Configured under the interface |
-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. Cisco determines the link-type by the duplex settings (p2p for full and shared for half). |
Configured under the interface |
-interface configuration command | Enables/disables the ability of the port <port> in bridge <bridge> to take the root role. The default is no. |
Configured under the interface | Global configuration command, however only affects ports configured with
| Enables/disables the BPDU guard configuration |
Configured under the interface | Global configuration command, however only affects ports configured with
| Enables bpdufilter on a switch port, which filters BPDUs in both directions. |
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. |
Configured under the interface | Global configuration command | Enables/disables the bridge assurance capability |
Configured under the interface | Configured under the interface | Configure the port priority for an interface. The default for both operating systems is 128. |
Full Configuration Example
cumulus@switch:~$ cat /etc/network/interfaces
auto bridge
iface bridge
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
auto swp10
iface swp10
mstpctl-portpathcost 10