STP prevents switching loops in Ethernet networks that have redundant links. It blocks certain ports so only one active path exists, which stops broadcast storms while keeping backup links ready for failover.
How is the root bridge elected in STP?
Switches exchange BPDUs and compare bridge IDs, which combine priority and MAC address. The switch with the lowest bridge ID becomes the root bridge, and every other switch calculates its best path toward it.
What does BPDU Guard do?
BPDU Guard shuts down an access port if it receives a BPDU, which prevents rogue switches from changing the topology. It is a core Layer 2 security feature, and this room on Codelivly covers it for free.
Frequently Asked Questions
What is Spanning Tree Protocol used for?
STP prevents switching loops in Ethernet networks that have redundant links. It blocks certain ports so only one active path exists, which stops broadcast storms while keeping backup links ready for failover.
How is the root bridge elected in STP?
Switches exchange BPDUs and compare bridge IDs, which combine priority and MAC address. The switch with the lowest bridge ID becomes the root bridge, and every other switch calculates its best path toward it.
What does BPDU Guard do?
BPDU Guard shuts down an access port if it receives a BPDU, which prevents rogue switches from changing the topology. It is a core Layer 2 security feature, and this room on Codelivly covers it for free.