Bitzu

CPSA ยท Network device management and Layer 2/3 protocols

VTP and STP

VLAN database manipulation, root bridge takeover and protections such as BPDU guard.

Key points

  • VTP: shares the VLAN database; the highest configuration revision number wins, so a higher-revision switch on a trunk can overwrite or delete VLANs network-wide.
  • STP: root bridge has the lowest bridge ID (priority plus MAC); blocks loops.
  • Superior BPDUs with a very low priority make an attacker root; traffic then flows through them.
  • BPDU guard: err-disables a PortFast access port that gets a BPDU.
  • User ports: no trunk negotiation.

Source: https://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/10586-65.html

Practice questions

Single choice

How is the STP root bridge chosen?

  1. Highest bridge priority value
  2. Lowest bridge ID (priority then MAC)
  3. Switch with the most ports
  4. Newest firmware version
Show answer

Answer: B. Lowest bridge ID (priority then MAC)

The lowest bridge ID wins, which is the priority value followed by the MAC address. Highest priority or most ports do not win.

Select all that apply

What can an attacker do by taking over the STP root role?

  1. Redirect traffic through the attacker's device
  2. Cause instability or an outage by changing the topology
  3. Obtain the enable password
  4. Delete the VLAN database remotely through STP
  5. Capture frames that would not normally reach the port
Show answer

Answer: A. Redirect traffic through the attacker's device, B. Cause instability or an outage by changing the topology, E. Capture frames that would not normally reach the port

Becoming root changes the forwarding topology so traffic may cross the attacker and a loop or outage may occur. It does not give the enable password.

True or false

A switch with a lower VTP configuration revision number overwrites the VLAN database of switches with a higher one.

Show answer

Answer: False

False. The higher revision number wins, which is exactly why a new or reused switch with a high revision can wipe VLANs.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module