3.9. MSTP Commands
3.9.1. spanning-tree enable
Command Purpose
Use this command to enable the Spanning Tree Protocol on a bridge. Use the no parameter to disable the Spanning Tree Protocol on the bridge.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree enable
no spanning-tree enable
Command Mode
Global Config
Default
Disable
Usage
None
Examples
This example shows how to global enable stp:
Switch# configure terminal
Switch(config)# spanning-tree enable
This example shows how to global disable stp:
Switch# configure terminal
Switch(config)# no spanning-tree enable
3.9.2. spanning-tree priority
Command Purpose
Use this command to set the bridge priority for the common instance for the default bridge. Using a lower priority indicates a higher likelihood of the bridge becoming root. Use the no parameter with this command to reset it to the default value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree priority PRIORITY
no spanning-tree priority
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
PRIORITY |
Bridge priority |
0-61440 |
Command Mode
Global Config
Default
The default priority is 32678 (or hex 0x8000)
Usage
This command is used to set the priority of the bridge. The priority values must be in multiples of 4096.
Examples
This example shows how to set the bridge priority.:
Switch# configure terminal
Switch(config)# spanning-tree priority 4096
This example shows how to reset the bridge priority to default value:
Switch# configure terminal
Switch(config)# no spanning-tree priority
Related Commands
show spanning-stree
3.9.3. spanning-tree instance priority
Command Purpose
Use this command to set the default bridge priority for an MST instance to the value specified. Use the no parameter with this command to restore the default value of the default bridge priority.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree instance INSTANCE_ID priority PRIORITY
no spanning-tree instance INSTANCE_ID priority
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE_ID |
Specify the instance ID |
1-4094 |
PRIORITY |
Specify the bridge priority |
0-61440 |
Command Mode
Global Config
Default
The default value of port priority for each instance is 32768.
Usage
The lower the priority of the bridge, there is higher likelihood that the bridge becomes a root bridge or a designated bridge for the LAN. The permitted range of values is 0-61440. The priority values must be in multiples of 4096.
Examples
This example shows how to set the priority for instance 1:
Switch# configure terminal
Switch(config)# spanning-tree instance 1 priority 0
Related Commands
show spanning-stree
3.9.4. spanning-tree forward-time
Command Purpose
Use this command to set the time after which (if this bridge is the root bridge) each port in the default bridge changes states to learning and forwarding. This value is used by all instances. Use the no parameter with this command to restore the default value of 15 seconds.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree forward-time SECONDS
no spanning-tree forward-time
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
SECONDS |
Forwarding time delay, in seconds, for the default bridge |
2023/4/30 |
Command Mode
Global Config
Default
The default value is 15 seconds
Usage
The allowable range for the forward time is 4-30 seconds. It is not advisable to set the value below 7 seconds.
Examples
This example shows how to set the forward time to 16 seconds:
Switch# configure terminal
Switch(config)# spanning-tree forward-time 16
This example shows how to reset the forward time to default value:
Switch# configure terminal
Switch(config)# no spanning-tree forward-time
Related Commands
show spanning-stree
3.9.5. spanning-tree hello-time
Command Purpose
Use this command to set the hello-time, the time in seconds after which (if this bridge is the root bridge) all the default bridges in a bridged LAN exchange Bridge Protocol Data Units (BPDUs). A very low value of this parameter leads to excessive traffic on the network, while a higher value delays the detection of topology change. This value is used by all instances.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree hello-time SECONDS
no spanning-tree hello-time
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
SECONDS |
Hello BPDU interval |
1-10, unit:second |
Command Mode
Global Config
Default
The default hello-time value is 2
Usage
The allowable range of values is 1-10 seconds.
Examples
This example shows how to set the hello time to 5 seconds:
Switch# configure terminal
Switch(config)# spanning-tree hello-time 5
This example shows how to reset the hello-time to default value:
Switch# configure terminal
Switch(config)# no spanning-tree hello-time
Related Commands
show spanning-stree
3.9.6. spanning-tree max-age
Command Purpose
Use this command to set the maximum age for the default bridge. Use the no parameter with this command to restore the default value of the maximum age.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree max-age SECONDS
no spanning-tree max-age
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
SECONDS |
The maximum time, in seconds, to listen for the root bridge |
6-40 |
Command Mode
Global Config
Default
The default value of bridge maximum age is 20 seconds.
Usage
Maximum age is the maximum time for which (if a bridge is the root bridge) a message is considered valid. This prevents the frames from looping indefinitely. The value of maximum age should be greater than twice the value of hello time plus 1, and less than twice the value of forward delay minus 1. The allowable range for maximum age is 6-40 seconds. Configure this value sufficiently high, so that a frame generated by root can be propagated to the leaf nodes without exceeding the maximum age.
Examples
This example shows how to set the max age to 12 seconds:
Switch# configure terminal
Switch(config)# spanning-tree max-age 12
This example shows how to reset the max age to default value:
Switch# configure terminal
Switch(config)# no spanning-tree max-age
Related Commands
show spanning-tree
3.9.7. spanning-tree max-hops
Command Purpose
Use this command to specify the maximum allowed hops for a BPDU in an MST region. This parameter is used by all the instances of the MST. To restore the default value, use the no parameter with this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree max-hops NUMBER
no spanning-tree max-hops
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NUMBER |
Max hops |
1-40 |
Command Mode
Global Config
Default
The default maximum hops in an MST region are 20
Usage
Specifying the maximum hops for a BPDU prevents the messages from looping indefinitely in the network. When a bridge receives an MST BPDU that has exceeded the allowed maximum hops, it discards the BPDU packets.
The configuration should be shown when the bridge is MSTP mode.
Examples
This example shows how to set the max hops to 25:
Switch# configure terminal
Switch(config)# spanning-tree max-hops 25
This example shows how to reset the max hops to default value:
Switch# configure terminal
Switch(config)# no spanning-tree max-hops
Related Commands
show spanning-tree
3.9.8. spanning-tree transmit-holdcount
Command Purpose
Use this command to set the maximum number of transmissions of BPDUs in an MST region by the transmit state machine. Use the no parameter with this command to restore the default transmit hold-count value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree transmit-holdcount NUMBER
no spanning-tree transmit-holdcount
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NUMBER |
Transmit hold-count value |
1-10 |
Command Mode
Global Config
Default
Transmit hold-count default value is 3
Usage
None
Examples
This example shows how to set hold count to 5:
Switch# configure terminal
Switch(config)# spanning-tree transmit-holdcount 5
This example shows how to reset the hold count to default value:
Switch# configure terminal
Switch(config)# no spanning-tree transmit-holdcount
Related Commands
show spanning-tree
3.9.9. spanning-tree edgeport bpdu-guard (Global)
Command Purpose
Use this command to enable the BPDU (Bridge Protocol Data Unit) Guard feature on a bridge globally.
Use the no parameter with this command to disable the BPDU Guard feature on a bridge globally.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree edgeport bpdu-guard
no spanning-tree edgeport bpdu-guard
Command Mode
Global Config
Default
BPDU guard is disabled
Usage
Use the show spanning-tree command to display the bridge and port configurations for the BPDU Guard feature. It shows both the administratively configured and currently running values of the BPDU guard.
Examples
This example shows how to enable bpdu-guard globally:
Switch# configure terminal
Switch(config)# spanning-tree edgeport bpdu-guard
Related Commands
show spanning-tree
3.9.10. spanning-tree edgeport bpdu-filter (Global)
Command Purpose
Use this command to enable the edgeport BPDU filter for the bridge globally.
Use the no parameter with this command to disable the BPDU filter for the bridge globally.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree edgeport bpdu-filter
no spanning-tree edgeport bpdu-filter
Command Mode
Global Config
Default
BPDU filter is disabled
Usage
Use the show spanning tree command to display administratively configured and currently running values of the BPDU filter parameter for the bridge and port.
If bpdu-guard and bpdu-filter are all configed on port, bpdu-filter has a higher priority.
Examples
This example shows how to enable bpdu-filter globally:
Switch# configure terminal
Switch(config)# spanning-tree edgeport bpdu-filter
Related Commands
show spanning-tree
3.9.11. spanning-tree port
Command Purpose
Use this command to enable or disable spanning tree protocol on specified port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree port ( enable | disable )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
enable |
Enable spanning protocol on this port |
- |
disable |
Disable spanning protocol on this port |
- |
Command Mode
Interface Configuration
Default
The default spanning tree state of the port is enabled.
Usage
None
Examples
This example shows how to enable STP on port eth-0-1:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree port enable
This example shows how to disable STP on port eth-0-1:
Switch# configure terminal
Switch(config-if)# spanning-tree port disable
Related Commands
show spanning-tree interface
3.9.12. spanning-tree port-priority
Command Purpose
Use this command to set the port priority for a bridge. A lower priority indicates a greater likelihood of the bridge becoming root.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree port-priority PRIORITY
no spanning-tree port-priority
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
PRIORITY |
Port priority |
0-240 |
Command Mode
Interface Configuration
Default
The default priority is 128
Usage
None
Examples
This example shows how to set the priority to 240 on port eth-0-1:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree port-priority 240
Related Commands
show spanning-tree interface
3.9.13. spanning-tree pathcost-standard
Command Purpose
Use this command to set the path cost standard associated with the default bridge-group. Use the no parameter with this command to set to default value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree pathcost-standard ( dot1d-1998 | dot1t )
no spanning-tree pathcost-standard
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
dot1d-1998 |
IEEE 802.1D-1998 standard |
- |
dot1t |
IEEE 802.1T standard |
- |
Command Mode
Global Config
Default
The default pathcost-standard is dot1t
Usage
If the pathcost-standard is changed, cost of every port will be reset and auto-calculated.
Examples
This example shows how to set the path cost standard:
Switch# configure terminal
Switch(config)# spanning-tree pathcost-standard dot1d-1998
Cost of every port has been reset and auto-calculation is available
Related Commands
show spanning-tree
3.9.14. spanning-tree path-cost
Command Purpose
Use this command to set the cost of a path associated with the default bridge-group. The lower the path cost, the greater likelihood of the bridge becoming root. Use the no parameter with this command to calculate path cost according to interface’s speed.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree path-cost NUMBER
no spanning-tree path-cost
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NUMBER |
The cost to be assigned to the group. |
The range is 1 to 200000000 for dot1t and 1-65535 for dot1d-1998 |
Command Mode
Interface Configuration
Default
The default path cost value is calculated according to interface’s speed
Usage
None
Examples
This example shows how to set the STP path-cost to 123:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree path-cost 123
This example shows how to reset the STP path-cost to deafult value:
Switch# configure terminal
Switch(config-if)# no spanning-tree path-cost
Related Commands
show spanning-tree interface
3.9.15. spanning-tree link-type
Command Purpose
Use this command to enable or disable point-to-point or shared link types. Use the no parameter with this command to disable rapid transition.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree link-type ( auto | point-to-point | shared )
no spanning-tree link-type
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
auto |
Automatically detect link type |
- |
point-to-point |
Enable point to point link |
- |
shared |
Disable point to point link |
- |
Command Mode
Interface Configuration
Default
The link type is auto detected
Usage
None
Examples
This example shows how to set the link type to shared on port eth-0-1:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree link-type shared
Related Commands
show spanning-tree brief
3.9.16. spanning-tree edgeport
Command Purpose
Use this command to set a port as an edge-port and to enable rapid transitions. Use the no parameter with this command to set a port to its default state (not an edge-port) and to disable rapid transitions.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree edgeport
no spanning-tree edgeport
Command Mode
Interface Configuration
Default
The port is not an edge-port
Usage
None
Examples
This example shows how to set the port eth-0-1 to edgeport:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree edgeport
This example shows how to reset the port to an non-edgeport:
Switch# configure terminal
Switch(config-if)# no spanning-tree edgeport
Related Commands
show spanning-tree interface
3.9.17. spanning-tree edgeport bpdu-guard (Interface)
Command Purpose
Use this command to enable or disable the BPDU Guard feature on a port. Use the no parameter with this command to set the BPDU Guard feature on a port to default.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree edgeport bpdu-guard ( enable | disable | default )
no spanning-tree edgeport bpdu-guard
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
enable |
Enable edgeport bpdu-guard |
- |
disable |
Disable edgeport bpdu-guard |
- |
default |
Default |
- |
Command Mode
Interface Configuration
Default
BPDU guard is disabled on port
Usage
None
Examples
This example shows how to change port to edgeport and enable bpdu-guard on port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree edgeport
Switch(config-if)# spanning-tree edgeport bpdu-guard enable
Related Commands
show spanning tree interface
3.9.18. spanning-tree edgeport bpdu-filter (Interface)
Command Purpose
Use this command to set edgeport BPDU filter for the port. Use the no parameter with this command to revert the port BPDU filter value to default.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree edgeport bpdu-filter ( enable | disable | default )
no spanning-tree edgeport bpdu-filter
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
enable |
Enable edgeport bpdu-filter |
- |
disable |
Disable edgeport bpdu-filter |
- |
default |
Default |
- |
Command Mode
Interface Configuration
Default
BPDU filter is disabled on port
Usage
None
Examples
This example shows how to enable bpdu-filter on port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree edgeport
Switch(config-if)# spanning-tree edgeport bpdu-filter
This example shows how to disable bpdu-filter on port:
Switch# configure terminal
Switch(config-if)# no spanning-tree edgeport bpdu-filter
Related Commands
show spanning tree interface
3.9.19. spanning-tree guard root
Command Purpose
Use this command to enable the Root Guard feature for the port. This feature disables reception of superior BPDUs. Use the no parameter with this command to disable the root guard feature for the port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree guard root
no spanning-tree guard root
Command Mode
Interface Configuration
Default
Root guard is disabled
Usage
The Root Guard feature makes sure that the port on which it is enabled is a designated port. If a port with Root Guard enabled receives a superior BPDU, it goes to a Listening state (for STP) or discarding state (for RSTP and MSTP).
Examples
This example shows how to enable the Root Guard feature for the port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree guard root
This example shows how to disable the Root Guard feature for the port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no spanning-tree guard root
Related Commands
None
3.9.20. spanning-tree guard loop
Command Purpose
Use this command to enable the loop guard feature for the port. This feature provides additional protection against Layer 2 forwarding loops. Use the no parameter with this command to disable the loop guard feature for the port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree guard loop
no spanning-tree guard loop
Command Mode
Interface Configuration
Default
Loop guard is disabled
Usage
The loop guard feature should be enabled on the non-designated ports. When a port enables loop guard, and BPDUs are not received on a non-designated port after max_age, the port should move into the STP loop-inconsistent blocking state, instead of the listening / learning / forwarding state, and should not pass user traffic.
Examples
This example shows how to enable the loop guard on the port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree guard loop
This example shows how to disable the loop guard on the port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no spanning-tree guard loop
Related Commands
spanning-tree guard root
3.9.21. spanning-tree bpdu-loop
Command Purpose
Use this command to enable the bpdu loop feature for the port. This feature provides additional protection against BPDU packet forwarding loops. Use the no parameter with this command to disable the loop guard feature for the port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree bpdu-loop
no spanning-tree bpdu-loop
Command Mode
Global Config
Default
BPDU loop is enabled
Usage
When bpdu-loop enable, If an interface receives more than three bpdu packets in one second whose MACSA is interface’s MAC, errdisable this interface by bpdu loop reason.
Examples
This example shows how to enable the bpdu-loop:
Switch# configure terminal
Switch(config)# spanning-tree bpdu-loop
This example shows how to disable the bpdu-loop:
Switch# configure terminal
Switch(config)# no spanning-tree bpdu-loop
Related Commands
None
3.9.22. spanning-tree force-version
Command Purpose
Use this command to specify the version. A version identifier of less than a value of 2 enforces the spanning tree protocol. Although the command supports an input range of 0-3, for RSTP, the valid range is 0-2. Use the no parameter with this command to set the default protocol version.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree force-version NUMBER
no spanning-tree force-version
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NUMBER |
Version identifier. |
0 - STP, 1- Not supported, 2 -RSTP, 3 - MSTP |
Command Mode
Interface Configuration
Default
STP default 0, RSTP default 2, MSTP default 3
Usage
None
Examples
This example shows how to specify the version:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree force-version 1
This example shows how to reset the default version:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no spanning-tree force-version
Related Commands
None
3.9.23. spanning-tree restricted-tcn
Command Purpose
Use this command to set the restricted TCN value of the port to TRUE. Use the no parameter with this command to set the restricted TCN value of the port to FALSE.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree restricted-tcn
no spanning-tree restricted-tcn
Command Mode
Interface Configuration
Default
The default restricted TCN value is FALSE
Usage
None
Examples
This example shows how to set the restricted TCN value of the port to TRUE:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree restricted-tcn
This example shows how to set the restricted TCN value of the port to FALSE:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no spanning-tree restricted-tcn
Related Commands
None
3.9.24. spanning-tree restricted-role
Command Purpose
Use this command to set the restricted-role value of the port to TRUE. Use the no parameter with this command to set the restricted-role value of the port to FALSE.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree restricted-role
no spanning-tree restricted-role
Command Mode
Interface Configuration
Default
The default restricted-role value is FALSE
Usage
None
Examples
This example shows how to set the restricted-role value of the port to TRUE:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree restricted-role
This example shows how to set the restricted-role value of the port to FALSE:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no spanning-tree restricted-role
Related Commands
None
3.9.25. spanning-tree tc-protection
Command Purpose
Use this command to set the tc-protection value to TRUE. Use the no parameter with this command to set the tc-protection value to FALSE. If tc-protection is set, the number of tc packets which can be processed every hello time interval shouldn’t be greater than the number of tc-protection threshold.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree tc-protection
no spanning-tree tc-protection
Command Mode
Global Config
Default
The default tc-protection value is FALSE
Usage
None
Examples
This example shows how to set the tc-protection value to TRUE:
Switch# configure terminal
Switch(config)# spanning-tree tc-protection
This example shows how to set the tc-protection value to FALSE:
Switch# configure terminal
Switch(config)# no spanning-tree tc-protection
Related Commands
None
3.9.26. spanning-tree tc-protection threshold
Command Purpose
Use this command to set the tc-protection threshold value. Use the no parameter with this command to set the tc-protection threshold value to 1. If tc-protection is set, the number of tc packets which can be processed every hello time interval shouldn’t be greater than the number of tc-protection threshold.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree tc-protection threshold NUMBER
no spanning-tree tc-protection threshold
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NUMBER |
Tc-protection threshole value, default 1 |
1-255 |
Command Mode
Global Config
Default
The default tc-protection threshold value is 1
Usage
None
Examples
This example shows how to set the tc-protection to 255:
Switch# configure terminal
Switch(config)# spanning-tree tc-protection threshold 255
This example shows how to reset the tc-protection to default value:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no spanning-tree tc-protection threshold
Related Commands
None
3.9.27. spanning-tree mode
Command Purpose
Use this command to set spanning tree mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree mode ( stp | rstp | mstp )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
stp |
spanning tree protocol |
- |
rstp |
rapid spanning tree protocol |
- |
mstp |
multiple spanning tree protocol |
- |
Command Mode
Global Config
Default
The default spanning-tree mode is rstp
Usage
None
Examples
This example shows how to set the spanning tree mode to mstp:
Switch# configure terminal
Switch(config)# spanning-tree mode mstp
Related Commands
None
3.9.28. spanning-tree instance port-priority
Command Purpose
Use this command to set the port priority for a bridge group. Use the no parameter with this command to restore the default priority value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree instance INSTANCE_ID port-priority PRIORITY
no spanning-tree instance INSTANCE_ID port-priority
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE_ID |
Specify the identifier |
1-4094 |
PRIORITY |
Specify the port priority (a lower priority indicates greater likelihood of the interface becoming a root). The range is 0~240 |
0-240 |
Command Mode
Interface Configuration
Default
The default priority is 128
Usage
The Multiple Spanning Tree Protocol uses port priority as a tiebreaker to determine which port should forward frame for a particular instance on a LAN, or which port should be the root port for an instance. A lower value implies a better priority. In the case of the same priority, the interface index will serve as the tiebreaker, with the lower-numbered interface being preferred over others.
The permitted range is 0-240. The priority values can only be set in increments of 16.
Examples
This example shows how to set the port priority to 112 for instance 3:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree instance 3 port-priority 112
This example shows how to reset the port priority to defaule value for instance 3:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no spanning-tree instance 3 port-priority
Related Commands
None
3.9.29. spanning-tree instance path-cost
Command Purpose
Use this command to set the cost of a path associated with an interface. Use the no parameter with this command to restore the default cost value of the path.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree instance INSTANCE_ID path-cost COST
no spanning-tree instance INSTANCE_ID path-cost
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE_ID |
Specify the identifier |
1-4094 |
COST |
Specify the cost of path |
<1-200000000> for dot1t and <1-65535> for dot1d-1998 (a lower path-cost indicates a greater likelihood of the specified interface becoming a root) |
Command Mode
Interface Configuration
Default
Assuming a 10 Mb/s link speed, the default value is configured as 2,000,000
Usage
Before you can use this command to set a path-cost in a VLAN configuration, you must explicitly add an MST instance to a port using the bridge-group instance command (see the example below).
Examples
This example shows how to set the cost of a path associated with an interface:
Switch# configure terminal
Switch(config)# spanning-tree mst configuration
Switch(config-mst)# instance 3 vlan 3
Switch(config-mst)# exit
Switch(config)# interface eth-0-1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan add 3
Switch(config-if)# spanning-tree instance 3 path-cost 1000
Switch(config-mst)# exit
Switch(config)# interface eth-0-1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 3
Switch(config-if)# spanning-tree instance 3 path-cost 1000
Related Commands
None
3.9.30. spanning-tree instance restricted-tcn
Command Purpose
Use this command to set the restricted TCN value for the instance to TRUE. Use the no parameter with this command to set the restricted TCN value for the instance to FALSE.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree instance INSTANCE_ID restricted-tcn
no spanning-tree instance INSTANCE_ID restricted-tcn
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE_ID |
Specify the instance ID |
1-4094 |
Command Mode
Interface Configuration
Default
The default restricted TCN value is FALSE
Usage
None
Examples
This example shows how to set the restricted TCN value for the instance to TRUE:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree instance 2 restricted-tcn
Related Commands
None
3.9.31. spanning-tree instance restricted-role
Command Purpose
Use this command to set the restricted role value for the instance to TRUE. Use the no parameter with this command to set the restricted role value for the instance to FALSE.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree instance INSTANCE_ID restricted-role
no spanning-tree instance INSTANCE_ID restricted-role
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE_ID |
Specify the instance ID |
1-4094 |
Command Mode
Interface Configuration
Default
The default restricted-role value is FALSE.
Usage
None
Examples
This example shows how to set the restricted role value for the instance to TRUE:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree instance 2 restricted-role
Related Commands
None
3.9.32. spanning-tree mst configuration
Command Purpose
Use this command to enter mst configuration mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree mst configuraiton
Command Mode
Global Config
Default
None
Usage
None
Examples
This example shows how to enter into mst configuration mode:
Switch# configure terminal
Switch(config)# spanning-tree mst configuration
Related Commands
None
3.9.33. instance
Command Purpose
Use this command to create an mstp instance and map VLANs to an MST instance.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
instance INSTANCE_ID vlan VLAN_ID
no instance INSTANCE_ID vlan VLAN_ID
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE_ID |
Instance id, we support at most 64 instances |
1-4094 |
VLAN_ID |
The vlan associated with instance must be created first. |
1-4094 |
Command Mode
MST Configuration
Default
None
Usage
When you map VLANs to an MST instance, the mapping is incremental, and the VLANs specified in the command are added to or removed from the VLANs that were previously mapped.
Examples
This example shows how to map vlan 10 to instance 1:
Switch# configure terminal
Switch(config)# vlan database
Switch(config-vlan)# vlan 10
Switch(config-vlan)# exit
Switch(config)# spanning-tree Mst configuration
Switch(config-mst)# instance 1 vlan 10
Related Commands
None
3.9.34. region
Command Purpose
Use this command to create mstp region.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
region NAME
no region NAME
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NAME |
Specify the region name. |
The name string has a maximum length of 32 characters and is case sensitive |
Command Mode
MST Configuration
Default
The default region name is an empty string
Usage
None
Examples
This example shows how to set the region to Switch :
Switch# configure terminal
Switch(config)# vlan database
Switch(config-vlan)# vlan 10
Switch(config-vlan)# exit
Switch(config)# spanning-tree mst configuration
Switch(config-mst)# region Switch
Related Commands
None
3.9.35. revision
Command Purpose
Use this command to create an mstp revision number.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
revision NUMBER
no revision NUMBER
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
NUMBER |
Specify the configuration revision number. |
0-65535 |
Command Mode
MST Configuration
Default
Default value is 0
Usage
None
Examples
This example shows how to set the revision number to 1:
Switch# configure terminal
Switch(config)# spanning-tree mst configuration
Switch(config-mst)# revision 1
Related Commands
None
3.9.36. clear spanning-tree detected protocols
Command Purpose
Use this command to clear the detected protocols for a specific bridge or interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
clear spanning-tree detected protocols ( interface IFNAME | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
interface IFNAME |
Specify the name of the interface on which protocols have to be cleared |
- |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
This example shows how to clear the detected protocols for a specific bridge or interface eth-0-1:
Switch# clear spanning-tree detected protocols interface eth-0-1
Related Commands
None
3.9.37. clear spanning-tree disabled-port
Command Purpose
Use this command to clear all spanning tree protocol disabled port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
clear spanning-tree disabled-port
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
This example shows how to clear all spanning tree protocol disabled port:
Switch# clear spanning-tree disabled-port
Related Commands
None
3.9.38. show spanning-tree
Command Purpose
Use this command to show the state of the spanning tree. This command only shows up interface’s state.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
This example shows how to show the state of spanning tree:
Switch# show spanning-tree
Bridge up - Spanning Tree Enabled
Mode - Multiple spanning tree protocol
Path Cost Standard - dot1t
CIST Root Path Cost 0 - CIST Root Port 0 - CIST Bridge Priority 32768
Forward Delay 15 - Hello Time 2 - Max Age 20 - Max-hops 20
Tx Hold Count 6
CIST Root Id 80008afa58e9cb00
CIST Reg Root Id 80008afa58e9cb00
CIST Bridge Id 80008afa58e9cb00
Edgeport bpdu-filter disabled
Edgeport bpdu-guard disabled
eth-0-1: Port 1 - Id 8001 - Role Designated - State Forwarding
eth-0-1: Designated External Path Cost 0 -Internal Path Cost 0
eth-0-1: Configured Path Cost 20000 - Add type Explicit ref count 1
eth-0-1: Designated Port Id 8001 - CIST Priority 128
eth-0-1: CIST Root 80008afa58e9cb00
eth-0-1: Regional Root 80008afa58e9cb00
eth-0-1: Designated Bridge 80008afa58e9cb00
eth-0-1: Message Age 0 - Max Age 20
eth-0-1: CIST Hello Time 2 - Forward Delay 15
eth-0-1: CIST Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0 - topo change timer 0
eth-0-1: Forward-transitions 2
eth-0-1: BPDU sent 373 - BPDU received 0
eth-0-1: Version Multiple spanning tree protocol - Received None - Send MSTP
eth-0-1: No edgeport configured - Current edgeport off
eth-0-1: Edgeport bpdu-guard Default - Current edgeport bpdu-guard off
eth-0-1: Edgeport bpdu-filter Default - Current edgeport bpdu-filter off
eth-0-1: No root guard configured - Current root guard off
eth-0-1: No loop guard configured - Current loop guard off
eth-0-1: Configured Link Type auto - Current point-to-point
Related Commands
None
3.9.39. show spanning-tree interface
Command Purpose
Use this command to show the state of the spanning tree of the specified interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree interface IFNAME ( brief | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
Specify the name of the interface |
- |
brief |
The brief spanning-tree information |
- |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is an output of this command displaying the state of the spanning tree of the interface eth-0-1:
Switch# show spanning-tree interface eth-0-1
Bridge up - Spanning Tree Enabled
Mode - Multiple spanning tree protocol
Path Cost Standard - dot1t
CIST Root Path Cost 0 - CIST Root Port 0 - CIST Bridge Priority 32768
Forward Delay 15 - Hello Time 2 - Max Age 20 - Max-hops 20
Tx Hold Count 6
CIST Root Id 80008afa58e9cb00
CIST Reg Root Id 80008afa58e9cb00
CIST Bridge Id 80008afa58e9cb00
Edgeport bpdu-filter disabled
Edgeport bpdu-guard disabled
eth-0-1: Port 1 - Id 8001 - Role Designated - State Forwarding
eth-0-1: Designated External Path Cost 0 -Internal Path Cost 0
eth-0-1: Configured Path Cost 20000 - Add type Explicit ref count 1
eth-0-1: Designated Port Id 8001 - CIST Priority 128
eth-0-1: CIST Root 80008afa58e9cb00
eth-0-1: Regional Root 80008afa58e9cb00
eth-0-1: Designated Bridge 80008afa58e9cb00
eth-0-1: Message Age 0 - Max Age 20
eth-0-1: CIST Hello Time 2 - Forward Delay 15
eth-0-1: CIST Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0 - topo change timer 0
eth-0-1: Forward-transitions 2
eth-0-1: BPDU sent 352 - BPDU received 0
eth-0-1: Version Multiple spanning tree protocol - Received None - Send MSTP
eth-0-1: No edgeport configured - Current edgeport off
eth-0-1: Edgeport bpdu-guard Default - Current edgeport bpdu-guard off
eth-0-1: Edgeport bpdu-filter Default - Current edgeport bpdu-filter off
eth-0-1: No root guard configured - Current root guard off
eth-0-1: No loop guard configured - Current loop guard off
eth-0-1: Configured Link Type auto - Current point-to-point
Related Commands
None
3.9.40. show spanning-tree brief
Command Purpose
Use this command to show the brief state of the spanning tree.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree brief
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is an output of this command displaying the brief state of the spanning tree The down interface should not be show:
Switch# show spanning-tree brief
Multiple spanning tree protocol Enabled
Root ID Priority 32768 (0x8000)
Address 8afa.58e9.cb00
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768 (0x8000)
Address 8afa.58e9.cb00
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role State Cost Priority.Number Type
------------------------------------------------------------------------------
eth-0-1 Designated Forwarding 20000 128.1 P2p
eth-0-2 Designated Forwarding 20000 128.2 P2p
Related Commands
None
3.9.41. show spanning-tree disabled-port
Command Purpose
Use this command to show the spanning tree protocol disabled port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree disabled-port
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is an output of this command displaying all spanning tree protocol disabled port:
Switch# show spanning-tree disabled-port
Interface
-----------------
eth-0-1
Related Commands
None
3.9.42. show spanning-tree mst
Command Purpose
Use this command to show the mstp information.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree mst
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is an output of this command displaying the mstp information The down interface should not be show:
Switch#show spanning-tree mst
Bridge up - Spanning Tree Enabled
Mode - Multiple spanning tree protocol
Path Cost Standard - dot1t
CIST Root Path Cost 0 - CIST Root Port 0 - CIST Bridge Priority 32768
Forward Delay 15 - Hello Time 2 - Max Age 20 - Max-hops 20
Tx Hold Count 6
CIST Root Id 80008afa58e9cb00
CIST Reg Root Id 80008afa58e9cb00
CIST Bridge Id 80008afa58e9cb00
Edgeport bpdu-filter disabled
Edgeport bpdu-guard disabled
Instance Interface VLAN
0 : 1, 3
1 : eth-0-2 2
Related Commands
None
3.9.43. show spanning-tree mst config
Command Purpose
Use this command to show the mstp region configuration information.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree mst config
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
This example shows how to show the mstp region configuration information:
Switch#show spanning-tree mst config
MSTP Configuration Information:
------------------------------------------------------------------------
Format Id : 0
Name : switch
Revision Level : 0
Digest : 0x3AB68794D602FDF43B21C0B37AC3BCA8
Instances configured 1
------------------------------------------------------------------------
Instance Vlans mapped
------------------------------------------------------------------------
0 1, 3
1 2
------------------------------------------------------------------------
Related Commands
None
3.9.44. show spanning-tree mst detail
Command Purpose
Use this command to show the detail mstp information.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree mst detail ( interface IFNAME | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
interface IFNAME |
The interface name you want to display |
- |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is an output of this command displaying the mstp information The down interface should not be show:
Switch#show spanning-tree mst detail interface eth-0-1
Bridge up - Spanning Tree Enabled
Mode - Multiple spanning tree protocol
Path Cost Standard - dot1t
CIST Root Path Cost 0 - CIST Root Port 0 - CIST Bridge Priority 32768
Forward Delay 15 - Hello Time 2 - Max Age 20 - Max-hops 20
Tx Hold Count 6
CIST Root Id 80008afa58e9cb00
CIST Reg Root Id 80008afa58e9cb00
CIST Bridge Id 80008afa58e9cb00
Edgeport bpdu-filter disabled
Edgeport bpdu-guard disabled
eth-0-1: Port 1 - Id 8001 - Role Designated - State Forwarding
eth-0-1: Designated External Path Cost 0 -Internal Path Cost 0
eth-0-1: Configured Path Cost 20000 - Add type Explicit ref count 1
eth-0-1: Designated Port Id 8001 - CIST Priority 128
eth-0-1: CIST Root 80008afa58e9cb00
eth-0-1: Regional Root 80008afa58e9cb00
eth-0-1: Designated Bridge 80008afa58e9cb00
eth-0-1: Message Age 0 - Max Age 20
eth-0-1: CIST Hello Time 2 - Forward Delay 15
eth-0-1: CIST Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0 - topo change timer 0
eth-0-1: Forward-transitions 2
eth-0-1: BPDU sent 247 - BPDU received 0
eth-0-1: Version Multiple spanning tree protocol - Received None - Send MSTP
eth-0-1: No edgeport configured - Current edgeport off
Related Commands
None
3.9.45. show spanning-tree mst instance
Command Purpose
Use this command to show the detail mstp information of a specific instance.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree mst instance INSTANCE_ID ( interface IFNAME | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE_ID |
Instance number you want to display |
1-4094 |
IFNAME |
The interface name you want to display |
Supportphysical/aggregationports |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is an output of this command displaying the detail mstp information:
Switch#show spanning-tree mst instance 2
MSTI Root Path Cost 0 - MSTI Root Port 0
MSTI Root Id 8002e083bce89601
MSTI Bridge Id 8002e083bce89601
MSTI Bridge Priority 32768
eth-0-48: Port 48 - Id 8030 - Role Disabled - State Discarding
eth-0-48: Designated Internal Path Cost 0 - Designated Port Id 0
eth-0-48: Configured Internal Path Cost 20000
eth-0-48: Configured CST External Path cost 20000
eth-0-48: CST Priority 128 - MSTI Priority 128
eth-0-48: Designated Root 0000000000000000
eth-0-48: Designated Bridge 0000000000000000
eth-0-48: Message Age 0 - Max Age 0
eth-0-48: Hello Time 2 - Forward Delay 15
eth-0-48: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0
eth-0-1: Port 1 - Id 8001 - Role Disabled - State Discarding
eth-0-1: Designated Internal Path Cost 0 - Designated Port Id 0
eth-0-1: Configured Internal Path Cost 20000
eth-0-1: Configured CST External Path cost 20000
eth-0-1: CST Priority 128 - MSTI Priority 128
eth-0-1: Designated Root 0000e083bce89601
eth-0-1: Designated Bridge 0000e083bce89601
eth-0-1: Message Age 0 - Max Age 0
eth-0-1: Hello Time 2 - Forward Delay 15
eth-0-1: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0
Related Commands
None
3.9.46. show spanning-tree mst interface
Command Purpose
Use this command to show the detail mstp information of a specific interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree mst interface IFNAME
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
The interface name you want to display |
Supportphysical/aggregationports |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is an output of this command displaying the mstp information of an interface:
Switch# show spanning-tree mst interface eth-0-1
Bridge up - Spanning Tree Enabled
Mode - Multiple spanning tree protocol
Path Cost Standard - dot1t
CIST Root Path Cost 0 - CIST Root Port 0 - CIST Bridge Priority 32768
Forward Delay 15 - Hello Time 2 - Max Age 20 - Max-hops 20
Tx Hold Count 6
CIST Root Id 8000be8c722f7f00
CIST Reg Root Id 8000be8c722f7f00
CIST Bridge Id 8000be8c722f7f00
Edgeport bpdu-filter disabled
Edgeport bpdu-guard disabled
Loop guard configured disabled
Instance Interface VLAN
0 1, 4-100
1 eth-0-1 2
2 eth-0-1 3
Related Commands
None
3.9.47. show spanning-tree mst brief
Command Purpose
Use this command to show the brief mstp information.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show spanning-tree mst brief ( interface IFNAME | instance INSTANCE_ID | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
interface IFNAME |
The interface name you want to display |
- |
instance INSTANCE_ID |
Instance number you want to display |
1-4094 |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following is an output of this command displaying the brief mstp information:
Switch#show spanning-tree mst brief
##### MST0: Vlans: 1
Multiple spanning tree protocol Enabled
Root ID Priority 32768 (0x8000)
Address e083.bce8.9601
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768 (0x8000)
Address e083.bce8.9601
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role State Cost Priority.Number Type
-----------------------------------------------------------------------
##### MST2: Vlans: 2
Root ID Priority 32770 (0x8002)
Address e083.bce8.9601
Bridge ID Priority 32770 (0x8002)
Address e083.bce8.9601
Interface Role State Int-Cost Priority.Number Type
-----------------------------------------------------------------------
eth-0-48 Disabled Discarding 20000 128.48 P2p
eth-0-1 Disabled Discarding 20000 128.1 P2p
##### MST15: Vlans: 15
Root ID Priority 32783 (0x800f)
Address e083.bce8.9601
Bridge ID Priority 32783 (0x800f)
Address e083.bce8.9601
Interface Role State Int-Cost Priority.Number Type
-----------------------------------------------------------------------
eth-0-48 Disabled Discarding 20000 128.48 P2p
eth-0-1 Disabled Discarding 20000 128.1 P2p
Related Commands
None
3.9.48. spanning-tree instance forward
Command Purpose
Use this command to set STP state is forward for instance and keep forward.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
spanning-tree instance INSTANCE_ID forward
no spanning-tree instance INSTANCE_ID forward
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE_ID |
Specify the identifier |
1-4094 |
Command Mode
Interface Configuration
Default
None
Usage
None
Examples
This example shows how to set STP state is forward for instance and keep forward:
Switch# configure terminal
Switch(config)# spanning-tree mode mstp
Switch(config)# spanning-tree mst configuration
Switch(config-mst)# instance 1 vlan 2
Switch(config)# interface eth-0-1
Switch(config-if)# spanning-tree instance 1 forward
Switch# configure terminal
Switch(config)# interface eth-0-1
Related Commands
None