Chapter 4-2 Lab - Multiple Spanning Tree: Topology
Chapter 4-2 Lab - Multiple Spanning Tree: Topology
Chapter 4-2 Lab - Multiple Spanning Tree: Topology
Objectives
Background
Ciscos Per VLAN Spanning Tree (PVST) provides a significant step up from standard spanning tree in terms of
flexibility, allowing each VLAN to have its own independent spanning tree, thereby make better use of available
links in the network. A drawback to PVST is that there is an instance of PVST running for each VLAN in the
network, regardless of whether there are actually different spanning-tree topologies required. This presents the
potential for overwhelming the switch CPU and memory. Additionally, Cisco switches like those used in these labs
allow only a limited number of PVST instances usually 128. If more than 128 VLANs are created, some of them
will not have any STP running, and therefore not have any switching loop protection. PVST and Rapid PVST are
simply unusable in that kind of environment. Lastly, PVST and Rapid PVST are Cisco-proprietary protocols and
generally unusable in mixed vendor environments.
Cisco was involved in the early development of Multiple Spanning Tree. MST was standardized as IEEE 802.1s in
2002 and merged into 802.1Q in 2005. MST is an open protocol derived from RSTP, sharing all its rapid
convergence properties, and in fact, the only standardized spanning-tree protocol for VLAN-based networks
supported by multiple vendors. MST is a compromise between common spanning-tree and per-VLAN spanning
tree. An MST instance represents a unique spanning-tree topology. Multiple MST instances can be created to
account for each of the required spanning-tree topologies in a network, and an arbitrary number of VLANs can be
mapped to a single MST instance.
In this lab you will set up two instances of MST, one for VLANs 99 and 100 and the other for VLANs 110 and 120.
All other VLANs will be mapped to the default MST instance (also referred to as IST or Internal Spanning Tree).
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 1 of 12
Note: This lab uses Cisco Catalyst 3560 and 2960 switches running Cisco IOS 15.0(2)SE6 IP Services and LAN
Base images, respectively. The 3560 and 2960 switches are configured with the SDM templates dual-ipv4-andipv6 routing and lanbase-routing, respectively. Depending on the switch model and Cisco IOS Software version,
the commands available and output produced might vary from what is shown in this lab. Catalyst 3650 switches
(running any Cisco IOS XE release) and Catalyst 2960-Plus switches (running any comparable Cisco IOS image)
can be used in place of the Catalyst 3560 switches and the Catalyst 2960 switches.
Required Resources
2 Cisco 2960 with the Cisco IOS Release 15.0(2)SE6 C2960-LANBASEK9-M or comparable
2 Cisco 3560v2 with the Cisco IOS Release 15.0(2)SE6 C3560-IPSERVICESK9-M or comparable
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 2 of 12
for VLANS.
trunk encap dot1q
trunk native vlan 666
trunk allowed vlan except 1,999
mode trunk
nonegotiate
Verify that all of the VLANs propogate and that there is a single root bridge for all of the VLANs.
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 3 of 12
There is one instance of MST, number 1, and VLANS 1-4094 are mapped to that instance
For MST to work, the region must be named and given a revision number (this revision number does not work
like VTP, it is just an administrator-assigned value). All the switches in the same region must have the same
region name and revision number, and have the same VLAN-to-instance mapping.
Revision Number: 1
MST region configuration is performed in a special mode under the global configuration that is entered using
the spanning-tree mst configuration command. You have to make the changes and exit from
configuration mode to have the changes applied; the changes are not applied until you exit. While in MST
configuration mode, you can use the show current and show pending commands to see how the
configuration stands. From DLS1:
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 4 of 12
DLS1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
DLS1(config)# spanning-tree mst configuration
DLS1(config-mst)# name CCNP
DLS1(config-mst)# revision 1
DLS1(config-mst)# instance 1 vlan 99,100
DLS1(config-mst)#
DLS1(config-mst)# show current
Current MST configuration
Name
[]
Revision 0
Instances configured 1
Instance Vlans mapped
-------- --------------------------------------------------------------------0
1-4094
------------------------------------------------------------------------------DLS1(config-mst)#
DLS1(config-mst)# show pending
Pending MST configuration
Name
[CCNP]
Revision 1
Instances configured 2
Instance Vlans mapped
-------- --------------------------------------------------------------------0
1-98,101-4094
1
99-100
------------------------------------------------------------------------------DLS1(config-mst)#
DLS1(config-mst)#exit
DLS1(config)#end
DLS1#
DLS1# show span mst config
Name
[CCNP]
Revision 1
Instances configured 2
Instance Vlans mapped
-------- --------------------------------------------------------------------0
1-98,101-4094
1
99-100
------------------------------------------------------------------------------DLS1#
Wait a moment to let the topology settle and then issue the show spanning-tree mst command on
DLS1:
DLS1# show spanning-tree mst
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 5 of 12
vlans mapped:
1-98,101-4094
address e840.406f.7280 priority
32768 (32768 sysid
address e840.406f.6e00 priority
32768 (32768 sysid
port
Fa0/11
path cost
0
Regional Root address e840.406f.6e00 priority
32768 (32768 sysid
internal cost 200000
rem hops
Operational
hello time 2 , forward delay 15, max age 20, txholdcount
Configured
hello time 2 , forward delay 15, max age 20, max hops
Interface
---------------Fa0/7
Fa0/8
Fa0/9
Fa0/10
Fa0/11
Fa0/12
##### MST1
Bridge
Root
Role
---Desg
Desg
Desg
Desg
Root
Altn
Sts
--FWD
FWD
FWD
FWD
FWD
BLK
Cost
--------200000
200000
200000
200000
200000
200000
Prio.Nbr
-------128.9
128.10
128.11
128.12
128.13
128.14
vlans mapped:
99-100
address e840.406f.7280
address e840.406f.6e00
port
Fa0/11
Interface
---------------Fa0/7
Fa0/8
Fa0/9
Fa0/10
Fa0/11
Fa0/12
Role
---Desg
Desg
Desg
Desg
Root
Altn
Sts
--FWD
FWD
FWD
FWD
FWD
BLK
Cost
--------200000
200000
200000
200000
200000
200000
0)
19
6
20
Type
-------------------------------P2p Bound(PVST)
P2p Bound(PVST)
P2p Bound(PVST)
P2p Bound(PVST)
P2p
P2p
priority
priority
cost
Prio.Nbr
-------128.9
128.10
128.11
128.12
128.13
128.14
0)
0)
Type
-------------------------------P2p Bound(PVST)
P2p Bound(PVST)
P2p Bound(PVST)
P2p Bound(PVST)
P2p
P2p
As you can see from the output above, the VLANs are mapped to the correct instance and the root bridge for
both instances is not the local switch (it is DLS2 in this case).
Notice the type entry P2p Bound(PVST). This is the entry shown when the device connected at the other
end of the given interface is not running MST; in this case, ALS1 and ALS2 are running the default PVST.
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 6 of 12
Note: An identical MST region configuration will be propagated to all switches within a VTPv3 domain, and
consequently they will all form a single region. As a result, there is always a one-to-one mapping between a
VTPv3 domain and an MST region.
Vlans mapped
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 7 of 12
vlans mapped:
1-98,101-4094
address 0017.95cf.1680 priority
32768 (32768 sysid 0)
this switch for the CIST
hello time 2 , forward delay 15, max age 20, txholdcount 6
hello time 2 , forward delay 15, max age 20, max hops
20
Interface
---------------Fa0/7
Fa0/8
Fa0/9
Fa0/10
Fa0/11
Fa0/12
##### MST1
Bridge
Root
Role
---Desg
Desg
Desg
Desg
Desg
Desg
Sts
--FWD
FWD
FWD
FWD
FWD
FWD
Cost
--------200000
200000
200000
200000
200000
200000
Prio.Nbr
-------128.7
128.8
128.9
128.10
128.11
128.12
vlans mapped:
99-100
address 0017.95cf.1680
this switch for MST1
Interface
---------------Fa0/7
Fa0/8
Fa0/9
Fa0/10
Fa0/11
Fa0/12
Role
---Desg
Desg
Desg
Desg
Desg
Desg
Sts
--FWD
FWD
FWD
FWD
FWD
FWD
Cost
--------200000
200000
200000
200000
200000
200000
Type
-------------------------------P2p
P2p
P2p
P2p
P2p
P2p
priority
Prio.Nbr
-------128.7
128.8
128.9
128.10
128.11
128.12
Type
-------------------------------P2p
P2p
P2p
P2p
P2p
P2p
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 8 of 12
vlans mapped:
1-98,101-109,111-119,121-4094
address e840.406f.7280 priority
32768 (32768 sysid
address 0017.95cf.1680 priority
32768 (32768 sysid
port
Fa0/9
path cost
0
Regional Root address 0017.95cf.1680 priority
32768 (32768 sysid
internal cost 200000
rem hops
Operational
hello time 2 , forward delay 15, max age 20, txholdcount
Configured
hello time 2 , forward delay 15, max age 20, max hops
Interface
---------------Fa0/7
Fa0/8
Fa0/9
Fa0/10
Fa0/11
Fa0/12
##### MST1
Bridge
Root
Role
---Altn
Altn
Root
Altn
Altn
Altn
Sts
--BLK
BLK
FWD
BLK
BLK
BLK
Cost
--------200000
200000
200000
200000
200000
200000
Prio.Nbr
-------128.9
128.10
128.11
128.12
128.13
128.14
vlans mapped:
99-100
address e840.406f.7280
address 0017.95cf.1680
port
Fa0/9
0)
0)
0)
19
6
20
Type
-------------------------------P2p
P2p
P2p
P2p
P2p
P2p
priority
priority
cost
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 9 of 12
Role
---Altn
Altn
Root
Altn
Altn
Altn
Sts
--BLK
BLK
FWD
BLK
BLK
BLK
Cost
--------200000
200000
200000
200000
200000
200000
Prio.Nbr
-------128.9
128.10
128.11
128.12
128.13
128.14
Type
-------------------------------P2p
P2p
P2p
P2p
P2p
P2p
vlans mapped:
110,120
address e840.406f.7280 priority
address 0017.95cf.1680 priority
port
Fa0/9
cost
Interface
---------------Fa0/7
Fa0/8
Fa0/9
Fa0/10
Fa0/11
Fa0/12
Role
---Altn
Altn
Root
Altn
Altn
Altn
Sts
--BLK
BLK
FWD
BLK
BLK
BLK
Cost
--------200000
200000
200000
200000
200000
200000
Prio.Nbr
-------128.9
128.10
128.11
128.12
128.13
128.14
Type
-------------------------------P2p
P2p
P2p
P2p
P2p
P2p
An example of the show spanning-tree root command at DLS1 provides proof that the root bridge is
elsewhere:
DLS1# show spanning-tree root
MST Instance
---------------MST0
MST1
MST2
DLS1#
Root
Hello Max Fwd
Root ID
Cost
Time Age Dly
-------------------- --------- ----- --- --32768 0017.95cf.1680
0
2
20 15
32769 0017.95cf.1680
200000
2
20 15
32770 0017.95cf.1680
200000
2
20 15
Root Port
-----------Fa0/9
Fa0/9
Fa0/9
Port costs, which are summed to find a path cost in the quest for a root bridge, are different in MST:
10 Mbps2,000,000
100 Mbps200,000
1 Gigabit Ethernet20,000
10 Gigabit Ethernet2,000
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 10 of 12
DSL2 is configured with a complementary set of instructions; root primary for instance 2 and root secondary
for instances 0 and 1:
DLS2# conf t
Enter configuration commands, one per line. End with CNTL/Z.
DLS2(config)# spanning-tree mst 0-1 root secondary
DLS2(config)# spanning-tree mst 2 root primary
DLS2(config)# end
DLS2#
The results of these configuration changes are evident using the show spanning-tree root command.
From ALS1, which shows Fa0/7 (connected to DLS1) as the Root Port for instances 0 and 1 and Fa0/9
(connected to DLS2) for instance 2:
ALS1# show spanning-tree root
MST Instance
---------------MST0
MST1
MST2
ALS1#
Root ID
-------------------24576 e840.406f.7280
24577 e840.406f.7280
24578 e840.406f.6e00
Root
Hello Max Fwd
Cost
Time Age Dly
--------- ----- --- --0
2
20 15
200000
2
20 15
200000
2
20 15
Root Port
-----------Fa0/7
Fa0/7
Fa0/9
As with PVST, Root Port selection is based on total path cost to the root bridge. Path cost is the sum of Port
Costs. You can configure the port costs using the spanning-tree mst instance cost value interface
configuration command, which sets the cost for that instance alone.
As an implementation example, we will shutdown interfaces Fa0/9-10 on DLS2 and then change the port cost
value of ALS2s interface Fa0/7 to a lower number, causing the spanning tree for instance 2 to go through
ALS2.
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 11 of 12
On DLS2:
DLS2# conf t
Enter configuration commands, one per line.
DLS2(config)# interface ran f0/9-10
DLS2(config-if-range)# shut
DLS2(config-if-range)# end
MST Instance
---------------MST0
MST1
MST2
ALS1#
Root ID
-------------------24576 e840.406f.7280
24577 e840.406f.7280
24578 e840.406f.6e00
Root
Hello Max Fwd
Cost
Time Age Dly
--------- ----- --- --0
2
20 15
200000
2
20 15
201000
2
20 15
Root Port
-----------Fa0/7
Fa0/7
Fa0/11
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 12 of 12