STP Commands
show spanning-tree interfaces
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
420
33
Default port cost method: short
Root ID Priority 32768
Address 64:d8:14:5d:6d:36
This switch is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Number of topology changes 2 last change occurred 04:57:14 ago
Times: hold 0, topology change 0, notification 0
hello 2, max age 20, forward delay 15
Interfaces
Name State Prio.Nbr Cost Sts Role PortFast Type
--------- -------- -------- -------- ------ ---- -------- -----------------
fa22 enabled 128.22 19 Frw Desg No P2P (STP)
show spanning-tree interfaces
To show the STP statistics for specific interfaces, use the show spanning-tree
interfaces Privileged EXEC mode command.
Syntax
show spanning-tree interfaces
interface-id
[statistic]
Parameters
•
interface-id
—An interface ID or a list of interface IDs. The interface can be
one of these types: Ethernet port or port channel.
•
statistic—(Optional) Displays the STP statistics for the specified interfaces.
Command Mode
Privileged EXEC mode
Examples
Example 1—The following example shows the STP information of gi1:
switchxxxxxx#
show spanning-tree interfaces gi1
Port gi1 enabled
State: disabled Role: disabled
Port id: 128.1 Port cost: 200000