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

SW2SW3SW1

Requirements

  1. 1The switch runs Rapid PVST+
  2. 2SW1 is the root bridge for VLAN 10
  3. 3SW1 is the backup root for VLAN 20
  4. 4Fa0/1 and Fa0/2 use PortFast
  5. 5Fa0/1 and Fa0/2 have BPDU Guard enabled
  6. 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.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

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.

About 12 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco switch?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one switch, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

How is the root bridge chosen?

By the lowest bridge ID, which is the priority (default 32768, plus the VLAN number) followed by the MAC address. Lower priority wins; the MAC address only breaks ties.

What does BPDU Guard do and when does the port recover?

It err-disables an interface that receives a BPDU. The port stays down until you shut and re-enable it, or until errdisable recovery is configured.

What is the difference between STP and Rapid PVST+?

Classic 802.1D STP uses fixed timers and takes 30 to 50 seconds to converge. Rapid PVST+ (802.1w per VLAN) negotiates with its neighbours and typically converges in a second or two, and keeps a separate tree for each VLAN.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.