Scenario

Ticket: SW1 is meant to be the root bridge for VLAN 10 and VLAN 20, but show spanning-tree says the root is SW2 (reached through the trunk Gi0/1). Also, the reception PC on Fa0/1 lost its connection yesterday after someone plugged a small desk switch into the wall socket. The small switch has been taken away, but the PC still has no link. The PC on Fa0/2 works. Policy: every PortFast access port must also have BPDU Guard. Fix SW1 without removing the protection that caught the small switch. SW2 is correct and cannot be changed.

Topology

SW1SW2

Requirements

  1. 1SW1 has a bridge priority of 24576 or lower in VLAN 10 (it wins the root election)
  2. 2SW1 has a bridge priority of 24576 or lower in VLAN 20
  3. 3Fa0/1 is connected again (not err-disabled)
  4. 4Fa0/1 keeps PortFast and BPDU Guard
  5. 5Fa0/2 has BPDU Guard enabled
  6. 6Rapid-PVST stays the spanning-tree mode

SW1 runs rapid spanning tree for VLANs 10 and 20. Type ? for the commands you can use. Start with: enable

SW1> show running-config

CCNA lab · about 15 min

Troubleshoot: SW1 is not the root bridge and a port is err-disabled

Three faults, a bridge priority that loses the root election, a port shut down by BPDU Guard and a port with no BPDU Guard, leave the access layer unprotected. Find them with show spanning-tree.

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

Ticket: SW1 is meant to be the root bridge for VLAN 10 and VLAN 20, but show spanning-tree says the root is SW2 (reached through the trunk Gi0/1). Also, the reception PC on Fa0/1 lost its connection yesterday after someone plugged a small desk switch into the wall socket. The small switch has been taken away, but the PC still has no link. The PC on Fa0/2 works. Policy: every PortFast access port must also have BPDU Guard. Fix SW1 without removing the protection that caught the small switch. SW2 is correct and cannot be changed.

About 15 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.

What does BPDU Guard do?

On a port with BPDU Guard, a received BPDU puts the port in the err-disabled state. It is used on access ports that should only have end devices, usually together with PortFast.

How is the root bridge chosen?

The switch with the lowest bridge ID wins. The bridge ID is the priority (default 32768, plus the VLAN number in PVST) followed by the MAC address. All ports of the root are designated.

How does a port leave err-disabled?

By hand with shutdown and no shutdown, or automatically if errdisable recovery is enabled for the cause (errdisable recovery cause bpduguard), after the recovery interval.

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.