3.12.26. show spanning-tree interface

Syntax

show spanning-tree interface IF_PORTS [statistic]

Parameter

interfaceIF_PORTS

An interface ID or the list of interface IDs.

statistic

Display the STP statistic for an interface.

Default

Mode

Privileged EXEC

Usage

To show the STP configuration and statistics for an interface, use the command show spanning-tree interface in the Privileged EXEC mode.

Example

The following example shows the STP configuration for the interface gi1.

Switch# show spanning-tree interfaces gi1
Port gi1 enabled
State: forwarding Role: designated
Port id: 128.23 Port cost: 19
Type: P2P (RSTP) Edge Port: No
Designated bridge Priority : 32768 Address: 00:58:3F:33:44:55
Designated port id: 128.23 Designated path cost: 0
BPDU Filter: Disabled BPDU guard: Disabled
BPDU: sent 21886, received 0

The following example shows the STP statistic for the interface gi1.

Switch# show spanning-tree interfaces gi1 statistic
STP Port Statistic
------------------------------------------------------------------------
Port : gi1
Configuration BDPUs Received : 0
TCN BDPUs Received : 0
MSTP BDPUs Received : 0
Configuration BDPUs Transmitted : 0
TCN BDPUs Transmitted : 0
MSTP BDPUs Transmitted : 21917
------------------------------------------------------------------------