To display spanning tree information, use the command show spanning-tree in Privileged EXEC Mode. This command executes only if the spanning tree functionality has not been shut down in the switch.
Parameter | Type | Description |
---|---|---|
active |
Enter to display the spanning tree information of active ports. | |
detail |
Enter to display the detailed spanning tree related information of the switch and all ports enabled in the switch. The information contains status of spanning tree operation, current selected spanning mode, current spanning tree compatibility version, bridge and root priority, bridge and root addresses, port path cost, port priority, port timers, bridge and port level spanning tree statistics information, transmit hold-count value, link-type, and status of L2GP, loop guard, BPDU receive, BPDU transmit, restricted TCN, restricted role and portfast features. | |
switch |
Enter to display the switch name/context name. | |
default |
Enter default to display the default switch. | |
blockedports |
Enter to display the summary of port states. | |
switch |
Enter to display the switch name/context name. | |
default |
Enter default to display the default switch. | |
bridge |
Enter to display the he spanning tree bridge information. The information contain bridge ID, hello time, maximum age time, forward delay time and protocol enabled, for the RSTP. The information also contains the instance ID for MST. | |
address |
Enter to display the MAC address of the bridge. | |
detail |
Enter to display the priority, address, maximum age time and forward delay time for the bridge. | |
forward-time |
Enter to display the forward time of the bridge. | |
hello-time |
Enter to display the hello time of the bridge. | |
id |
Enter to display the ID of the bridge. | |
max-age |
Enter to display the maximum age time of the bridge. | |
priority |
Enter to display the priority of the bridge. | |
protocol |
Enter to display the protocol currently enabled in the bridge. | |
switch |
Enter to display the switch related information. | |
interface |
Enter to display the interface-specific information of active ports. | |
Gigabitethernet |
Enter to display gigabitetethernet type of interface. Gigabitethernet is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second. | |
<interface-id> |
Enter to display a specific slot number / port number. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1. | |
Extreme-Ethernet |
Enter to display the Extreme-Ethernet type of interface. Extreme Ethernet is a version of Ethernet that supports data transfer up to 10 Gigabits per second and only full duplex links. | |
<interface-id> |
Enter to display a specific slot number / port number. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1. | |
bpduguard |
Enter to display the spanning tree BPDU guard for RSTP and MSTP. | |
cost |
Enter to display the summary of port states. | |
detail |
Enter to display the detailed information about the port and bridge port cost. | |
encapsulationtype |
Enter to display the spanning tree encapsulation type. | |
inconsistency |
Enter to display the Spanning-tree inconsistent state for RSTP, MSTP and PVRST. | |
layer2-gateway-port |
Enter to display the spanning tree layer two gateway port specific configuration. | |
portfast |
Enter to display the spanning tree portfast state. | |
priority |
Enter to display the spanning tree port priority. | |
restricted-role |
Enter to display the spanning-tree restricted role. | |
restricted-tcn |
Enter to display the spanning-tree restricted topology change. | |
rootcost |
Enter to display the spanning tree rootcost (pathcost to reachthe root) value. | |
state |
Enter to display the spanning tree state. | |
stats |
Enter to display the input and output packets by switching path for the interface. | |
layer2-gateway-port |
Enter to display the spanning tree layer two gateway port specific configuration. | |
switch |
Enter to display the switch name/context name. | |
default |
Enter default to display the default switch. | |
mst |
Enter to display the MST instance related information. | |
<instance-id (0-4094)> |
Enter a value for the multiple spanning tree port specific information for the specified MSTI. This value ranges from 1 to 64. The special value 4094 can be used only in the switch that supports PBB-TE. This special value represents PTETID that identifies VID used by ESPs. display the MST instance related information. | |
configuration |
Enter to display the multiple spanning tree instance related information. This information contains the MST region name, MST region revision, and a list containing MSTI IDs and VLAN IDs mapped to the corresponding MSTI. | |
switch |
Enter to display the switch name/context name. | |
default |
Enter default to display the default switch. | |
detail |
Enter to display the spanning tree information of active ports. | |
switch |
Enter to display the switch name/context name. | |
default |
Enter default to display the default switch. | |
interface |
Enter to display the spanning tree information of active ports. | |
Gigabitethernet |
Enter to display gigabitetethernet type of interface. Gigabitethernet is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second. | |
<interface-id> |
Enter to display a specific slot number / port number. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1. | |
Extreme-Ethernet |
Enter to display the Extreme-Ethernet type of interface. Extreme Ethernet is a version of Ethernet that supports data transfer up to 10 Gigabits per second and only full duplex links | |
<interface-id> |
Enter to display a specific slot number / port number. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1. | |
detail |
Enter to display the detailed multiple spanning tree port specific information for the specified interface. The information contain port priority, port cost, root address, priority and cost, IST address, priority and cost, bridge address, priority and cost, forward delay, maximum age, maximum hop count, and BPDUs sent and received. | |
hello-time |
Enter to display the hello time of the MSTIs assigned to the specified interface. | |
stats |
Enter to display the number of BPDUs sent and received for the MSTIs assigned to the specified interface. | |
switch |
Enter to display the switch name/context name. | |
default |
Enter default to display the default switch. | |
pathcost |
Enter to display the port pathcost method configured for the switch. | |
method |
Enter to display the port pathcost method configured for the switch. | |
performance-data |
Enter to display the spanning tree information of active ports. | |
interface |
Enter to display the spanning-tree performance related information for the specified type of interface. | |
Gigabitethernet |
Enter to display gigabitetethernet type of interface. Gigabitethernet is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second. | |
<interface-id> |
Enter to display a specific slot number / port number. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1. | |
Extreme-Ethernet |
Enter to display the Extreme-Ethernet type of interface. Extreme Ethernet is a version of Ethernet that supports data transfer up to 10 Gigabits per second and only full duplex links | |
<interface-id> |
Enter to display a specific slot number / port number. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1. | |
instance |
Enter to display spanning-tree performance data for the specified MST Instance ID. | |
root |
Enter to display the spanning-tree root information. Note:
This configuration is not supported in PVRST Mode. |
|
address |
Enter to display the MAC address of the bridge. | |
cost |
Enter to display the cost of the root bridge. | |
detail |
Enter to display detailed information for the port and bridge. | |
forward-time |
Enter to display the forward time of the root bridge. | |
hello-time |
Enter to display the hello time of the root bridge. | |
id |
Enter to display the ID of the root bridge. | |
max-age |
Enter to display the maximum age time of the root bridge. | |
port |
Enter to display the root port. | |
priority |
Enter to display the priority of the root bridge. | |
switch |
Enter to display the switch related information. | |
summary |
Enter to display the spanning tree information of active ports. | |
switch |
Enter to display the switch related information. | |
vlan |
Enter to display the interface specific PVRST information for the specified VLAN. | |
<vlan-id/vfi_id> |
Enter a number for VLAN / VFI ID.
Note:
The VLAN ID 4095 is reserved and may be used to indicate a wildcard match for the VID in management operations or Filtering Database entries. Note:
VFI IDs 4096 and 4097 are reserved identifiers used in MPLS PW. |
|
active |
Enter to display the PVRST related information for the specified active VLAN ID. | |
detail |
Enter to display the detailed PVRST related information for the specified active VLAN ID. The information contains current selected spanning Mode, current spanning tree compatibility version, bridge and root priority, bridge and root addresses, port path cost, port priority, timer values, bridge and port level spanning tree statistics information, and transmit hold-count value. | |
switch |
Enter to display the PVRST related information for the switch name/context name. | |
default |
Enter default to display the PVRST related information for the default switch. | |
blockedports |
Enter to display the list of ports in blocked state and the total number of blocked ports for the specified VLAN. | |
switch |
Enter to display the PVRST related information for the switch name/context name. | |
default |
Enter default to display the PVRST related information for the default VLAN. | |
active |
Enter to display the PVRST related information for the specified active VLAN ID. | |
switch |
Enter to display the PVRST related information for the switch name/context name. | |
default |
Enter default to display the PVRST related information for the default switch. | |
interface |
Enter to display interface specific PVRST related information for the specified type of interface | |
Gigabitethernet |
Enter to display gigabitetethernet type of interface. Gigabitethernet is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second. | |
<interface-id> |
Enter to display a specific slot number / port number. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1. | |
Extreme-Ethernet |
Enter to display the Extreme-Ethernet type of interface. Extreme Ethernet is a version of Ethernet that supports data transfer up to 10 Gigabits per second and only full duplex links. | |
<interface-id> |
Enter to display a specific slot number / port number. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1. | |
active |
Enter to display the detailed PVRST related information for the specified active VLAN ID. | |
cost |
Enter to display the cost of the specified port. | |
detail |
Enter to display the detailed interface specific PVRST related information for the port. | |
priority |
Enter to display the priority of the specified port. | |
rootcost |
Enter to display the root cost of the port. The root cost defines the pathcost to reach the root bridge. | |
state |
Enter to display the state of the port. | |
stats |
Enter to display the port level spanning tree statistics information. | |
pathcost |
Enter to display the port pathcost method configured for the specified VLAN. | |
method |
Enter to display the port pathcost method configured for the specified VLAN. | |
switch |
Enter to display the PVRST related information for the switch name/context name | |
default |
Enter default to display the PVRST related information for the default switch. | |
root |
Enter to display the spanning-tree root information. Note:
This configuration is not supported in PVRST Mode. |
|
address |
Enter to display the MAC address of the root. | |
cost |
Enter to display the cost of the root. | |
detail |
Enter to display detailed PVRST related information for the root. This information contain root priority, root address, root cost, root port, hello time, maximum age and forward delay. | |
forward-time |
Enter to display the forward time of the root. | |
hello-time |
Enter to display the hello time of the root. | |
id |
Enter to display the ID of the root. | |
max-age |
Enter to display the maximum age time of the root. | |
port |
Enter to display the root. | |
priority |
Enter to display the priority of the root bridge. | |
system-id |
Enter to display the Bridge system ID. | |
switch |
Enter to display the switch related information. | |
default |
Enter default to display the PVRST related information for the default VLAN. | |
summary |
Enter to display the summary of port states | |
switch |
Enter to display the switch related information. | |
default |
Enter default to display the PVRST related information for the default VLAN. |
Privileged EXEC Mode
iS5Comm # show spanning-tree
-------------------------------------------------------------------
Spanning-tree for VLAN 1
We are the root of the Spanning Tree
Root Id Priority 32769
Address e8:e8:75:90:0b:01
Cost 0
Port 0
Hello Time 2 sec 0 cs, Max Age 20 sec 0 cs, Forward Delay 15 sec 0 cs
Spanning Tree Enabled Protocol PVRST
Bridge Id Priority 32769
Address e8:e8:75:90:0b:01
Hello Time 2 sec 0 cs, Max Age 20 sec 0 cs, Forward Delay 15 sec 0 cs
Dynamic Path Cost is Disabled
Dynamic Path Cost Lag-Speed Change is Disabled
Name Role State Cost Prio Type
---- ---- ----- ---- ---- ------
Gi0/11 Designated Forwarding 20000 128 P2P
Ex0/2 Designated Forwarding 2000 128 P2P
iS5Comm# show spanning-tree active detail switch default
Spanning-tree for VLAN 1
Bridge is executing the rstp compatible PVRST Protocol
Bridge Identifier has priority 32769, Address e8:e8:75:90:0b:01
Configured Hello time 2 sec 0 cs, Max Age 20 sec 0 cs, Forward Delay 15 sec 0 cs
Dynamic Path Cost is Disabled
We are the root of the spanning tree
Number of Topology Changes 0
Time since topology Change 0 seconds ago
Transmit Hold-Count 6
Root Times: Max Age 20 sec 0 cs, Forward Delay 15 sec 0 cs, Hello Time 2 sec 0 cs
Port 11 [Gi0/11] of VLAN 1 is Designated, Forwarding
Port PathCost 20000 , Port Priority 128 , Port Identifier 128.11
Designated Root has priority 32769, address e8:e8:75:90:0b:01
Designated Bridge has priority 32769, address e8:e8:75:90:0b:01
Designated Port Id is 128.11, Designated PathCost 0
Timers: Hello Time - 2 sec 0 cs, MaxAge - 20 sec 0 cs,
Forward Delay - 15 sec 0 cs, Hold - 1 sec 0 cs
No of Transitions to forwarding State :3
BPDUs : sent 2755 , received 0
Bpdu Guard is None
Root Guard is Disabled
BPDU filter is Disabled
Port 26 [Ex0/2] of VLAN 1 is Designated, Forwarding
Port PathCost 2000 , Port Priority 128 , Port Identifier 128.26
Designated Root has priority 32769, address e8:e8:75:90:0b:01
Designated Bridge has priority 32769, address e8:e8:75:90:0b:01
Designated Port Id is 128.26, Designated PathCost 0
Timers: Hello Time - 2 sec 0 cs, MaxAge - 20 sec 0 cs,
Forward Delay - 15 sec 0 cs, Hold - 1 sec 0 cs
No of Transitions to forwarding State :1
BPDUs : sent 2758 , received 0
Bpdu Guard is None
Root Guard is Disabled
BPDU filter is Disabled
iS5Comm# show spanning-tree blockedports switch default
% Blocked Ports can be retrieved per VLAN basis in PVRST
iS5Comm# show spanning-tree bridge address
Bridge Address is e8:e8:75:90:2e:01
iS5Comm# show spanning-tree bridge forward-time
Bridge Forward delay is 15 sec
iS5Comm# show spanning-tree bridge
Bridge ID HelloTime MaxAge FwdDly Protocol
--------- --------- ------ ------ --------
80:00:e8:e8:75:90:2e:01 02s 00cs 20s 00cs 15 s 0 cs rstp
iS5Comm# show spanning-tree bridge hello-time
Bridge Hello Time is 2 sec 0 cs
iS5Comm# show spanning-tree bridge id
Bridge ID is 80:00:e8:e8:75:90:2e:01
iS5Comm# show spanning-tree bridge max-age
Bridge Max Age is 20 sec 0 cs
iS5Comm# show spanning-tree bridge protocol
Bridge Protocol Running is RSTP
iS5Comm# show spanning-tree bridge priority
Bridge Priority is 32768
iS5Comm# show spanning-tree bridge detail
Bridge Id Priority 32768,
Address e8:e8:75:90:2e:01
Hello Time 2sec 0cs,
Max Age 20sec 0cs,
Forward Delay 15 sec 0 cs
iS5Comm# show spanning-tree detail
spanning-tree portfast bpduguard disable
Forward delay optimization alternate-role Enabled
Spanning tree Protocol Enabled.
Bridge is executing the STP compatible Rapid Spanning Tree Protocol
Bridge Identifier has priority 32768, Address e8:e8:75:90:0b:01
Configured Hello time 2 sec 0 cs, Max Age 20 sec 0 cs,
Forward Delay 30 sec 0 cs
Dynamic Path Cost Enabled
Flush Interval 0 centi-sec, Flush Invocations 35
Flush Indication threshold 0
We are the root of the spanning tree
Number of Topology Changes 1
Time since topology Change 4250 seconds ago
Transmit Hold-Count 6
Root Times: Max Age 20 sec 0 cs Forward Delay 30 sec 0 cs
Hello Time 2 sec 0 cs
Port 10 [Gi0/10] is Designated, Forwarding
Port PathCost 20000, Port Priority 128, Port Identifier 128.10
Designated Root has priority 32768, address e8:e8:75:90:0b:01
Designated Bridge has priority 32768, address e8:e8:75:90:0b:01
Designated Port Id is 128.10, Designated PathCost 0
No of Transitions to forwarding State :32
Auto-Edge is enabled
PortFast is disabled, Oper-Edge is disabled
LinkType is point to Point
BPDUs : sent 67637 , received 0
Timers: Hello - 1, Forward Delay - 0, Topology Change - 0,
Error Disable Recovery Interval 300 sec 0 cs
Restricted Role is disabled.
Restricted TCN is disabled.
bpdu-transmit enabled
bpdu-receive enabled
Root Guard is disabled.
Loop Guard is disabled.
Dot1W mode disabled.
show spanning-tree interface gigabitethernet 0/1 bpduguard
Bpdu Guard is None
iS5Comm# show spanning-tree interface gigabitethernet 0/1 layer2-gateway-port switch default
Switch default
Port Gi0/1 PseudoRootId
Instance Priority MacAddress State
---------- ---------- ------------------- ----------
MST00 4096 00:00:11:22:33:44 Forwarding
MST01 8192 00:00:12:34:45:55 Forwarding
MST02 4096 00:00:12:34:45:5a Forwarding
iS5Comm# show spanning-tree mst 1
## MST01
Vlans mapped: 2
Bridge Address e8:e8:75:90:0b:01 Priority 32768
Root Address e8:e8:75:90:0b:01 Priority 32768
Root this switch for MST01
Interface Role Sts Cost Prio.Nbr Type
--------- ---- --- ---- -------- ----
iS5Comm# show spanning-tree mst configuration
Name [regionone]
Revision 100
Max-Instance 1
Instance Vlans mapped
-------- ------------------------------------------
0 1,3-1024,1025-2048,2049-3072,
3073-4094
1 2
-------------------------------------------------------
iS5Comm# show spanning-tree mst 1 interface gigabitethernet 0/1
Switch default
Gi0/1 of MST00 is Disabled , Discarding
Edge port: no
Link type: Shared
Port Hello Timer: 2 sec 0 cs
Bpdus sent 0 , Received 0
Instance Role Sts Cost Prio.Nbr
-------- ---- --- ---- --------
0 Disabled Discarding 200000 128.1
iS5Comm# show spanning-tree mst 1 interface gigabitethernet 0/1 stats
MST01 Bpdus sent 2, Received 0
iS5Comm# show spanning-tree mst 1 interface gigabitethernet 0/1 hello-time
MST01 2 secs 0 cs
iS5Comm# show spanning-tree mst 1 interface gigabitethernet 0/1 detail
Gi0/1 of MST01 is Master , Forwarding
Port info port id 128.1 priority 128 cost 200000
Designated root address 00:01:02:03:04:11 priority 32768 cost 0
Designated bridge address 00:01:02:03:04:11 priority 32768 port id 128.1
iS5Comm# show spanning-tree performance-data
STP Performance data
=====================
Received Event Time Stamp(In millisecs) : 0
Port State Change Time Stamp(In millisecs) : 527555293
iS5Comm# show spanning-tree performance-data int gi 0/1
STP Performance data at Port 1
================================
Rcvd Event Time Stamp(In millisecs) : 0
Rcvd Event : PORT_DOWN
Rcvd State Change Time Stamp(In millisecs) : 527552273
iS5Comm# show spanning-tree root
Root ID RootCost MaxAge FwdDly RootPort
------- -------- ------ ------ --------
80:00:e8:e8:75:90:0b:01 0 20sec 00cs 30sec 00cs 0
iS5Comm# show spanning-tree root address
Root Bridge Address is e8:e8:75:90:0b:01
iS5Comm# show spanning-tree root cost
Root Cost is 0
iS5Comm# show spanning-tree root forward-time
Root Bridge Id is 80:00:e8:e8:75:90:0b:01
iS5Comm# show spanning-tree root max-age
Root MaxAge is 20 secs 0 cs
iS5Comm# show spanning-tree root port
Root Port is 0
iS5Comm# show spanning-tree root priority
Root Priority is 32768
iS5Comm# show spanning-tree root detail
We are the root of the Spanning Tree
Root Id Priority 32768
Address e8:e8:75:90:0b:01
Cost 0
Port 0
Max Age 20 sec 0 cs, Forward Delay 30 sec 0 cs
Hello Time 2 sec 0 cs
iS5Comm# show spanning-tree root switch default
Root ID RootCost MaxAge FwdDly RootPort
------- -------- ------ ------ --------
80:00:e8:e8:75:90:0b:01 0 20sec 00cs 30sec 00cs 0
iS5Comm# show spanning-tree blockedports
Blocked Interfaces List:
Gi0/1,Gi0/2,Gi0/3,Gi0/4,Gi0/5,Gi0/6,Gi0/7,Gi0/8,Gi0/9,Gi0/11,Gi0/12,Gi0/13,Gi0/14,Gi0/15,Gi0/16,Gi0/17,Gi0/18,Gi0/19,Gi0/20,Gi0/21,Gi0/22,Gi0/23,Gi0/24,Ex0/1,Ex0/2,Ex0/3,Ex0/4,po1,po2,
The Number of Blocked Ports in the system is :29
iS5Comm# show spanning-tree pathcost method
Spanning Tree port pathcost method is Long
iS5Comm# show spanning-tree summary
Spanning tree enabled protocol is RSTPSpanning Tree port pathcost method is Long
RSTP Port Roles and States
Port-Index Port-Role Port-State Port-Status
---------- --------- ---------- -----------
Gi0/1 Disabled Discarding Enabled
Gi0/2 Disabled Discarding Enabled
Gi0/3 Disabled Discarding Enabled
Gi0/4 Disabled Discarding Enabled
Gi0/5 Disabled Discarding Enabled
Gi0/6 Disabled Discarding Enabled
Gi0/7 Disabled Discarding Enabled
Gi0/8 Disabled Discarding Enabled
Gi0/9 Disabled Discarding Enabled
Gi0/10 Designated Forwarding Enabled
Gi0/11 Disabled Discarding Enabled
Gi0/12 Disabled Discarding Enabled
Gi0/13 Disabled Discarding Enabled
Gi0/14 Disabled Discarding Enabled
Gi0/15 Disabled Discarding Enabled
Gi0/16 Disabled Discarding Enabled
Gi0/17 Disabled Discarding Enabled
Gi0/18 Disabled Discarding Enabled
Gi0/19 Disabled Discarding Enabled
Gi0/20 Disabled Discarding Enabled
Gi0/21 Disabled Discarding Enabled
Gi0/22 Disabled Discarding Enabled
Gi0/23 Disabled Discarding Enabled
Gi0/24 Disabled Discarding Enabled
Ex0/1 Disabled Discarding Enabled
Ex0/2 Disabled Discarding Enabled
Ex0/3 Disabled Discarding Enabled
Ex0/4 Disabled Discarding Enabled
iS5Comm# show spanning-tree vlan 1 blockedports switch default
Switch default
Blocked Interfaces List:
The Number of Blocked Ports in the system is :0
iS5Comm# show spanning-tree vlan 1 pathcost-method switch default
Switch default
Spanning Tree port pathcost method is Long
iS5Comm# show spanning-tree vlan 1 summary switch default
Switch default
Spanning tree enabled protocol is PVRST
Spanning-tree pathcost method is long
PVRST Port Roles and States
Port-Index Port-Role Port-State Port-Status
---------- --------- ---------- -----------
1 Designated Discarding Enabled
2 Designated Forwarding Enabled
iS5Comm# show spanning-tree vlan 1
Spanning-tree for VLAN 1
We are the root of the Spanning Tree
Root Id Priority 32769
Address e8:e8:75:90:0b:01
Cost 0
Port 0
Hello Time 2 sec 0 cs, Max Age 20 sec 0 cs, Forward Delay 15 secn0 cs
Spanning Tree Enabled Protocol PVRST
Bridge Id Priority 32769
Address e8:e8:75:90:0b:01
Hello Time 2 sec 0 cs, Max Age 20 sec 0 cs, Forward Delay 15 sec 0 cs
Dynamic Path Cost is Disabled
Dynamic Path Cost Lag-Speed Change is Disabled
Name Role State Cost Prio Type
---- ---- ----- ---- ---- ------
Gi0/11 Designated Forwarding 20000 128 P2P
Ex0/2 Designated Forwarding 2000 128 P2P
iS5Comm# show spanning-tree vlan 1 bridge
Bridge ID HelloTime MaxAge FwdDly Protocol
--------- --------- ------ ------ --------
80:00:00:01:02:03:04:01 2 sec 0 cs 20 sec 0 cs 15 sec 0 cs Pvrst