Study FAQ
How do I read Rapid PVST+ port roles and states for a VLAN?
Also asked as 2
- What do root, designated, and alternate ports mean in a Rapid PVST+ VLAN instance?
- How can I identify a Rapid PVST+ VLAN’s active and standby paths from port roles and states?
Answer
Rapid PVST+ builds a loop-free topology separately for each VLAN. The switch with the lowest bridge ID is root for that instance. Each non-root switch selects its best root-facing path as its root port. The designated port supplies the best path to the root for its segment. An alternate port can remain in discarding state to provide a standby path.
The role describes what a port does in the topology. The state describes whether it is discarding, learning MAC addresses, or forwarding traffic. An alternate port that is discarding on one VLAN can be expected in a redundant design. The same physical port can have a different role or state for a different VLAN. Rapid transitions can bring a standby path into use when the active topology changes.
On a Catalyst 9300 running IOS XE 17.15.x with Rapid PVST+ enabled, use show spanning-tree vlan followed by the VLAN ID. Compare the Root ID, local Bridge ID, port roles, and states across the relevant switches. Confirm that the elected root and forwarding paths match the design.
References
Full explanation
Rapid PVST+, EtherChannel, CDP, and LLDP Operations
Study guide · 200-301
Read the full explanation