MSTP Configuration and Troubleshooting – CCNP Lab

MSTP Configuration and Troubleshooting – CCNP Lab
Networking ATN Campus November 23, 2026 12 views

MSTP Configuration and Troubleshooting – CCNP Lab

Multiple Spanning Tree Protocol (MSTP) is an advanced Spanning Tree Protocol that allows multiple VLANs to share a single spanning-tree instance. This reduces the number of spanning-tree instances required in large Layer 2 networks and improves scalability.

In this CCNP-level guide, you will learn how MSTP works, how to configure MST regions, map VLANs to MST instances, optimize root bridge placement, verify configurations, and troubleshoot common MSTP issues using Cisco switches.

1. What is MSTP?

Multiple Spanning Tree Protocol (MSTP), defined in IEEE 802.1s and incorporated into IEEE 802.1Q, allows network administrators to group multiple VLANs into a single spanning-tree instance.

Instead of running a separate spanning-tree instance for every VLAN, MSTP maps VLANs into a smaller number of instances.

Why use MSTP?

  • Reduces the number of spanning-tree instances.
  • Improves scalability in large Layer 2 networks.
  • Allows multiple VLANs to share a spanning-tree topology.
  • Supports load balancing across different MST instances.
  • Reduces switch CPU and control-plane overhead compared with maintaining many individual instances.
  • Supports rapid convergence through Rapid Spanning Tree mechanisms.

2. MSTP Architecture

MSTP organizes switches into MST regions. Switches within the same region must share compatible MST configuration parameters.

Important MSTP components

  • MST Region: A group of switches sharing the same MST configuration.
  • MST Configuration Name: The name assigned to the region.
  • Revision Number: A configuration revision number used for region identification.
  • VLAN-to-Instance Mapping: Defines which VLANs belong to which MST instances.
  • MST Instance (MSTI): A spanning-tree instance that manages a group of mapped VLANs.
  • CIST: Common and Internal Spanning Tree, which provides the common spanning-tree structure across MST regions and the wider network.

3. MSTP Region Requirements

For switches to belong to the same MST region, they must have matching:

  • MST configuration name.
  • Revision number.
  • VLAN-to-MST-instance mapping.

These parameters form the MST configuration digest, which helps switches determine whether they belong to the same MST region.

If these settings differ, switches may become part of different MST regions. The links between regions are handled through the Common and Internal Spanning Tree (CIST).

4. MSTP Lab Topology

In this lab, we will configure three Cisco switches to create an MST region and configure two MST instances for VLAN load balancing.

                  SW1
                /     \
               /       \
             SW2-------SW3

VLAN 10 - Sales
VLAN 20 - IT
VLAN 30 - HR
VLAN 40 - Finance

MST Instance 1: VLAN 10, 20
MST Instance 2: VLAN 30, 40

Switch roles

  • SW1: Primary root for MST Instance 1 and secondary root for MST Instance 2.
  • SW2: Primary root for MST Instance 2 and secondary root for MST Instance 1.
  • SW3: Access and redundant switch.

5. Configure VLANs

Configure the VLANs on all three switches.

Switch(config)# vlan 10
Switch(config-vlan)# name SALES
Switch(config-vlan)# exit

Switch(config)# vlan 20
Switch(config-vlan)# name IT
Switch(config-vlan)# exit

Switch(config)# vlan 30
Switch(config-vlan)# name HR
Switch(config-vlan)# exit

Switch(config)# vlan 40
Switch(config-vlan)# name FINANCE
Switch(config-vlan)# exit

6. Configure MSTP on SW1

Configure SW1 as the primary root for MST Instance 1 and secondary root for MST Instance 2.

Step 1: Enable MST mode

SW1(config)# spanning-tree mode mst

Step 2: Configure the MST region

SW1(config)# spanning-tree mst configuration
SW1(config-mst)# name ATN-MST-REGION
SW1(config-mst)# revision 1
SW1(config-mst)# instance 1 vlan 10,20
SW1(config-mst)# instance 2 vlan 30,40
SW1(config-mst)# exit

Step 3: Configure root priorities

SW1(config)# spanning-tree mst 1 priority 4096
SW1(config)# spanning-tree mst 2 priority 8192

SW1 will have a lower priority for MST Instance 1 and is intended to become its root bridge.

7. Configure MSTP on SW2

Step 1: Enable MST mode

SW2(config)# spanning-tree mode mst

Step 2: Configure the same MST region

SW2(config)# spanning-tree mst configuration
SW2(config-mst)# name ATN-MST-REGION
SW2(config-mst)# revision 1
SW2(config-mst)# instance 1 vlan 10,20
SW2(config-mst)# instance 2 vlan 30,40
SW2(config-mst)# exit

Step 3: Configure root priorities

SW2(config)# spanning-tree mst 1 priority 8192
SW2(config)# spanning-tree mst 2 priority 4096

SW2 will have a lower priority for MST Instance 2 and is intended to become its root bridge.

8. Configure MSTP on SW3

Step 1: Enable MST mode

SW3(config)# spanning-tree mode mst

Step 2: Configure the same MST region

SW3(config)# spanning-tree mst configuration
SW3(config-mst)# name ATN-MST-REGION
SW3(config-mst)# revision 1
SW3(config-mst)# instance 1 vlan 10,20
SW3(config-mst)# instance 2 vlan 30,40
SW3(config-mst)# exit

SW3 does not require a lower root priority because it is intended to operate as a non-root switch in this lab.

9. Configure Trunk Links

Configure the inter-switch links as trunk ports so that VLAN traffic can travel between switches.

Example configuration for a link between SW1 and SW2:

