show spanning-tree interfaces

This topic explains the command that displays spanning tree configuration and statistics for an interface or LAG.

Syntax

show spanning-tree interfaces id

Parameter

id: Specify the interface, LAG, a range of interfaces, or a range of LAGs. The id parameter represents the interface or LAG number or a range of interface numbers or LAG numbers. Use a hyphen to indicate a range. Use a comma to separate individual interfaces, ranges, or a combination of both.

Default

No default value.

Mode

Privileged EXEC

Usage

Use this command to show the STP configuration and statistics for an interface or LAG.

Example: This example shows how to display the STP configuration for interface g23:
CODE
Switch# show spanning-tree interfaces g23

Port g23 enabled
State: forwarding                              Role: designated
Port id: 128.23                                Port cost: 19
Type: P2P (RSTP)                               Edge Port: No
Designated bridge Priority : 32768             Address: 00:11:22:33:44:55
Designated port id: 128.23                     Designated path cost: 0
BPDU Filter: Disabled                          BPDU guard: Disabled
BPDU: sent 21886, received 0