What is PVSTP (Per VLAN STP) and how to Configure PVSTP

 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.

What is PVSTP
How to Configure PVSTP in Packet Tracer

The VLAN 10 priority number will be added with the switch priority number 32768, both switches for VLAN 10 priority number will be 32778. And the Switches priority number for VLAN 1 will be 32769.

VLAN
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.

Trunk Ports
Switch Trunk Ports

Root Bridge Selection

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
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
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
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
Root Bridge Load Balance

How to Configure PVSTP

Basic Switch Configuration STP Enabled

Switch 1

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

Spanning-Tree
Show Spanning-Tree

SW1#

Switch 2

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

Spanning-Tree
Show Spanning-Tree

SW2#

Creating VLAN 10 on both Switches

How to create VLANs
How to create VLANs in Packet Tracer

Switch 1

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#

Switch 2

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#

Verification

Switch 1

SW1# show vlan

VLAN
Show VLANs

SW1#

Switch 2

SW2# show vlan

VLAN
Show VLANs

SW2#

Configuring the Trunk on Switches 1 and 2

Switch 1

SW1# configure terminal

SW1 (config) # interface range fa0/23-24

SW1 (config-if-range) # switchport mode trunk

Switchport Mode
Switchport Mode Trunk

SW1 (config-if-range) #end

SW1# show spanning-tree

Spanning-Tree
Show Spanning-Tree

SW1#

Switch 2

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

Spanning-Tree
Show Spanning-Tree

SW2#

Enabling Rapid Spanning Tree Protocol on Switches 1 and

 2

Switch 1

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

Spanning-Tree
Show Spanning-Tree

SW1#

Switch 2

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

Spanning-Tree
Show Spanning-Tree

SW2#

Changing Priority Number on Switch 4

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.

VLAN Priority Number
How to Change VLAN Priority Number

SW4 (config) # spanning-tree vlan 10 priority 4096

SW4 (config) #end

SW4#

Verification on switches 3 and 4

Switch 3

SW3#show spanning-tree

Spanning-Tree
Show Spanning-Tree

SW3#

Switch 4

SW4#show spanning-tree

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

Get Packet Tracer Lab

 

If you want to configure STP, RSTP, AND PRSTP then visit below link: ðŸ‘‡

How to Configure STP

How to Configure RSTP

Priority Reducing STP Election (PRSTP) Configuration

Post a Comment

0 Comments