Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

VLAN-to-Instance Mapping

Direct 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.

When to use this

Use it to load-balance VLAN groups over different uplinks, or when a VLAN follows the wrong path.

First 30 seconds

1. show spanning-tree mst configuration — instance and VLAN lists on each switch.

2. Any difference → region split; align the lists.

3. VLAN in the intended instance?

4. show spanning-tree mst <n> — the instance's root and forwarding uplink.

5. Trace the VLAN: does it use that uplink?

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · IOS/IOS XE
Scope / prerequisiteUse it to load-balance VLAN groups over different uplinks, or when a VLAN follows the wrong path.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

6 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 MST mapping: read region identity and instance membership Verify boundary

Scope: Cisco IOS / IOS XE Catalyst MST, with platform/release support checked before use. The region identity includes region name, revision and VLAN-to-instance mapping digest. A larger revision is not an automatic newer configuration and does not distribute the map.

Read show spanning-tree mst configuration on every intended region member. Compare exact name, revision and complete mapping. Where supported, show spanning-tree mst configuration digest exposes the digest for comparison. Do not compare a digest alone and assume the complete region identifier agrees.

Read show spanning-tree mst <instance> for root, port roles/states and instance membership; inspect the relevant interface detail for a region boundary. Check VLAN existence, allowed trunks and the same VLAN's MAC path independently. A matching region identifier is control-plane agreement, not evidence that an allowed VLAN traverses every link.

Reference: Cisco Catalyst 9000 MST troubleshooting.

Step 2 MST mapping: verification sequence for one failing VLAN Verify boundary

Freeze one VLAN and the two switches/links carrying its traffic. Read the active region configuration on both sides, compare full region identifier, locate the VLAN's MSTI or IST membership, and inspect that instance's root, roles and states. Then inspect boundary status, allowed VLANs and endpoint MAC learning along the intended frame path.

If region identifiers differ, determine whether the boundary is intended before changing configuration. If identifiers agree but a path differs, investigate root priorities, costs, protection state and VLAN carriage. RIB preference and recursive IP next-hop lookup do not explain the VLAN-to-instance mapping itself.

Close with a bidirectional test for the original VLAN and an adjacent unaffected VLAN. Follow the bounded example and rollback in this Topic's MST mapping lab section; do not treat successful command execution as evidence of traffic delivery.

Step 3 Verification & troubleshooting Narrow the fault

Use show spanning-tree mst configuration and compare mappings/digest across the region before troubleshooting individual VLAN paths.

Step 4 MST mapping: wrong instance versus unintended boundary Narrow the fault

1. VLAN follows the wrong root/path: locate that VLAN in the active map, then inspect its actual MST instance. VLANs sharing one instance share its spanning-tree topology; VLAN-specific trunk restrictions can still change which traffic is carried.

2. Unexpected region boundary: compare name, revision and mapping on the adjacent switches. Equal names/revisions with different maps are insufficient. A boundary to an intentionally different region or PVST domain is not automatically a fault; identify the design before changing it.

3. VLAN missing from an explicit MSTI map: inspect instance 0/IST assignment. Do not assume a missing explicit line means spanning tree is disabled.

4. Correct map but traffic fails: inspect per-instance role/state, protection/inconsistency indications, allowed VLANs and MAC learning. A forwarding state on one port does not show the opposite endpoint's frame path.

Do not suppress BPDUs or change a routing metric to conceal an MST configuration mismatch. Save the full current region configuration before editing; a mapping change can move many VLANs and trigger reconvergence.

Step 5 MST mapping: bounded multi-switch example and rollback Narrow the fault

Illustrative isolated lab: SW1 and SW2 intentionally use region name LAB-MST, revision 7, VLANs 10 and 20 in MSTI 1, and VLAN 30 in MSTI 2; VLANs not explicitly assigned remain in instance 0. Compare complete active maps on both switches, not just these three lines, and verify the full region identifier agrees. Root priority/design is configured separately per instance; this map alone does not elect SW1 as root.

Verify an allowed test VLAN in each mapped instance plus one permitted IST VLAN. Record the instance root and link roles/states, learned source/destination MACs and bidirectional frame test on the intended topology.

Negative test only in this isolated lab: move VLAN 20 to MSTI 2 on SW2 alone. Expect a mapping/digest mismatch and a region boundary, not a guaranteed outage or one predetermined blocked port. Observe actual roles and traffic. Restore SW2's exact original map and confirm identifier agreement, intended instance membership and all test VLANs after convergence.

