VLAN-to-Instance Mapping
Cheat sheet · https://pcornel.dk/topic.php?topic=1040
Answer
The VLAN-to-instance mapping (instance <n> vlan <list>) decides which MST instance, and so which spanning tree, each VLAN follows. VLANs not mapped belong to instance 0.
Remember
The mapping must be identical on every switch in the region, including VLANs that do not exist on a switch — the mapping is compared, not the VLAN database. Changing the mapping briefly reconverges the region; do it in a maintenance window.
First checks
show spanning-tree mst configuration— region name, revision and VLAN-to-instance mapping.show spanning-tree mst— root, roles and states per instance.show spanning-tree mst <n>— one instance in detail.show spanning-tree mst interface <if>— the port's role in each instance and whether it is a boundary port.show spanning-tree summary— mode mst.
Commands
show spanning-tree mst configurationshow spanning-tree mst configuration digestshow spanning-tree mstshow spanning-tree mst <instance>
Verify in this order
identical name, revision and mapping → one region → IST computed → each MST instance elects its root → ports get a role per instance → VLANs follow their instance's tree
Where it usually breaks
wrong map/region identity → unintended boundary or instance → root/role/protection → VLAN trunk carriage → endpoint learning/frame path
VLAN-to-Instance Mapping operational reference
| Boundary | Known-good for VLAN-to-Instance Mapping | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches the deterministic mapping of VLANs into MST instances that controls which VLANs share a spanning-tree topology design | Configuration differs from design/peer | Compare effective configuration |
| Control state | Stable expected region/role/topology/path state | a VLAN mapped to the wrong instance, asymmetric maps producing an MST region boundary, an unmapped VLAN unexpectedly following IST, or multiple VLANs changing path after a broad instance-map edit | Inspect protocol detail and adjacent state |
| Forwarding | Expected VLAN/egress/RIB/FIB path | Control state exists but traffic path disagrees | MAC/FIB/CEF/adjacency proof |
| Closure | Original test passes for explained reason | Symptom moved, was bypassed or protection disabled | Regression test |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1040