What is PVSTP (Per VLAN STP) and how to Configure PVSTP
What is PVSTP
It is the STP protocol that is used to define every VLAN separately. If we have two switches and suppose we have configured VLAN 10 on both switches and other ports are in VLAN 1 by default, but we have created VLAN 10.
How to Configure PVSTP in Packet Tracer |
VLAN Configuration |
And the other last two ports if we connect them then those ports will be used for data transmission for VLAN 1 and VLAN 10. For this, we have to configure both ports as a trunk. Here two ports will be used for the trunk but one port will be shut down or on standby and one will be active for transmission through STP.
Switch Trunk Ports |
If the first switch has a Low MAC address then it will become the Root Bridge and the second will become the Non-Root Bridge. So, if we put all responsibility of VLAN 1 and VLAN 10 data to the Root Bridge switch, it will not the good for switch 1.
If we reduce the priority number of switch 2 from 32768 to 4096 for VLAN 10, then for VLAN 1 the priority number will be the same.
Root Bridge Selection |
Switch 1 will be the Root Bridge for VLAN 1 but for VLAN 10 switch 2 will be the root bridge because we have reduced the priority number for VLAN 10 on switch 2.
Root Bridge Selection |
The blocked port in switch 2 will be active for VLAN 10 traffic because all Root Bridge ports are designated ports and in the switch, both trunk ports will be open only for VLAN 1 because these are designated ports for VLAN 1. The purpose of configuring through this method, the responsibility load will be low on switches.
VLAN Trunking |
If there are many high-quality or core switches installed anywhere, through the network design we can find how many responsibilities we have to assign to which switch. The benefit of using this is to maintain the load balance because the responsibility of root bridging will not apply on every switch. For this, we have changed the priority number to divide the switch responsibility.
Root Bridge Load Balance |
Switch>enable
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch (config) #hostname SW1
SW1 (config) #end
SW1# show spanning-tree
Show Spanning-Tree |
SW1#
Switch>enable
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch (config) #hostname SW2
SW2 (config) #end
SW2# show spanning-tree
Show Spanning-Tree |
SW2#
How to create VLANs in Packet Tracer |
SW1# configure terminal
SW1 (config) # vlan 10
SW1 (config-vlan) # name IT
SW1 (config-vlan) #exit
SW1 (config) # interface range fa0/1-5
SW1 (config-if-range) # switchport mode access
SW1 (config-if-range) # switchport access vlan 10
SW1 (config-if-range) # end
SW1#
SW2# configure terminal
SW2 (config) # vlan 10
SW2 (config-vlan) # name IT
SW2 (config-vlan) #exit
SW2 (config) # interface range fa0/1-5
SW2 (config-if-range) # switchport mode access
SW2 (config-if-range) # switchport access vlan 10
SW2 (config-if-range) # end
SW2#
SW1# show vlan
Show VLANs |
SW1#
SW2# show vlan
Show VLANs |
SW2#
SW1# configure terminal
SW1 (config) # interface range fa0/23-24
SW1 (config-if-range) # switchport mode trunk
Switchport Mode Trunk |
SW1 (config-if-range) #end
SW1# show spanning-tree
Show Spanning-Tree |
SW1#
SW2# configure terminal
SW2 (config) # interface range fa0/23-24
SW2 (config-if-range) # switchport mode trunk
SW2 (config-if-range) #end
SW2# show spanning-tree
Show Spanning-Tree |
SW2#
SW1# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW1 (config) # spanning-tree mode rapid-pvst
SW1 (config) #end
SW1# show spanning-tree
Show Spanning-Tree |
SW1#
SW2# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW2 (config) # spanning-tree mode rapid-pvst
SW2 (config) #end
SW2# show spanning-tree
Show Spanning-Tree |
SW2#
Note: apply the whole command process in the same lab with other switches to check the difference. All those commands are applied on Switch 1and 2 so, also apply them on Switch 3 and 4.
How to Change VLAN Priority Number |
SW4 (config) # spanning-tree vlan 10 priority 4096
SW4 (config) #end
SW4#
SW3#show spanning-tree
Show Spanning-Tree |
SW3#
SW4#show spanning-tree
Show Spanning-Tree |
SW4#
Search Tags
1. What is Per VLAN STP
2. Per VLAN Spanning-tree configuration
3. How do I configure Pvst+
4. How do I enable spanning-tree Pvst
5. What is Pvst mode in the switch
If you want to configure STP, RSTP, AND PRSTP then visit below link: 👇
0 Comments