NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Exploitation Fundamentals
Amateurs stop at the proof of concept. They pop an alert(1), dump a database via SQLi, or find an IDOR, write a report,
ViewPentest Methodology & Reporting
A great hack is useless if you cannot communicate its business impact. This learning path bridges the gap between techni
ViewEndpoint & Network Security Monitoring
Dive into the critical telemetry that powers modern threat detection. The Endpoint & Network Security Monitoring module
ViewIncident Response
Incident Response is the ultimate test of a security team. When the alerts turn into a confirmed breach, theory goes out
ViewRecon & Enumeration Tools
Reconnaissance is the foundation of every successful penetration test. Amateurs treat it as a box-ticking exercise, runn
ViewNetwork Services Administration
This comprehensive learning path bridges the gap between foundational networking and enterprise infrastructure security.
ViewPreview · 30 min
Learn the mechanics of Spanning Tree Protocol. Understand Bridge ID election, Root Port selection, and the five STP port states and timers.
In the previous lesson you saw that STP prevents Layer 2 loops by logically blocking redundant paths. But how does the network decide which switch becomes the Root Bridge, and which ports get blocked?
STP is not random. It is a strict, deterministic algorithm: every switch runs the same elections and reaches the same result. To master STP you must understand the Bridge ID, the tiebreaking rules, and the timers that govern port state transitions.
The whole election revolves around one eight-byte identifier: the Bridge ID (BID). Every switch has a unique BID, and the switch with the lowest BID becomes the Root Bridge.
The BID has two parts:
When comparing BIDs, a switch first looks at the Bridge Priority: the lowest priority wins. If two switches have exactly the same priority, the tie is broken by the MAC address: the lowest MAC wins.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in