Chapter 20: Rapid Spanning Tree Protocol (RSTP) Commands
376 Section III: Layer 2 Switching
Examples
The following command displays the status of RSTP for port 3:
show stp portstate=3
The following command displays the status of RSTP for all of the ports:
show stp portstate=all
State The RSTP state of the port. The possible
states for a port connected to another device
running RSTP are Discarding and
Forwarding.
The possible states for a port connected to a
device running STP are Listening, Learning,
Forwarding, and Discarding.
The possible states for a port not being used
or where spanning tree is not activated is
Disabled.
Role The RSTP role of the port. Possible roles are:
Root - The port is connected to the
root switch, directly or through other
switches, with the least path cost.
Alternate - The port offers an
alternate path to the root switch.
Backup - The port on a designated
switch that provides a backup for the
path provided by the designated port.
Designated - The port has the least
cost path to the root switch.
Edge Whether the port is functioning as an edge
port.
P2P Whether or not the port is functioning as a
point-to-point port. The possible settings are
Yes and No.
Version Whether the port is operating in RSTP mode
or STP-compatible mode.
Port Cost The current operating cost of the port.
Table 43. SHOW STP PORTSTATE Command (Continued)
Column Description