show spanning-tree vlan

To display Spanning Tree Protocol (STP) information for specified VLANs, use the show spanning-tree vlan command.

show spanning-tree vlan {vlan-id} [active [brief | detail]]

show spanning-tree vlan {vlan-id} [blockedports]

show spanning-tree vlan {vlan-id} [bridge [address] | brief | detail | forward-time | hello-time | id | max-age | priority [system-id] | protocol]

show spanning-tree vlan {vlan-id} [brief [active]]

show spanning-tree vlan {vlan-id} [detail [active]]

show spanning-tree vlan {vlan-id} [inconsistentports]

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

show spanning-tree vlan {vlan-id} [root [address | brief | cost | detail | forward-time | hello-time | id | max-age | port | priority [system-id]]

show spanning-tree vlan {vlan-id} [summary]

Syntax Description

vlan-id

VLAN or range of VLANs that you want to display.

active

(Optional) Displays information about STP VLANs and active ports.

brief

(Optional) Displays a brief summary of STP information for the specified VLANs.

detail

(Optional) Displays detailed STP information for the specified VLANs.

blockedports

(Optional) Displays the STP alternate ports in the blocked state for the specified VLANs.

bridge

(Optional) Displays the status and configuration of the bridge for the specified VLANs.

address

(Optional) Displays the MAC address for the specified STP bridge for the specified VLANs.

forward-time

(Optional) Displays the STP forward delay interval for the bridge for the specified VLANs.

hello-time

(Optional) Displays the STP hello time for the bridge for the specified VLANs.

id

(Optional) Displays the STP bridge identifier for the specified VLANs.

max-age

(Optional) Displays the STP maximum-aging time for the specified VLANs.

priority

(Optional) Displays the STP priority for the specified VLANs.

system-id

(Optional) Displays the bridge identification with the system ID added for the specified VLANs.

protocol

(Optional) Displays which STP protocol is active on the switch.

inconsistentports

(Optional) Displays the ports that are in an inconsistent STP state for specified VLANs.

interface

(Optional) Specifies the interface. The interface can be Ethernet or EtherChannel.

ethernet slot/port

(Optional) Specifies the Ethernet interface and its 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

(Optional) Specifies the EtherChannel interface and number. The EtherChannel number is from 1 to 4096.

cost

(Optional) Displays the STP path cost for the specified VLANs.

edge

(Optional) Displays the STP-type edge port information for the specified interface for the specified VLANs.

inconsistency

(Optional) Displays the STP port inconsistency state for the specified interface for the specified VLANs.

priority

(Optional) Displays the STP priority for the specified VLANs.

rootcost

(Optional) Displays the path cost to the root for specified interfaces for the specified VLANs.

state

(Optional) Displays the current port STP state. Valid values are blocking, disabled, learning, and forwarding.

port

(Optional) Displays information about the root port for the specified VLANs.

summary

(Optional) Displays summary STP information on the specified VLANs.


Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Examples

This example shows how to display STP information on VLAN 1:

switch# show spanning-tree vlan 1  

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 interface

Displays the STP interface status and configuration of specified interfaces.

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.