# How does MSTP keep redundant Layer 2 links from forming a loop?

Exam: HPE6-A86 — HPE Network Switching Associate Exam
Knowledge domain: Identify, describe, and apply foundational networking architectures and technologies.
Updated: 2026-11-25T03:40:05.336308+00:00
HTML: https://learningpathx.com/faq/HPE6-A86/hpe6-a86-mstp-prevent-layer-2-loops.html

## Also asked as

- Why can MSTP block one uplink while both physical links are up?
- How do MSTP port roles and VLAN instances make parallel Layer 2 links safe?

Multiple Spanning Tree Protocol (MSTP) uses bridge protocol data units (BPDUs) to build a loop-free forwarding tree for each instance. A switch can keep a redundant link physically up while its port discards ordinary frames for a given instance. VLANs assigned to that instance follow the same tree.

In a simple two-switch network with parallel trunks, the elected root switch can have a designated forwarding port on both links. The other switch selects one root port as its best path toward the root. Its other port can have the alternate role and stay in a discarding or blocking state for that instance. Role describes the port's place in the topology. State describes what the port currently does with traffic.

If the root-facing path fails, MSTP can select the alternate path and reconverge. Recovery can disrupt traffic while the topology changes. MSTP applies rapid spanning-tree behavior to VLAN groups, allowing different instances to use different forwarding paths when designed that way. Link aggregation combines eligible physical links into one logical link, which solves a different problem.

[AOS-CX 10.13 Layer-2 Bridging Guide for CX 6300/6400](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.13/PDF/l2_bridging_6300-6400.pdf) · [AOS-CX 10.13 MSTP loop prevention example](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.13/HTML/l2_bridging_6300-6400/Content/Chp_stp/mst-sce-1.h.htm)

Source: [HPE6-A86: Configuring MSTP and Validating Loop Prevention](https://learningpathx.com/news/hpe6-a86-configuring-mstp-and-validating-loop-prevention.html)
