CCNA Lab 3.3.2.3
CCNA Lab 3.3.2.3
CCNA Lab 3.3.2.3
Topology
Addressing Table
VLAN Assignments
VLAN Name
10 User
99 Management
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure VLANs, Native VLAN, and Trunks
Part 3: Configure the Root Bridge and Examine PVST+ Convergence
Part 4: Configure Rapid PVST+, PortFast, BPDU Guard, and Examine Convergence
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 9
Lab – Configuring Rapid PVST+, PortFast, and BPDU Guard
Background / Scenario
The Per-VLAN Spanning Tree (PVST) protocol is Cisco proprietary. Cisco switches default to PVST. Rapid
PVST+ (IEEE 802.1w) is an enhanced version of PVST+ and allows for faster spanning-tree calculations and
convergence in response to Layer 2 topology changes. Rapid PVST+ defines three port states: discarding,
learning, and forwarding, and provides multiple enhancements to optimize network performance.
In this lab, you will configure the primary and secondary root bridge, examine PVST+ convergence, configure
Rapid PVST+ and compare its convergence to PVST+. In addition, you will configure edge ports to transition
immediately to a forwarding state using PortFast and prevent the edge ports from forwarding BDPUs using
BDPU guard.
Note: This lab provides minimal assistance with the actual commands necessary for configuration. However,
the required commands are provided in Appendix A. Test your knowledge by trying to configure the devices
without referring to the appendix.
Note: The switches used with CCNA hands-on labs are Cisco Catalyst 2960s with Cisco IOS Release 15.0(2)
(lanbasek9 image). Other switches and Cisco IOS versions can be used. Depending on the model and Cisco
IOS version, the commands available and output produced might vary from what is shown in the labs.
Note: Make sure that the switches have been erased and have no startup configurations. If you are unsure,
contact your instructor.
Required Resources
3 Switches (Cisco 2960 with Cisco IOS Release 15.0(2) lanbasek9 image or comparable)
2 PCs (Windows 7, Vista, or XP with terminal emulation program, such as Tera Term)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet cables as shown in the topology
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 9
Lab – Configuring Rapid PVST+, PortFast, and BPDU Guard
S2(config)# vlan 10
S2(config-vlan)# name User
S2(config-vlan)# vlan 99
S2(config-vlan)# name Management
S3(config)# vlan 10
S3(config-vlan)# name User
S3(config-vlan)# vlan 99
S3(config-vlan)# name Management
Verify connectivity between PC-A and PC-C. Was your ping successful? yes
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 9
Lab – Configuring Rapid PVST+, PortFast, and BPDU Guard
If your ping was unsuccessful, troubleshoot the configurations until the issue is resolved.
Note: It may be necessary to disable the PC firewall to successfully ping between PCs.
Step 2: Configure a primary and secondary root bridge for all existing VLANs.
Having a root bridge (switch) elected by MAC address may lead to a suboptimal configuration. In this lab, you
will configure switch S2 as the root bridge and S1 as the secondary root bridge.
a. Configure switch S2 to be the primary root bridge for all existing VLANs. Write the command in the space
provided.
spanning-tree vlan 1,10,99 root primary
b. Configure switch S1 to be the secondary root bridge for all existing VLANs. Write the command in the
space provided.
spanning-tree vlan 1,10,99 root primary
Use the show spanning-tree command to answer the following questions:
What is the bridge priority of S1 for VLAN 1? 28763
What is the bridge priority of S2 for VLAN 1? 24577
Which interface in the network is in a blocking state? S3 F0/3
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 9
Lab – Configuring Rapid PVST+, PortFast, and BPDU Guard
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 9
Lab – Configuring Rapid PVST+, PortFast, and BPDU Guard
b. Configure interface F0/6 on S1 with BPDU guard. Write the command in the space provided.
int f0/6
spanning-tree bpduguard enable
c. Globally configure all non-trunking ports on switch S3 with PortFast. Write the command in the space
provided.
d. Globally configure all non-trunking PortFast ports on switch S3 with BPDU guard. Write the command in
the space provided.
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 9
Lab – Configuring Rapid PVST+, PortFast, and BPDU Guard
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 9
Lab – Configuring Rapid PVST+, PortFast, and BPDU Guard
Reflection
1. What is the main benefit of using Rapid PVST+?
Faster convergence time.
2. How does configuring a port with PortFast allow for faster convergence?
Portfast allows for an access port to move into a forwarding state faster.
Switch S1
S1(config)# vlan 10
S1(config-vlan)# name User
S1(config-vlan)# vlan 99
S1(config-vlan)# name Management
S1(config-vlan)# exit
S1(config)# interface f0/6
S1(config-if)# no shutdown
S1(config-if)# switchport mode access
S1(config-if)# switchport access vlan 10
S1(config-if)# interface f0/1
S1(config-if)# no shutdown
S1(config-if)# switchport mode trunk
S1(config-if)# switchport trunk native vlan 99
S1(config-if)# interface f0/3
S1(config-if)# no shutdown
S1(config-if)# switchport mode trunk
S1(config-if)# switchport trunk native vlan 99
S1(config-if)# interface vlan 99
S1(config-if)# ip address 192.168.1.11 255.255.255.0
S1(config-if)# exit
S1(config)# spanning-tree vlan 1,10,99 root secondary
S1(config)# spanning-tree mode rapid-pvst
S1(config)# interface f0/6
S1(config-if)# spanning-tree portfast
S1(config-if)# spanning-tree bpduguard enable
Switch S2
S2(config)# vlan 10
S2(config-vlan)# name User
S2(config-vlan)# vlan 99
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 9
Lab – Configuring Rapid PVST+, PortFast, and BPDU Guard
Switch S3
S3(config)# vlan 10
S3(config-vlan)# name User
S3(config-vlan)# vlan 99
S3(config-vlan)# name Management
S3(config-vlan)# exit
S3(config)# interface f0/18
S3(config-if)# no shutdown
S3(config-if)# switchport mode access
S3(config-if)# switchport access vlan 10
S3(config-if)# spanning-tree portfast
S3(config-if)# spanning-tree bpduguard enable
S3(config-if)# interface f0/1
S3(config-if)# no shutdown
S3(config-if)# switchport mode trunk
S3(config-if)# switchport trunk native vlan 99
S3(config-if)# interface f0/3
S3(config-if)# no shutdown
S3(config-if)# switchport mode trunk
S3(config-if)# switchport trunk native vlan 99
S3(config-if)# interface vlan 99
S3(config-if)# ip address 192.168.1.13 255.255.255.0
S3(config-if)# exit
S3(config)# spanning-tree mode rapid-pvst
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 9