Pcornel
Networking · Switching › STP › MST — Multiple Spanning Tree

VLAN-to-Instance Mapping

Cheat sheet · https://pcornel.dk/topic.php?topic=1040

Back to the Topic

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 configuration
show spanning-tree mst configuration digest
show spanning-tree mst
show 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

BoundaryKnown-good for VLAN-to-Instance MappingSuspicious signatureNext proof
IntentMatches the deterministic mapping of VLANs into MST instances that controls which VLANs share a spanning-tree topology designConfiguration differs from design/peerCompare effective configuration
Control stateStable expected region/role/topology/path statea 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 editInspect protocol detail and adjacent state
ForwardingExpected VLAN/egress/RIB/FIB pathControl state exists but traffic path disagreesMAC/FIB/CEF/adjacency proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or protection disabledRegression test

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1040

Confirmation

Confirm action

Continue?