It should be obvious by now that there are really two types of spanning-tree topologies. One where all switches run a single spanning-tree instance (common spanning-tree) and one where a switch can run one instance per VLAN (per-VLAN spanning-tree). MST makes a happy compromise by allowing you to group VLANs together under one spanning-tree instance. That is, VLANs 10 through 20 can run one instance and VLANs 30 through 40 could run another. We haven’t really talked much about the per-VLAN configuration but I’m not going to dwell on it since it’s pretty easy to configure (spanning-tree vlan <vlan number> <spanning-tree command>).
MST groups VLANs together by instance. An instance is the group of VLANs that will run under that particular spanning-tree. MST also uses the concept of regions. A region is group of MST switches that share the same configuration information. The configuration information that has to match is…
-The VLAN to instance mappings
If some of these items don’t match, the the two switches can’t be in the same region.
MST can be rather easy to understand, or very very very complicated. If all of the switches are running MST, it’s pretty easy to get. If you are matching a MST boundary up to a non-MST boundary, things get complicated and there are a lot of design considerations. That being said, we are only going to talk about a basic MST configuration in this post.
In this code snippet, we create 5 VLANs, and map them to two different instances on the switch…
Switch2(config-vlan)#spanning-tree mst config
Switch2(config-mst)#instance 1 vlan 10-13
Switch2(config-mst)#instance 2 vlan 20-21
Pending MST configuration
Revision 1 Instances configured 3
Instance Vlans mapped
abort Exit region configuration mode, aborting changes
exit Exit region configuration mode, applying changes
instance Map vlans to an MST instance
name Set configuration name
no Negate a command or set its defaults
private-vlan Set private-vlan synchronization
revision Set configuration revision number
show Display region configurations
About half way down you can see that I issue the ‘show pending’ command. In MST the changes aren’t applied until you exit the MST configuration mode. If you don’t want to apply the changes, you can type the abort command to exit without applying.
You’ll also note that by default all VLANs belong to instance 0. You can see that I mapped certain VLANs in instance 1 and 2 and the remainder of the VLANs are left in instance 0. Instance 0 is referred to as the IST or Internal spanning tree or sometimes referred to as MSTI0. This instance has some special use cases but are too deep for us to cover in this intro post.
I’m hoping I might have more time later to come back to MST but for now I’ll have to leave it at this (I’m on a tight schedule!).
Really this article contains huge amount of information. I think it would be helpful for all. Thank you for sharing with us. spanning-tree