Configuring RPVST+
Procedure
Example
This example creates the following configuration:
- Sets the spanning tree mode to rpvst.
- Enables spanning tree.
- Defines spanning tree support for VLANs 2-5.
- Sets the priority for each VLAN.
switch# config switch(config)# spanning-tree mode rpvst switch(config)# spanning-tree switch(config)# spanning-tree vlan 2-5 switch(config)# spanning-tree vlan 2 priority 5 switch(config)# spanning-tree vlan 3 priority 4 switch(config)# spanning-tree vlan 4 priority 3 switch(config)# spanning-tree vlan 5 priority 2 switch(config)# exit switch# show spanning-tree Spanning tree status : Enabled Protocol: RPVST Extended System-id : Enabled Ignore PVID Inconsistency : Disabled Path cost method : Long VLAN2 Root ID Priority : 20480 MAC-Address: 70:72:cf:38:21:e5 This bridge is the root Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Bridge ID Priority : 20480 MAC-Address: 70:72:cf:38:21:e5 Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Port Role State Cost Priority Type ------------ -------------- ------------ ------- ---------- ---------- 1/1/1 Designated Forwarding 20000 128 point_to_point VLAN3 Root ID Priority : 16384 MAC-Address: 70:72:cf:38:21:e5 This bridge is the root Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Bridge ID Priority : 16384 MAC-Address: 70:72:cf:38:21:e5 Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Port Role State Cost Priority Type ------------ -------------- ------------ ------- ---------- ---------- 1/1/1 Designated Forwarding 20000 128 point_to_point VLAN4 Root ID Priority : 12288 MAC-Address: 70:72:cf:38:21:e5 This bridge is the root Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Bridge ID Priority : 12288 MAC-Address: 70:72:cf:38:21:e5 Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Port Role State Cost Priority Type ------------ -------------- ------------ ------- ---------- ---------- 1/1/1 Designated Forwarding 20000 128 point_to_point VLAN5 Root ID Priority : 8192 MAC-Address: 70:72:cf:38:21:e5 This bridge is the root Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Bridge ID Priority : 8192 MAC-Address: 70:72:cf:38:21:e5 Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Port Role State Cost Priority Type ------------ -------------- ------------ ------- ---------- ---------- 1/1/1 Designated Forwarding 20000 128 point_to_point