STP (Spanning-Tree) is a layer two protocol that creates a loop-free topology on a switched network. It does so by selecting a root bridge, then selecting root ports on all other switches that are non-root bridges. All other segments will have a designated and non-designated interface, where the non-designated interface will be blocked, creating a tree-like loop-free topology. These lessons explain how spanning-tree works and how to configure it.