Scenario
SW1 is a distribution switch in a triangle with two other switches over Gi0/1 and Gi0/2. Today the root bridge is whichever switch happens to have the lowest MAC address, which is a bad idea. In the simulation SW2 and SW3 keep their default priorities for VLAN 10 and have 24576 for VLAN 20. You want SW1 to be the root for VLAN 10 and the second choice for VLAN 20. Fa0/1 and Fa0/2 connect desktop PCs in VLANs 10 and 20, and must come up quickly and shut down if somebody plugs a switch into them.
Topology
Requirements
- 1The switch runs Rapid PVST+
- 2SW1 is the root bridge for VLAN 10
- 3SW1 is the backup root for VLAN 20
- 4Fa0/1 and Fa0/2 use PortFast
- 5Fa0/1 and Fa0/2 have BPDU Guard enabled
- 6PortFast is not used on the trunks Gi0/1 and Gi0/2
SW1 runs the default spanning tree with default priorities. Type ? for the commands you can use. Start with: enable
SW1> show running-config
CCNA lab · about 12 min
Spanning tree: root bridge, PortFast and BPDU Guard
Choose Rapid PVST+, make SW1 the root for VLAN 10 and the backup root for VLAN 20, and protect two user ports with PortFast and BPDU Guard.
This lab is included in the CCNA plans and in the free trial.