Hello, you are using an old browser that's unsafe and no longer supported. Please consider updating your browser to a newer version, or downloading a modern browser.
Training Camp • Cybersecurity Glossary
A switch setting that selects which Spanning Tree variant runs, e.g., PVST+, Rapid-PVST+, or MST, to prevent Layer 2 loops on Ethernet.
STP Mode Definition: A switch setting that selects which Spanning Tree variant runs, e.g., PVST+, Rapid-PVST+, or MST, to prevent Layer 2 loops on Ethernet.
STP Mode refers to the configured variant of the Spanning Tree Protocol that a switch uses to build and maintain a loop-free Layer 2 topology. STP (IEEE 802.1D) prevents bridging loops by electing a root bridge and selectively blocking redundant paths; the mode determines which version of the algorithm and its timing behavior the switch runs.
The protocol works by having switches exchange Bridge Protocol Data Units (BPDUs) to elect a root bridge, calculate the lowest-cost path to it, and place redundant ports into a blocking state. Common modes include classic PVST+ (per-VLAN spanning tree), Rapid-PVST+ based on Rapid STP (IEEE 802.1w) for fast convergence, and Multiple Spanning Tree (MST, IEEE 802.1s) which maps many VLANs onto a few instances for scalability. On Cisco switches the mode is set with `spanning-tree mode {pvst | rapid-pvst | mst}`.
This matters because without spanning tree, redundant links create loops that produce broadcast storms, MAC table instability, and duplicate frames, conditions that can collapse a network and constitute a denial-of-service event. Choosing the right mode balances convergence speed against scalability: Rapid-PVST+ recovers from topology changes in seconds rather than the ~50 seconds of classic STP, while MST reduces CPU and BPDU overhead in environments with many VLANs.
For example, a data-center team running hundreds of VLANs finds that per-VLAN spanning tree consumes excessive switch CPU. They migrate to MST with `spanning-tree mode mst`, mapping all VLANs into two MST instances. Convergence improves and overhead drops sharply. Meanwhile a smaller campus switch is set to `spanning-tree mode rapid-pvst` so that, when a redundant uplink fails, the backup path activates within a few seconds rather than nearly a minute, minimizing user-visible disruption.
Turn knowledge into credentials with our instructor-led cybersecurity boot camps.
View All Courses →