Network engineering

Stage 2 · Lesson 5 of 8

Spanning tree

Switching and VLANs

Redundant links between are good for resilience but create loops, and frames have no hop limit, so a loop floods the network with copies of until it stops working, a . prevents this.

The switches elect a root bridge (lowest bridge ID), every other switch picks its best path towards it (the root port), and redundant ports are put into a blocking or alternate role. If a link fails, a blocked port takes over. Cisco runs Rapid PVST+, which builds one fast-converging tree per VLAN.

Always choose the root yourself with spanning-tree vlan X root primary, on a core or distribution switch.

Common trapletting the election happen by chance, so an old switch in a cupboard becomes root and carries all the traffic.

A question to check yourself, an AI practice session and 1 cheat sheet entry come with the full roadmap. Unlock

Resources for this stage

Start with· follow one of these

Practise

Mark this stage as not done?