PVST – Per VLAN Spanning Tree Protocol

This how to shows how to setup PVST (Per VLAN Spanning Tree Protocol) for the VLANs created. Keep in mind the model I created here is not robust enough to support full redundancy for all VLANs but it will do just fine to show how PVSTs can be setup. This particular Packet Tracer file can be downloaded from here

In few words, assuming we have VLANs 50,60,99 and 150, PVST determines which switch will be the Root Primary Switch for VLAN50 and which Switch will be the Root Secondary for VLAN50. The same goes for the rest of the VLANs.

We are using the setup from the previous posts.
VLAN-SWITCH-REDUNANCY

On Switch 3 run the following commands.

spanning-tree mode  pvst 
spanning-tree vlan 50 priority 0
spanning-tree vlan 60 priority 0
spanning-tree vlan 80 priority 0
spanning-tree vlan 99 priority 0
spanning-tree vlan 150 priority 0

On Switch 4 run the following commands.

spanning-tree mode  pvst 
spanning-tree vlan 50 root secondary
spanning-tree vlan 60 root secondary
spanning-tree vlan 80 root secondary
spanning-tree vlan 99 root secondary
spanning-tree vlan 150 root secondary

On Switch 2 we can run few commands to increase performance by enabling instant forwarding and by also enabling bpdu-guard. These commands should be run only on switches that hosts are connected.

#On the switch that the hosts are connected. It will enable fast forwarding.
spanning-tree portfast
#On the switch that the hosts are connected. It will enable bpguard
spanning-tree BPDUguard
Share Button

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload the CAPTCHA.