Rapid Spanning Tree Configuration

Configure Cisco Rapid PVST+, follow the proposal-agreement handshake, and see how RSTP restores a loop-free path quickly.

RSTPRapid PVST+802.1wCisco IOS
Rapid Spanning Tree cheat sheet: use this quick map before reading the detailed sections.
9-part learning path

Spanning Tree Protocol Series

Follow these lessons in order to move from Layer 2 loop prevention through edge-port protection to Rapid PVST+ configuration.

Part 9 of 9
Lesson overview

In This Lesson

Understand why Rapid STP converges faster before entering commands. Port roles, proposal and agreement, edge behavior, and failure testing are connected into one workflow.

  1. What is Rapid Spanning Tree?
  2. Enable Rapid PVST+ on Cisco switches
  3. RSTP synchronization: proposal and agreement
  4. Rapid PVST+ topology and port roles
  5. RSTP port states
  6. RSTP BPDUs and link types
  7. How RSTP handles link failures
From idea to operation

Quick Learning Map

Keep these three decisions in view as you work through the detailed lesson.

1

Establish roles

Elect the root and identify root, designated, alternate, and backup ports.

2

Synchronize quickly

Proposal and agreement let point-to-point links transition safely.

3

Test a failure

Observe alternate-path activation and confirm traffic recovers as expected.

Fast orientation

Rapid Spanning Tree Configuration at a Glance

Use this summary to establish the big picture before moving into commands, examples, and troubleshooting.

Standard

RSTP is IEEE 802.1w; Rapid PVST+ applies it per VLAN on Cisco switches.

States

Discarding, learning, and forwarding replace the five classic STP states.

Speed

Explicit handshakes and alternate ports reduce dependence on long timers.

What is Rapid Spanning Tree?

Rapid Spanning Tree Protocol (RSTP, IEEE 802.1w) keeps the same loop-free topology goal as classic STP but converges faster. Cisco Rapid PVST+ runs an RSTP instance for each VLAN and uses explicit port roles, edge ports, point-to-point links, rapid failure detection, and proposal-agreement handshakes.
Physical redundancyMultiple Layer 2 paths
→
Rapid PVST+One RSTP instance per VLAN
→
Loop-free forwardingRapid failover available
Important: Rapid PVST+ changes convergence behavior, not root election or path-cost logic. The lowest Bridge ID still becomes root, and the best BPDU still determines port roles.

Enable Rapid PVST+ on Cisco switches

Configure the mode consistently on every switch in the Layer 2 domain. The command changes the spanning-tree mode globally.

SW1(config)# spanning-tree mode rapid-pvst
SW2(config)# spanning-tree mode rapid-pvst
SW3(config)# spanning-tree mode rapid-pvst

Rapid PVST+ calculates a separate rapid spanning tree per VLAN. Root placement should therefore be planned and verified per VLAN.

SW1# show spanning-tree summary
Switch is in rapid-pvst mode

SW1# show spanning-tree vlan 10
VLAN0010
  Spanning tree enabled protocol rstp
Change control: changing STP mode affects the whole switched topology. Apply it during a controlled window, maintain console or out-of-band access, and verify every relevant VLAN.

RSTP synchronization: proposal and agreement

On an eligible point-to-point link, RSTP can establish a safe forwarding relationship without waiting through the classic listening and learning timers.

RSTP proposal, synchronization, agreement and forwarding between two switches
Original visual: the receiving switch synchronizes its other non-edge ports before replying with an agreement.
SW1# debug spanning-tree events
RSTP(10): transmitting a proposal on Fa0/14

SW2#
RSTP(10): received superior bpdu on Fa0/14
RSTP(10): Fa0/14 is now root port
RSTP(10): syncing port Fa0/16
RSTP(10): transmitting an agreement on Fa0/14

SW1#
RSTP(10): received an agreement on Fa0/14
Debug carefully: debug output can be CPU-intensive and noisy. Use it only in a lab or controlled maintenance window, then run undebug all.

Rapid PVST+ topology and port roles

The steady-state tree can look identical to classic STP. The difference is how quickly RSTP reaches and repairs that topology.

RSTP switch topology with port roles and three port states
Original visual: green links forward while the orange alternate path remains ready for rapid activation.

Root port

Best path from a non-root switch toward the root bridge.

Designated port

Best port forwarding from a segment toward the root.

Alternate port

Backup path toward the root; normally discarding.

Backup port

Backup for the same shared segment; uncommon today.

RSTP port states

RSTP reduces the five classic 802.1D states to three operational states.

Classic STP stateRSTP stateLearns MAC addresses?Forwards user frames?
DisabledDiscardingNoNo
BlockingDiscardingNoNo
ListeningDiscardingNoNo
LearningLearningYesNo
ForwardingForwardingYesYes

