Enable MST on the Switch:
Switch # configure terminal
Switch (config) # spanning-tree mode mst
Define the MST Region:
Switch (config) # spanning-tree mst configuration
Switch (config-mst) # name
Switch (config-mst) # revision
region-name: Specify a name for the MST region.
revision-number: Assign a revision number to the MST region. This number helps switches determine whether they are running the same MST configuration.
Note: MST region name and revision number should be same on both local and neighbor switch.
Map VLANs to MST Instances:
Switch (config-mst) # instance vlan
instance-id: Specify the MST instance ID.
vlan-range: Define the VLANs to be mapped to the MST instance.
You can configure multiple instances, each with its own VLAN mapping.
Assign Switch Priority:
Switch (config) # spanning-tree mst priority
instance-id: Specify the MST instance ID.
priority-value: Assign a priority value to the switch. Lower values indicate higher priority.
we can use lower priority to make a switch as root for an MST instance or we can also use root primary and secondary command to do the same.
or
Switch (config) # spanning-tree mst instance root primary
Switch (config) # spanning-tree mst instance root secondary
Verify the MST Configuration:
Switch # show spanning-tree mst configuration
Switch # show spanning-tree mst
Switch # show spanning-tree mst configuration