SW1(config)# interface gigabitEthernet 0/1
SW1(config-if)# switchport mode trunk
SW1(config-if)# switchport trunk allowed vlan 10,20,30,40
SW1(config-if)# no shutdown

Repeat the configuration on the connected interface of SW2 and on the remaining inter-switch links. Interface names and trunk syntax may differ depending on the Cisco switch model and software version.

10. Verify MSTP Configuration

Check MST configuration

show spanning-tree mst configuration

This command displays the MST region name, revision number, and VLAN-to-instance mapping.

Check MST instances

show spanning-tree mst

Displays MST instance information, including bridge IDs, root IDs, and port roles and states.

Check a specific instance

show spanning-tree mst 1
show spanning-tree mst 2

Check MST region information

show spanning-tree mst configuration digest

On platforms that support this command, it can help compare region configuration and digest information.

Check trunk ports

show interfaces trunk

Check VLANs

show vlan brief

11. MSTP Troubleshooting

Problem 1: Switches are not in the same MST region

Possible causes:

  • MST name mismatch.
  • Revision number mismatch.
  • VLAN mapping mismatch.

Solution:

show spanning-tree mst configuration

Verify the name, revision, and VLAN mappings on every switch participating in the region.

Problem 2: Unexpected blocked ports

Possible causes:

  • Incorrect root bridge placement.
  • Unexpected link costs.
  • Redundant Layer 2 paths.
  • Different MST region boundaries.

Solution:

show spanning-tree mst 1
show spanning-tree mst 2
show spanning-tree interface

Review root IDs, port roles, port costs, and the intended topology.

Problem 3: VLANs are mapped to the wrong instance

Possible causes:

  • Incorrect VLAN-to-instance mapping.
  • Configuration mismatch between switches.

Solution:

show spanning-tree mst configuration
show spanning-tree mst

Ensure VLANs are mapped correctly and consistently across the region.

Problem 4: Traffic is not using the expected redundant link

Possible causes:

  • The root bridge is positioned incorrectly.
  • Port costs are not optimized.
  • Both VLAN groups are using the same instance.
  • Instance mapping does not match the intended load-balancing design.

Solution:

Configure separate MST instances for appropriate VLAN groups, select the desired root bridges, and verify the forwarding topology for each instance.

12. MSTP Troubleshooting Commands

Command Purpose
show spanning-tree mstDisplays MST instances and port roles
show spanning-tree mst 1Displays Instance 1 information
show spanning-tree mst 2Displays Instance 2 information
show spanning-tree mst configurationDisplays region settings and VLAN mapping
show spanning-tree interfaceDisplays STP port information
show interfaces trunkDisplays trunk configuration and allowed VLANs
show vlan briefDisplays VLAN information
show running-configDisplays the running configuration

13. MSTP Best Practices

  • Use a consistent MST region name, revision, and mapping on all switches in the same region.
  • Plan VLAN-to-instance mappings before deployment.
  • Configure root and secondary root switches intentionally.
  • Use multiple instances to achieve appropriate Layer 2 load balancing.
  • Verify trunk VLAN availability and consistency.
  • Protect access ports using PortFast and BPDU Guard where appropriate.
  • Use Root Guard where downstream devices should not become root bridges.
  • Document MST regions and instance mappings.
  • Avoid unnecessary MST configuration changes in production.

14. Frequently Asked Questions

Q1. What is MSTP?

MSTP is a spanning-tree protocol that allows multiple VLANs to share a spanning-tree instance.

Q2. Why is MSTP used?

MSTP reduces the number of spanning-tree instances and improves scalability in networks containing many VLANs.

Q3. What is an MST region?

An MST region is a group of switches that share the same MST name, revision number, and VLAN-to-instance mapping.

Q4. What is MSTI?

MSTI stands for Multiple Spanning Tree Instance. It represents an instance that handles the spanning-tree topology for a group of VLANs.

Q5. Can MSTP provide load balancing?

Yes. Different VLAN groups can be mapped to different MST instances, allowing different Layer 2 forwarding paths to be used.

Q6. What happens when MST configurations mismatch?

Switches may become part of different MST regions. The inter-region topology is handled through the CIST.

15. CCNP MSTP Lab Challenge

Complete the following lab without copying the configuration from the previous sections.

  • Configure three Cisco switches.
  • Create VLANs 10, 20, 30, and 40.
  • Configure all three switches in the same MST region.
  • Use the region name ATN-MST-REGION.
  • Use revision number 1.
  • Map VLANs 10 and 20 to MST Instance 1.
  • Map VLANs 30 and 40 to MST Instance 2.
  • Configure SW1 as the root for Instance 1.
  • Configure SW2 as the root for Instance 2.
  • Configure trunk links between switches.
  • Verify the root bridge for each instance.
  • Identify which ports are forwarding and which ports are blocking or discarding.
  • Troubleshoot a deliberately introduced MST region mismatch.

Conclusion

MSTP is an important technology for CCNP-level switching and enterprise network design. It allows VLANs to share spanning-tree instances, reduces unnecessary spanning-tree overhead, and supports Layer 2 load balancing across redundant links.

Understanding MST regions, VLAN mapping, root bridge selection, port roles, and troubleshooting commands will help you design and maintain scalable Layer 2 networks.

Practice MSTP configurations using Cisco switches or network simulation tools such as Packet Tracer where supported, and build your switching knowledge for CCNP-level network engineering.

Want to learn CCNA, CCNP, Cybersecurity, AWS, Python and other IT courses?

Visit ATN Campus and explore professional IT training programs.

Document ATN CAMPUS