show spanning-tree interface

To display information on the Spanning Tree Protocol (STP) interface status and configuration of specified interfaces, use the show spanning-tree interface command.

show spanning-tree interface { ethernet slot / port | port-channel number } [ active [ brief | detail ] | brief [ active ] | cost | detail [ active ] | edge | inconsistency | priority | rootcost | state ]

Syntax Description

interface
Specifies the interface. The interface can be Ethernet or EtherChannel.
ethernet slot/port
Specifies the Ethernet interface slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128.
port-channel number
Specifies the EtherChannel interface and number. The EtherChannel number is from 1 to 4096.
active
(Optional) Displays information about STP active interfaces only on the specified interfaces.
brief
(Optional) Displays brief summary of STP information on the specified interfaces.
detail
(Optional) Displays detailed STP information about the specified interfaces.
cost
(Optional) Displays the STP path cost for the specified interfaces.
edge
(Optional) Displays the STP-type edge port information for the specified interfaces.
inconsistency
(Optional) Displays the port STP inconsistency state for the specified interfaces.
priority
(Optional) Displays the STP port priority for the specified interfaces.
rootcost
(Optional) Displays the path cost to the root for specified interfaces.
state
(Optional) Displays the current port STP state.

Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.

Usage Guidelines

The STP port type displays only when you have configured the port as either an STP edge port or an STP network port. If you have not configured the STP port type, no port type displays.

If you specify an interface that is not running STP, the switch returns an error message.

When you are running Multiple Spanning Tree (MST), this command displays the Per VLAN Spanning Tree (PVST) simulation setting.


Note If you are running Multiple Spanning Tree (MST), use the show spanning-tree mst command to show more detail on the specified interfaces.


Examples

This example shows how to display STP information on a specified interface:

switch(config)# show spanning-tree interface ethernet 1/3
 

This example shows how to display detailed STP information on a specified interface:

switch(config)# show spanning-tree interface ethernet 1/3 detail
 

Related Commands

Command
Description
show spanning-tree
Displays information about STP.
show spanning-tree active
Displays information about STP active interfaces only.
show spanning-tree bridge
Displays the bridge ID, timers, and protocol for the local bridge on the switch.
show spanning-tree brief
Displays a brief summary about STP.
show spanning-tree detail
Displays detailed information about STP.
show spanning-tree mst
Displays information about Multiple Spanning Tree (MST) STP.
show spanning-tree root
Displays the status and configuration of the root bridge for the STP instance to which this switch belongs.
show spanning-tree summary
Displays summary information about STP.
show spanning-tree vlan
Displays STP information for specified VLANs.