Port role and port state are separate. For example, a designated port can temporarily be discarding while synchronization is in progress.

Direct root-port failure
SW3× root linkSW1

SW3 immediately recognizes the local link failure and can promote its alternate port as the new root port.

Indirect failure
SW2→ SW3 →SW1

Fresh BPDUs and the rapid role-selection process correct the topology without optional legacy BackboneFast configuration.

SW3#
RSTP(10): root port Fa0/14 is going down
RSTP(10): Fa0/16 is now root port
Built in: behavior comparable to classic Cisco UplinkFast and BackboneFast is integrated into RSTP rather than enabled as separate features.

How RSTP handles topology changes

RSTP treats a non-edge port moving to forwarding as a topology change. The switch sets the topology-change flag in its BPDUs, and receiving switches rapidly age affected dynamic MAC entries so traffic can follow the new path.

A link failure by itself is not the trigger, and edge-port changes are excluded. This prevents an ordinary endpoint disconnect from causing unnecessary network-wide MAC relearning.

Configure endpoint-facing RSTP edge ports

An endpoint does not participate in proposal-agreement negotiation. Mark a verified host-facing access port as an edge port with PortFast so it forwards immediately.

SW2(config)# interface FastEthernet0/2
SW2(config-if)# switchport mode access
SW2(config-if)# spanning-tree portfast
SW2(config-if)# spanning-tree bpduguard enable

On newer platforms, explicit edge syntax may also be available:

SW2(config-if)# spanning-tree portfast edge
Only endpoint ports: do not configure an ordinary switch-to-switch link as an edge port. Pair endpoint-facing PortFast with BPDU Guard to shut an unexpected BPDU source safely.

For a complete edge-port lesson, read Cisco PortFast Configuration.

Rapid PVST+ compatibility with classic STP

RSTP can interoperate with a neighbor running legacy IEEE 802.1D behavior. The rapid switch detects the legacy BPDU and operates with classic behavior on that port.

SW2(config)# spanning-tree mode pvst

SW1# show spanning-tree vlan 10
Interface  Role Sts Cost  Prio.Nbr Type
---------  ---- --- ----- -------- ----------------
Fa0/14     Desg FWD 19    128.14   P2p Peer(STP)

The topology remains loop-free, but the legacy boundary cannot use the complete proposal-agreement process. Treat compatibility as a migration feature, not a reason to leave an unplanned mixed-mode design.

Rapid spanning tree verification checklist

  1. Confirm every intended switch reports rapid-pvst mode.
  2. Verify the expected root bridge for every active VLAN.
  3. Check root, designated, alternate and any unexpected backup roles.
  4. Confirm inter-switch links show the intended P2p type.
  5. Verify endpoint ports show edge behavior and BPDU Guard protection.
  6. Look for Peer(STP) boundaries during migration.
  7. Test failover during a controlled window and record convergence results.
show spanning-tree summary
show spanning-tree vlan 10
show spanning-tree vlan 10 detail
show spanning-tree interface GigabitEthernet1/0/1 detail
show interfaces status err-disabled

Common Rapid PVST+ mistakes

  • Changing only one switch: mixed operation works, but legacy boundaries lose rapid behavior.
  • Confusing role with state: root/designated/alternate/backup are roles; discarding/learning/forwarding are states.
  • Assuming every full-duplex link is safe: point-to-point classification enables negotiation but does not correct a bad physical design.
  • Forgetting per-VLAN roots: Rapid PVST+ maintains an instance and root election per VLAN.
  • Using PortFast on switch links: edge configuration can allow an immediate loop.
  • Running debug commands in production without controls: use show commands first.

Rapid Spanning Tree FAQs

What command enables Rapid PVST+?

Use spanning-tree mode rapid-pvst in global configuration mode on each participating Cisco switch.

Is Rapid PVST+ the same as RSTP?

Rapid PVST+ is Cisco’s per-VLAN implementation of RSTP concepts. It runs a rapid spanning-tree instance for each VLAN.

Does RSTP still use BPDUs?

Yes. Every bridge sends RSTP BPDUs at the hello interval, and flag bits communicate role, state, proposal, agreement and topology-change information.

Why does RSTP converge faster?

It uses explicit alternate paths, direct neighbor failure detection, edge ports, and proposal-agreement negotiation on point-to-point links instead of relying only on classic timers.

What is an RSTP backup port?

It is a redundant port from the same switch to the same shared segment. It is rare in modern full-duplex switched networks.

Can RSTP work with old STP switches?

Yes, but the port connected to the legacy neighbor falls back to classic behavior and cannot provide full rapid convergence across that boundary.

Authoritative references

RSTP roles, states, rapid transitions and compatibility were verified against Cisco’s Understanding Rapid Spanning Tree Protocol and Rapid PVST+ configuration guide.