Mapping edits are configuration interventions. Save exact prior name, revision and full mappings and review affected VLANs before change. Output shapes and expected effects are authored examples, not executed lab Evidence or newly verified dates.

Step 6 Common mistakes Narrow the fault
  • Mapping not identical on all switches.
  • Leaving all VLANs in instance 0.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.
ReferenceWhat it is1 section · depth on demand

What it is

VLAN-to-instance mapping assigns VLANs to MST instances so multiple VLANs share a spanning-tree topology.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Use mapping to group VLANs with similar path/root requirements and limit the number of active STP instances.

ReferenceImportant terms & boundaries4 sections · depth on demand

Key points

Every switch in an MST region must have an identical mapping. Unmapped/default behavior belongs to the IST (instance 0) according to MST rules.

In depth

VLAN-to-instance mapping decides which spanning tree each VLAN follows

MST groups VLANs into instances, and each instance has its own topology. The Catalyst 9300 guide states that VLANs belong to the IST (instance 0) by default, and that each VLAN maps to exactly one instance at a time. The mapping must match on all switches of a region.

C9300(config)# spanning-tree mst configuration
C9300(config-mst)# instance 1 vlan 10-19,110-119
C9300(config-mst)# instance 2 vlan 20-29,120-129
C9300(config-mst)# exit
C9300-CORE1(config)# spanning-tree mst 1 priority 24576
C9300-CORE1(config)# spanning-tree mst 2 priority 28672
C9300-CORE2(config)# spanning-tree mst 1 priority 28672
C9300-CORE2(config)# spanning-tree mst 2 priority 24576
C9300# show spanning-tree mst 1
##### MST1    vlans mapped:   10-19,110-119
Bridge        address a0f8.4912.3400  priority      24577 (24576 sysid 1)
Root          this switch for MST1

Here CORE1 is root for instance 1 and CORE2 for instance 2. Access switches forward VLAN 10–19 on one uplink and VLAN 20–29 on the other.

Mapping design

PracticeReason
Few instances (often 2–4)Each instance costs CPU and BPDU space
Map by function or uplink preferenceLoad balancing follows the instance roots
Map future VLAN ranges in advanceNew VLANs land in the right instance
Keep VLAN 1 and unused VLANs in instance 0Simple default

Mapping mismatch

A VLAN mapped to instance 1 on one switch and instance 2 on another splits the region, because the configuration digest differs. Check with show spanning-tree mst configuration digest on every switch.

Adding VLANs safely

Adding a VLAN to the VLAN database doesn't change the MST mapping. Changing the mapping does, and it causes re-convergence. Pre-mapping ranges avoids touching MST when new VLANs are created.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

VLAN-to-instance mapping assigns VLANs to MST instances. All VLANs in an instance share one spanning-tree topology. Unmapped VLANs stay in instance 0 (IST). The mapping must be identical on all switches in a region.

spanning-tree mst configuration
 instance 1 vlan 10,20,30
 instance 2 vlan 40,50,60
spanning-tree mst 1 root primary
spanning-tree mst 2 root secondary

Documented example, not captured output.

Map VLANs to two instances with different roots to load-share uplinks, similar to per-VLAN root placement in PVST+, but with far fewer instances.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Mechanics and state ownership

MST scales spanning tree by mapping many VLANs to a smaller number of MST instances. VLANs mapped to the same MSTI share that instance's root and port-role decisions, while VLANs not explicitly mapped remain associated with the Internal Spanning Tree, instance 0. The mapping is part of the region configuration digest, so two switches with the same name and revision but different VLAN assignments are still in different regions. A mapping decision is therefore both a traffic-engineering choice and a region-membership contract; changing it can move multiple VLANs onto a different root/path even when no physical link changes.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Switching → STP → MST — Multiple Spanning Tree → VLAN-to-Instance Mapping. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Embedded reference data

Quick lookup tables

VLAN-to-Instance Mapping operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

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
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Field-by-field state interpretation

show spanning-tree mst configuration shows the region name, revision and the VLAN-to-instance table. Compare these three values between neighbours; show spanning-tree mst then lists each instance with its mapped VLANs, root and port roles.

Confirmation

Confirm action

Continue?