PVST+ and Rapid PVST+Configuration on Packet Tracer

PVST-configuration-with-packet-tracer

PVST+ Configuration on Packet Tracer

In this Spanning Tree Configuration Example, we will configure STP with STP Mode PVST+. As you know, Per VLAN STP Plus is the STP Mode that uses one STP instances per VLAN.

 

For this Configuration Example, we will use the below switch topology.

 

PVST-configuration-with-packet-tracer

 

We will do the below configuration steps for our PVST+ Configuration on Cisco Packet Tracer.

  1. Defining VLANs on the swithes (VLAN 1,2,3,4)
  2. Setting all switch interfaces as Trunk and se tthe allowed VLANs
  3. Setting STP Mode as PVST+
  4. Setting VLANs in STP Topology (VLAN 1,2,3,4)
  5. Verification
  6. PVST+ Manuplation Commands

 


 

Defining VLANs on the swithes

We will define VLAN 1,2,3 and for on each switch. VLAN 1 is also defined by default. SO it is not necessary to create it. The below configuration will be done on each switch.

 

Switch-1# configure terminal
Switch-1(config)# vlan 2
Switch-1(config-vlan)# vlan 3
Switch-1(config-vlan)# vlan 4
Switch-1(config-vlan)# exit

 


 

Setting all switch interfaces as Trunk

We will configure allt he interfaces between the switches as Trunk interfaces and we will set the allowed VLANs on these interfaces. Allowed VLANs are our VLANs that we have created before. We will do the same configuration on each switch.

 

Switch-1(config)# interface fastethernet 0/1
Switch-1(config-if)# switchport mode trunk
Switch-1(config-if)# switchport trunk allowed vlan 1-4
Switch-1(config-if)# exit
Switch-1(config)# interface fastethernet 0/2
Switch-1(config-if)# switchport mode trunk
Switch-1(config-if)# switchport trunk allowed vlan 1-4

 


 

Setting STP Mode as PVST+

We will set the stp mode as PVST on each switch.

 

Switch-1 (config)# spanning-tree mode ?
pvst Per-Vlan spanning tree mode
rapid-pvst Per-Vlan rapid spanning tree mode

Switch-1 (config)# spanning-tree mode pvst

 


 

Setting VLANs in STP Topology

After setting the STP Mode, the VLANs in the Per VLAN STP Domain will be defined on each switch like below.

 

Switch-1(config)# spanning-tree vlan 1-4
Switch-1(config)# exit

 

After the configuration, we will save the configuration on each switch.

 

Switch-1 # copy running-config startup-config

 


 

Verification of PVST+ Configuration

To verify our Per VLAN STP Plus configuration, we will use the below commands. You can find the outpıuts of some of them to learn PVST+ better.

  • show spanning-tree summary
  • show spanning-tree
  • show spanning-tree vlan vlan-id
  • show spanning-tree interface interface
  • show spanning-tree detail

 

Switch-1 # show spanning-tree summary
Switch is in pvst mode
Root bridge for:
Extended system ID is enabled
Portfast Default is disabled
PortFast BPDU Guard Default is disabled
Portfast BPDU Filter Default is disabled
Loopguard Default is disabled
EtherChannel misconfig guard is disabled
UplinkFast is disabled
BackboneFast is disabled
Configured Pathcost method used is short

Name Blocking Listening Learning Forwarding STP Active
———————- ——– ——— ——– ———- ———-
VLAN0001 0 0 0 2 2
VLAN0002 0 0 0 2 2
VLAN0003 0 0 0 2 2
VLAN0004 0 0 0 2 2

———————- ——– ——— ——– ———- ———-
4 vlans 0 0 0 8 8

 

Switch-1 # show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0001.977C.4BD8
Cost 19
Port 1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 000D.BD4B.0AB2
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Root FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p

VLAN0002
Spanning tree enabled protocol ieee
Root ID Priority 32770
Address 0001.977C.4BD8
Cost 19
Port 1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)
Address 000D.BD4B.0AB2
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Root FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p

VLAN0003
Spanning tree enabled protocol ieee
Root ID Priority 32771
Address 0001.977C.4BD8
Cost 19
Port 1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32771 (priority 32768 sys-id-ext 3)
Address 000D.BD4B.0AB2
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Root FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p

VLAN0004
Spanning tree enabled protocol ieee
Root ID Priority 32772
Address 0001.977C.4BD8
Cost 19
Port 1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32772 (priority 32768 sys-id-ext 4)
Address 000D.BD4B.0AB2
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Root FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p

 

Switch-1 # show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0001.977C.4BD8
Cost 19
Port 1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 000D.BD4B.0AB2
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Root FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p

 

Switch-1 # show spanning-tree vlan 2
VLAN0002
Spanning tree enabled protocol ieee
Root ID Priority 32770
Address 0001.977C.4BD8
Cost 19
Port 1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)
Address 000D.BD4B.0AB2
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Root FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p

 

Switch-2 # show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0001.977C.4BD8
Cost 38
Port 2(FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0002.1737.C58D
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Altn BLK 19 128.1 P2p
Fa0/2 Root FWD 19 128.2 P2p

 

Switch-2 # show spanning-tree vlan 2
VLAN0002
Spanning tree enabled protocol ieee
Root ID Priority 32770
Address 0001.977C.4BD8
Cost 38
Port 2(FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)
Address 0002.1737.C58D
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Altn BLK 19 128.1 P2p
Fa0/2 Root FWD 19 128.2 P2p

 

Switch-2 # show spanning-tree vlan 3
VLAN0003
Spanning tree enabled protocol ieee
Root ID Priority 32771
Address 0001.977C.4BD8
Cost 38
Port 2(FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32771 (priority 32768 sys-id-ext 3)
Address 0002.1737.C58D
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Altn BLK 19 128.1 P2p
Fa0/2 Root FWD 19 128.2 P2p

 

Switch-2# show spanning-tree vlan 4
VLAN0004
Spanning tree enabled protocol ieee
Root ID Priority 32772
Address 0001.977C.4BD8
Cost 38
Port 2(FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32772 (priority 32768 sys-id-ext 4)
Address 0002.1737.C58D
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
Fa0/1 Altn BLK 19 128.1 P2p
Fa0/2 Root FWD 19 128.2 P2p

 

Switch-1 # show spanning-tree interface fastEthernet 0/1
Vlan Role Sts Cost Prio.Nbr Type
—————- —- — ——— ——– ——————————–
VLAN0001 Root FWD 19 128.1 P2p
VLAN0002 Root FWD 19 128.1 P2p
VLAN0003 Root FWD 19 128.1 P2p
VLAN0004 Root FWD 19 128.1 P2p

 

Lesson tags: STP, Spanning Tree
Back to: CCNP Enterprise 350-401 ENCOR > Spanning Tree

Leave a Reply

Your email address will not be published. Required fields are marked *

CCNP Enterprise 350-401 ENCOR

Collapse
Expand