Use it as the default spanning-tree mode on Cisco access and distribution switches (spanning-tree mode rapid-pvst).
Rapid PVST+
Rapid PVST+ is Cisco's per-VLAN implementation of RSTP (802.1w). Each VLAN has its own tree, and ports converge in about a second using proposals and agreements instead of timers.
1. show spanning-tree summary — mode rapid-pvst on every switch?
2. show spanning-tree vlan <id> — link type P2p on uplinks, Edge on host ports?
3. Shr on an uplink → duplex problem or spanning-tree link-type point-to-point needed.
4. Peer runs classic PVST+ → that link converges slowly (Peer(STP)).
5. show spanning-tree root — root per VLAN as designed.
rapid-pvst mode on all switches → uplinks point-to-point → host ports edge → proposal/agreement on each link → fast transition to forwarding per VLAN
Inspect detailed port roles/costs and compare the expected forwarding path hop by hop.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
spanning-tree mode rapid-pvstPrimary Commands
Configuration and operational commands for this Topic.
spanning-tree mode rapid-pvstReferenceSelects Rapid PVST+ as spanning-tree mode on supported Cisco switches.
Use when: Enable per-VLAN rapid spanning-tree behavior.
Quick note: Verify show spanning-tree summary and per-VLAN trees after change.
spanning-tree vlan <vlan> root primaryReferenceMake the switch root bridge for a VLAN.
Use when: Influence the switch to become root for the VLAN without manually calculating a priority.
Quick note: Verify actual Root ID after change; the command is a convenience calculation, not a separate election mechanism.
Cisco IOS / IOS XE · mixedspanning-tree vlan <vlan> root secondaryReferenceMake the switch backup root bridge for a VLAN.
Use when: Prepare this switch as a likely secondary root for the VLAN.
Quick note: Verify local Bridge ID and current Root ID.
Cisco IOS / IOS XE · mixedspanning-tree vlan <vlan> priority <value>ReferenceSet the bridge priority for a VLAN (multiple of 4096).
Use when: Set explicit deterministic BID priority for a VLAN.
Quick note: Lower priority is preferred; verify actual displayed priority.
Cisco IOS / IOS XE · mixedspanning-tree vlan <vlan> cost <value>ReferenceSet the spanning-tree port cost for a VLAN.
Use when: Influence root-path selection for one VLAN.
Quick note: Use before/after per-VLAN STP output; lower total root path cost is preferred.
Cisco IOS / IOS XE · mixedspanning-tree vlan <vlan> port-priority <value>ReferenceSet the spanning-tree port priority for a VLAN.
Use when: Fine-tune selection among otherwise equal candidate paths.
Quick note: Verify competing port IDs/costs before relying on this tie-break.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show spanning-treeShowSTP root, bridge, roles, states and path costs.
Use when: Get a broad spanning-tree view before drilling into one VLAN/interface.
Quick note: Use per-VLAN/instance commands for precise troubleshooting.
Cisco IOS XE · mixedshow spanning-tree vlan <vlan>ReferenceDisplay spanning-tree state for a VLAN: root, roles and port states.
Use when: Primary Rapid PVST+/PVST per-VLAN troubleshooting command.
Quick note: Establish root → root port → designated/alternate roles → state.
Cisco IOS / IOS XE · mixedshow spanning-tree interface <interface>ReferenceDisplay spanning-tree state of one interface.
Use when: Quickly see how one physical/logical link participates in spanning tree.
Quick note: Use interface detail and per-VLAN output for deeper cause.
Cisco IOS / IOS XE · mixedshow spanning-tree interface <interface> detailReferenceInspect per-interface STP role/state, cost, port ID and guard-related evidence.
Use when: Investigate why a specific interface has its current STP role/state or whether protection/edge behavior applies.
Quick note: Correlate with target VLAN tree and logs/physical link state.
Cisco IOS XE · mixedshow spanning-tree rootShowSummarizes root information per spanning-tree instance/VLAN.
Use when: Quickly verify intended root placement across many VLANs/instances.
Quick note: Drill into show spanning-tree vlan <vlan> or MST instance if unexpected.
show spanning-tree summaryShowDisplay a spanning-tree summary, including mode and enabled features.
Use when: Confirm mode and get a high-level health/feature summary.
Quick note: Use it as orientation, then inspect the affected tree.
Cisco IOS / IOS XE · mixedHow to read the output
show spanning-tree vlan <vlan>Look first: root ID, bridge ID, root port, interface role/state/cost
Healthy: Expected root and forwarding/blocking roles match design.
Warning: Unexpected root, topology changes, inconsistent/blocking state or wrong root port.
Does not prove: STP forwarding does not prove VLAN/trunk/L3/application correctness.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Run show spanning-tree vlan <id> for representative VLANs and verify root identity, local root port, designated/alternate roles and forwarding/discarding state. Do not infer all VLANs from one VLAN's output. On trunks, compare several VLANs if root placement differs. A rapid role change after a failure can be normal; topology-change counters and timestamps provide context. If a port is forwarding in one VLAN but not another, inspect per-VLAN STP and allowed-VLAN state before assuming a physical problem. Compare the intended root placement as well: a port role that looks unexpected in isolation may be exactly what the configured per-VLAN root priorities require.
Step 2 Per-VLAN troubleshooting path Narrow the fault
Target VLAN → show spanning-tree vlan <vlan> → Root ID/Bridge ID → root port and total cost → designated/alternate roles on redundant links → interface detail/topology changes → protection state. Compare the same VLAN on both ends of every relevant link.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The official Cisco source documents this command in a bounded Cisco product/release or feature context.
command output · Evidence referenceRedundant uplink is Alternate/DiscardingA redundant uplink shows Alternate/BLK (discarding) while the intended root port is forwarding.
Subtopics
Go one level deeper into this subject.
Rapid PVST+ elects the lowest Bridge ID independently for each VLAN.
Subtopic Root PortA non-root bridge chooses one root port per VLAN by comparing received rapid spanning-tree information.
Subtopic Designated PortFor each VLAN and Layer-2 segment, Rapid PVST+ selects the port advertising the best path toward the root as designated.
Subtopic Alternate PortAn alternate port is a loop-free standby path toward the root learned through a different bridge.
Subtopic Backup PortA backup port is an RSTP role representing a redundant path to the same shared segment through another local port on the same bridge.
Subtopic DiscardingRSTP collapses legacy Blocking, Listening and Disabled behavior into the Discarding state for user data.
Subtopic LearningLearning is the transitional state in which the bridge can learn source MAC addresses but still does not forward ordinary user traffic through the port.
Subtopic ForwardingA Rapid PVST+ port in Forwarding can learn source MAC addresses and forward user frames for that VLAN, but Forwarding alone does not prove the end-to-end path is correct.
Fast convergence needs point-to-point links (full duplex) and edge ports (PortFast) towards hosts; on shared or half-duplex links it falls back to timers. Roles: root, designated, alternate, backup; states: discarding, learning, forwarding. Every VLAN costs CPU — prune VLANs from trunks where they are not needed.
show spanning-tree summary— mode rapid-pvst.show spanning-tree vlan <id>— roles, states and link type (P2p, Edge, Shr).show spanning-tree vlan <id> detail— topology changes.show spanning-tree root— root per VLAN.show spanning-tree interface <if>— role and state in every VLAN on a trunk.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
Rapid PVST+: RSTP per VLAN, the Catalyst 9300 default
Rapid PVST+ runs a separate RSTP instance for each VLAN. The Catalyst 9300 STP guide gives it as the default mode, with up to 300 instances (from 17.2.1). Each VLAN can have its own root, so traffic for different VLANs can use different uplinks.
C9300-DIST-A(config)# spanning-tree mode rapid-pvst
C9300-DIST-A(config)# spanning-tree vlan 10,30 root primary
C9300-DIST-A(config)# spanning-tree vlan 20,40 root secondary
C9300-DIST-B(config)# spanning-tree vlan 20,40 root primary
C9300-DIST-B(config)# spanning-tree vlan 10,30 root secondary
C9300-DIST-A# show spanning-tree root
Root Hello Max Fwd
Vlan Root ID Cost Time Age Dly Root Port
---------------- -------------------- --------- ----- --- --- ------------
VLAN0010 24586 a4bb.6d11.2200 0 2 20 15
VLAN0020 24596 a4bb.6d55.6600 2 2 20 15 Po1
root primary and root secondary (from the guide)
| Command | Effect |
|---|---|
root primary | Lowers the priority to 24576 if needed to become root |
root secondary | Sets the priority to 28672, so the switch takes over if the primary fails |
diameter option | 2–7; use the same value on both switches |
The guide recommends not tuning hello, forward delay or max age manually after root primary.
Scale
| Factor | Effect |
|---|---|
| One instance per VLAN | Each instance sends its own BPDUs on every trunk |
| Many VLANs on many trunks | CPU load; check the count against the 300-instance limit |
| Alternative | MST: VLANs grouped into a few instances |
Load sharing by root placement
With roots split as in the example, odd VLANs forward via distribution A and even VLANs via distribution B. Align HSRP or VRRP active roles with the same split so traffic doesn't cross the link between the distribution switches.
Interoperability
Rapid PVST+ falls back to PVST+ on ports facing legacy switches. With MST neighbours, it meets them at an MST region boundary.
Documented example, not captured output.
Quick reference
Rapid PVST+ is Cisco's per-VLAN implementation of RSTP (802.1w): one rapid spanning-tree instance per VLAN. It converges in about a second using proposal/agreement handshakes on point-to-point links instead of timers.
| RSTP port role | Meaning |
|---|---|
| Root | Best path to root |
| Designated | Forwarding towards a segment |
| Alternate | Backup path to root (blocked) |
| Backup | Backup on a shared segment |
| Disabled | Administratively down |
spanning-tree mode rapid-pvst
spanning-tree vlan 10,20 root primary
show spanning-tree vlan 10
Documented example, not captured output.
State model and protocol mechanics
Rapid PVST+ applies rapid spanning-tree behavior to separate per-VLAN instances. Each VLAN elects its own root bridge and computes root/designated/alternate roles, allowing different VLANs to use different logical Layer-2 paths if priorities are designed that way. RSTP proposal/agreement behavior and edge-port concepts accelerate convergence compared with classic 802.1D, while alternate paths can transition rapidly when the active path fails. Because instances are per VLAN, the same physical trunk can be forwarding for one VLAN and blocked for another. PortFast/edge designation changes transition behavior but does not remove the need for BPDU protections on true endpoint ports.
Limits and common misconceptions
Rapid PVST+ is still a Layer-2 loop-prevention protocol, not a routing or gateway-selection mechanism. A port can legitimately have different forwarding state per VLAN. PortFast accelerates edge transition but does not make a port immune to loops; BPDU Guard is a separate protection. Faster convergence does not mean zero traffic loss under every event, especially when upstream MAC learning or first-hop state also changes. Keep per-VLAN root design, port role/state, trunk allowance and Layer-3 gateway placement distinct. Rapid convergence also depends on correct edge and point-to-point assumptions; misclassifying a network-facing link as an edge can trade apparent speed for reduced loop protection.
ReferenceConfiguration & state2 sections · depth on demand
Cisco IOS / IOS XE baseline
A common Cisco baseline uses spanning-tree mode rapid-pvst, deliberate per-VLAN root placement with spanning-tree vlan <vlan> root primary|secondary or explicit priority, and interface cost/port-priority only when path engineering is required.
Design and configuration model
Choose root and secondary-root priorities per VLAN or VLAN group to align traffic with the intended distribution topology. Avoid accidental load balancing that creates asymmetric Layer-2 paths without operational benefit. Configure edge ports with PortFast only where no switch should appear, pair it with BPDU Guard according to policy, and keep trunk ports as network ports unless a specific design justifies otherwise. Ensure allowed VLAN lists and EtherChannel configuration are stable so spanning-tree instances see the intended topology. Document any VLANs intentionally rooted on different devices.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Switching → STP → RSTP — 802.1w → Rapid PVST+. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Official Cisco vendor documentation reviewed for bounded reference claims: Rapid-PVST+ per-VLAN spanning-tree behavior. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.
Basis: https://www.cisco.com/c/en/us/td/docs/switches/lan/c9000/lyr2-fwd/stp/stp-configuration-guide/m-stp.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Rapid PVST+ command map
Primary versus verification commands for Cisco Rapid PVST+
| Goal | Command |
|---|---|
| Enable mode | spanning-tree mode rapid-pvst |
| Prefer root | spanning-tree vlan <vlan> root primary |
| Backup root | spanning-tree vlan <vlan> root secondary |
| Explicit bridge priority | spanning-tree vlan <vlan> priority <value> |
| Influence interface path | spanning-tree vlan <vlan> cost <value> |
| Verify VLAN tree | show spanning-tree vlan <vlan> |
| Verify interface detail | show spanning-tree interface <interface> detail |
Rapid PVST+ · operational reference
Compact state and interpretation boundaries for fast lookup.
| Rapid PVST+ scope | Interpretation |
|---|---|
| Per VLAN | Independent STP instance |
| Root priority | Can differ by VLAN |
| Alternate port | Rapid backup path |
| Edge/PortFast | Fast endpoint transition, not loop immunity |