Use this procedure to enable the Rapid Per-VLAN Spanning Tree Protocol Plus (R-PVST+).
device# configure terminal
device(config)# protocol spanning-tree rpvst
device(config-rpvst)# bridge-priority 4096
device(config-rpvst)# forward-delay 20
device(config-rpvst)# hello-time 22
device(config-rpvst)# max-age 8
device(config-rpvst)# transmit-holdcount 9
device(config-rpvst)# end
device# show spanning-tree brief VLAN 1 Spanning-tree Mode: Rapid PVST Protocol Root ID Priority 4096 Address 01e0.5200.0180 Hello Time 2, Max Age 7, Forward Delay 11 Bridge ID Priority 32769 Address 01e0.5200.0180 Hello Time 8, Max Age 22, Forward Delay 20, Tx-HoldCount 9 Migrate Time 3 sec Interface Role Sts Cost Prio Link-type Edge ---------------------------------------------------------------------
Observe that the settings comply with the formula set out in the STP parameters section, as:
(2 × (forward delay - 1)) ≥ maximum age ≥ (2 × (hello time + 1))
or in this case: 20 ≥ 7 ≥ 6.
device# copy running-config startup-config
device# configure terminal device(config)# protocol spanning-tree rpvst device(config-rpvst)# bridge-priority 4096 device(config-rpvst)# forward-delay 20 device(config-rpvst)# hello-time 22 device(config-rpvst)# max-age 8 device(config-rpvst)# transmit-holdcount 9 device(config-rpvst)# end device# show spanning-tree brief device# copy running-config startup-config
For more information about configuring parameters, see the section STP parameter configuration.