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
How is the STP root bridge chosen?
- Highest bridge priority value
- Lowest bridge ID (priority then MAC)
- Switch with the most ports
- 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.
What can an attacker do by taking over the STP root role?
- Redirect traffic through the attacker's device
- Cause instability or an outage by changing the topology
- Obtain the enable password
- Delete the VLAN database remotely through STP
- 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.
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.
