The general steps for configuring RPVST+ via the CLI are:
Procedure
-
Select RPVST+ as the active spanning tree mode by entering the following command:
spanning-tree mode rapid-pvst
To begin with the default RPVST+ configuration (recommended), go to step 6.
-
Configure global spanning tree parameters.
-
Configure per-VLAN parameters.
-
Configure per-port per-VLAN parameters. These commands affect RPVST+ operation on traffic associated with the specified VLAN(s) through the specified port(s).
-
Configure per-port parameters. These commands affect RPVST+ operation for all traffic through the specified port(s).
-
Use one of the following commands to enable RPVST+ spanning tree operation on the switch:
-
One or more selected VLANs:
spanning-tree vlan
vid-list
-
One or more selected VLANs:
spanning-tree vlan
vid-list
-
The first 400 VLANs:
spanning-tree
Any VLANs in excess of the first 400 would have RPVST+ disabled. In this case, use the
no
spanning-tree vlan
vid-list command to change the mix of RPVST+ enabled and disabled VLANs.
Additional configuration options include: