0% found this document useful (0 votes)
27 views17 pages

NetLab-2-Implement MST

ffgd

Uploaded by

ayman.sadek39
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views17 pages

NetLab-2-Implement MST

ffgd

Uploaded by

ayman.sadek39
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

NetLab-2-Implement MST

Topology

Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Implement and Observe MST
Part 3: Configure, Tune and Verify Basic MST Operation

Background / Scenario
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 2 and 3 and the other for VLANs 4 and 5. All
other VLANs will be mapped to the default MST instance (also referred to as IST or Internal Spanning Tree).
Note: This lab is an exercise in deploying and verifying MST and does not reflect networking best practices.
Note: Use the NetLab-0-Resetting the AC NetLab topology to properly erase all devices

Bob Vachon Page 1 of 17


NetLab-2-Implement MST

Use the NetLab Template to capture the requested screenshots as proof of completion.

Instructions

Part 1: Build the Network and Configure Basic Device Settings


In Part 1, you will set up the network topology.

Step 1: Complete “NetLab-0-Resetting the AC NetLab”


Complete “NetLab-0-Resetting the AC NetLab” to ensure all devices have been properly prepared.

Step 2: Configure basic settings for each switch.


a. Console into each switch, enter global configuration mode, and apply the basic settings and interface
addressing. The startup configuration is provided below for each switch in the topology.

Switch D1
hostname YOURNAME-D1
banner motd # D1, Multiple Spanning Tree #
spanning-tree mode rapid-pvst
line con 0
exec-timeout 0 0
logging synchronous
exit
interface range g0/1 - 3
switchport trunk encapsulation dot1q
switchport mode trunk
no shutdown
exit
vlan 2
name SecondVLAN
exit
vlan 3
name ThirdVLAN
exit
vlan 4
name FourthVLAN
exit
vlan 5
name FifthVLAN
exit

Bob Vachon Page 2 of 17


NetLab-2-Implement MST

Switch D2
hostname YOURNAME-D2
banner motd # D2, Multiple Spanning Tree #
spanning-tree mode rapid-pvst
line con 0
exec-timeout 0 0
logging synchronous
exit
interface range g0/1 - 3
switchport trunk encapsulation dot1q
switchport mode trunk
no shutdown
exit
vlan 2
name SecondVLAN
exit
vlan 3
name ThirdVLAN
exit
vlan 4
name FourthVLAN
exit
vlan 5
name FifthVLAN
exit

Bob Vachon Page 3 of 17


NetLab-2-Implement MST

Switch A1
hostname YOURNAME-A1
banner motd # A1, Multiple Spanning Tree #
spanning-tree mode rapid-pvst
line con 0
exec-timeout 0 0
logging synchronous
exit
spanning-tree mode rapid-pvst
line con 0
exec-timeout 0 0
logging synchronous
exit
interface range f0/1-4
switchport mode trunk
no shutdown
exit
vlan 2
name SecondVLAN
exit
vlan 3
name ThirdVLAN
exit
vlan 4
name FourthVLAN
exit
vlan 5
name FifthVLAN
exit

b. Set the clock on each switch to UTC time. (E.g., clock set 13:40:01 Jan 18 2022)

c. On D1, D2, and A1, enter the show spanning-tree vlan 1 command. Position the terminal windows so that
all three outputs can be seen and compared.

d. Based on the output generated, which switch was selected the root switch? Confirm that all of its port roles
are Designated (Desg) and forwarding (FWD) traffic.

e. On the two other non-root switches, identify which port was selected as the:
 Root (Root) port and forwarding (FWD)
 Designated (Desg) port and forwarding (FWD)
 Alternate (Altn) port and blocking (BLK)

Bob Vachon Page 4 of 17


NetLab-2-Implement MST

Part 2: Implement and Observe MST


Step 1: Configure MST on D1 and D2.
In this step we will configure MST on D1 and D2 only. We will do this so we can observe their interaction with
each other as well as their interaction with A1.

Open configuration window

a. On D1 and D2, issue the command spanning-tree mode mst.


D1(config)# spanning-tree mode mst

At this point, with no MST-specific configuration, MST Instance 0 is operational for all VLANs.

b. On D1 and D2, issue show spanning-tree command to see the STP information.

YOURNAME-D1# show spanning-tree

MST0
Spanning tree enabled protocol mstp
Root ID Priority 32768
Address 649e.f3d2.a500
Cost 0
Port 3 (GigabitEthernet0/3)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32768 (priority 32768 sys-id-ext 0)


Address 6c41.6ace.7880
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Interface Role Sts Cost Prio.Nbr Type


------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 200000 128.1 P2p Bound(PVST)
Gi0/2 Desg FWD 200000 128.2 P2p Bound(PVST)
Gi0/3 Root FWD 20000 128.3 P2p

YOURNAME-D1#

Note: Outputs and Spanning Tree topologies highlighted in this lab will/may be different than what you
observe using your own equipment.

Take note of the information displayed for interfaces G0/1 and G0/2 because they are connected to a
switch that is not running MST. Their type is listed as P2p Bound (PVST).

Bob Vachon Page 5 of 17


NetLab-2-Implement MST

c. On D1, add the keyword mst and issue show spanning-tree mst command to see MST-specific STP
information.

YOURNAME-D1# show spanning-tree mst

##### MST0 vlans mapped: 1-4094


Bridge address 6c41.6ace.7880 priority 32768 (32768 sysid 0)
Root address 649e.f3d2.a500 priority 32768 (32768 sysid 0)
port Gi0/3 path cost 0
Regional Root address 649e.f3d2.a500 priority 32768 (32768 sysid 0)
internal cost 20000 rem hops 19
Operational hello time 2 , forward delay 15, max age 20, txholdcount 6
Configured hello time 2 , forward delay 15, max age 20, max hops 20

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 200000 128.1 P2p Bound(PVST)
Gi0/2 Desg FWD 200000 128.2 P2p Bound(PVST)
Gi0/3 Root FWD 20000 128.3 P2p

YOURNAME-D1#

Notice that the Root MAC address is not the same as the Bridge (this switch) address. This is an
indication that this switch is not the root. Also notice that G0/3 is a root port. This would make D2 the
MST root.

d. On D2, issue show spanning-tree mst command to see MST-specific STP information.

YOURNAME-D2# show spanning-tree mst

##### MST0 vlans mapped: 1-4094


Bridge address 649e.f3d2.a500 priority 32768 (32768 sysid 0)
Root this switch for the CIST
Operational hello time 2 , forward delay 15, max age 20, txholdcount 6
Configured hello time 2 , forward delay 15, max age 20, max hops 20

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 200000 128.1 P2p Bound(PVST)
Gi0/2 Desg FWD 200000 128.2 P2p Bound(PVST)
Gi0/3 Desg FWD 20000 128.3 P2p

YOURNAME-D2#

Close configuration window

This confirms that D2 is the root.

Bob Vachon Page 6 of 17


NetLab-2-Implement MST

The basic behavior of MST is the same as spanning tree, where a root bridge must be selected, then root
ports, and finally best paths to the root bridge from all non-root bridges.
In the current network, we can see that D2 has been elected the root bridge. The bridge priority defaults
to 32768, so the election is based on D2 having a lower base MAC address.
Note: The switch elected as root may be different in your lab topology, but the rules for election remain
the same.

e. On A1, issue the show spanning-tree root command.

YOURNAME-A1# show spanning-tree root

Root Hello Max Fwd


Vlan Root ID Cost Time Age Dly Root Port
---------------- -------------------- --------- ----- --- --- ------------
VLAN0001 32768 649e.f3d2.a500 19 2 20 15 Fa0/3
VLAN0002 32768 649e.f3d2.a500 19 2 20 15 Fa0/3
VLAN0003 32768 649e.f3d2.a500 19 2 20 15 Fa0/3
VLAN0004 32768 649e.f3d2.a500 19 2 20 15 Fa0/3
VLAN0005 32768 649e.f3d2.a500 19 2 20 15 Fa0/3
YOURNAME-A1#

Notice how A1 is running five instances of spanning tree. That is because it is still running rapid-PVST+.

f. On D2, issue the show spanning-tree root command and the output will be different. This is because
with MST, only one instance of the spanning-tree algorithm runs, regardless of the number of VLANs
mapped to it.
YOURNAME-D2# show spanning-tree root

Root Hello Max Fwd


MST Instance Root ID Cost Time Age Dly Root Port
---------------- -------------------- --------- ----- --- --- ------------
MST0 32768 649e.f3d2.a500 0 2 20 15
YOURNAME-D2#

g. Configure A1 to use MST.


A1(config)# spanning-tree mode mst
Close configuration window

h. On A1, issue the show spanning-tree root command.

YOURNAME-A1# show spanning-tree root


Root Hello Max Fwd
MST Instance Root ID Cost Time Age Dly Root Port
---------------- -------------------- --------- ----- --- --- ------------
MST0 32768 649e.f3d2.a500 0 2 20 15 Fa0/3
YOURNAME-A1#

Bob Vachon Page 7 of 17


NetLab-2-Implement MST

Part 3: Configure, Tune and Verify Basic MST Operation


In the last part, you configured all three switches to run MST. In this part, you will further configure, tune, and
verify MST to support the unique topological requirements.

Step 1: Create and verify an MST configuration.


MST allows network engineers to reduce the load of the spanning-tree protocol while still providing unique
spanning-tree topologies for groups of VLANs. MST configuration must be completed by hand on each switch
individually.
Complete the following tasks on switch D1:
Open configuration window

a. On D1, enter MST configuration mode using the command spanning-tree mst configuration.
D1(config)# spanning-tree mst configuration
D1(config-mst)#

b. Configure an MST region name. Our example will be AEN-1.


D1(config-mst)# name AEN-1
D1(config-mst)#

c. Configure an MST configuration revision number. Our example will be 1.


D1(config-mst)# revision 1
D1(config-mst)#

d. Configure instance 1 to include VLAN 2.


D1(config-mst)# instance 1 vlan 2
D1(config-mst)#

e. Configure instance 2 to include VLAN 4.


D1(config-mst)# instance 2 vlan 4
D1(config-mst)#

Note: While in spanning-tree mst configuration mode, you can use the show current and show pending
commands to view current and pending configuration settings.

f. Commit the configuration by typing exit and returning to global configuration mode.
D1(config-mst)# exit
D1(config)# end
D1#

Bob Vachon Page 8 of 17


NetLab-2-Implement MST

g. Issue the command show spanning-tree mst to verify the configuration is in place.

YOURNAME-D1#

##### MST0 vlans mapped: 1,3,5-4094


Bridge address 6c41.6ace.7880 priority 32768 (32768 sysid 0)
Root address 649e.f3d2.a500 priority 32768 (32768 sysid 0)
port Gi0/3 path cost 20000
Regional Root this switch
Operational hello time 2 , forward delay 15, max age 20, txholdcount 6
Configured hello time 2 , forward delay 15, max age 20, max hops 20

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Gi0/1 Altn BLK 200000 128.1 P2p Bound(RSTP)
Gi0/2 Altn BLK 200000 128.2 P2p Bound(RSTP)
Gi0/3 Root FWD 20000 128.3 P2p Bound(RSTP)

##### MST1 vlans mapped: 2


Bridge address 6c41.6ace.7880 priority 32769 (32768 sysid 1)
Root this switch for MST1

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Gi0/1 Altn BLK 200000 128.1 P2p Bound(RSTP)
Gi0/2 Altn BLK 200000 128.2 P2p Bound(RSTP)
Gi0/3 Mstr FWD 20000 128.3 P2p Bound(RSTP)

##### MST2 vlans mapped: 4


Bridge address 6c41.6ace.7880 priority 32770 (32768 sysid 2)
Root this switch for MST2

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Gi0/1 Altn BLK 200000 128.1 P2p Bound(RSTP)
Gi0/2 Altn BLK 200000 128.2 P2p Bound(RSTP)
Gi0/3 Mstr FWD 20000 128.3 P2p Bound(RSTP)

YOURNAME-D1#

Close configuration window

Bob Vachon Page 9 of 17


NetLab-2-Implement MST

h. On D1, change the revision number to 2 and add VLAN 3 to instance 1 and VLAN 5 to instance 2.

YOURNAME-D1(config)# spanning-tree mst configuration


YOURNAME-D1(config-mst)#
YOURNAME-D1(config-mst)# show current
Current MST configuration
Name [AEN-1]
Revision 1 Instances configured 3

Instance Vlans mapped


-------- ---------------------------------------------------------------------
0 1,3,5-4094
1 2
2 4
-------------------------------------------------------------------------------
YOURNAME-D1(config-mst)#
YOURNAME-D1(config-mst)# revision 2
YOURNAME-D1(config-mst)# instance 1 vlan 3
YOURNAME-D1(config-mst)# instance 2 vlan 5
YOURNAME-D1(config-mst)#
YOURNAME-D1(config-mst)# show pending
Pending MST configuration
Name [AEN-1]
Revision 2 Instances configured 3

Instance Vlans mapped


-------- ---------------------------------------------------------------------
0 1,6-4094
1 2-3
2 4-5
-------------------------------------------------------------------------------
YOURNAME-D1(config-mst)# exit
YOURNAME-D1(config)# exit
YOURNAME-D1#
Jan 18 14:15:02.480: %SYS-5-CONFIG_I: Configured from console by console
YOURNAME-D1#

i. On D2, configure the same MST configuration settings as shown.

YOURNAME-D2(config)# spanning-tree mst configuration


YOURNAME-D2(config-mst)# name AEN-1
YOURNAME-D2(config-mst)# revision 2
YOURNAME-D2(config-mst)# instance 1 vlan 2, 3
YOURNAME-D2(config-mst)# instance 2 vlan 4, 5
YOURNAME-D2(config-mst)# exit
YOURNAME-D2(config)# exit
YOURNAME-D2#

Bob Vachon Page 10 of 17


NetLab-2-Implement MST

j. On A1, configure the same MST configuration settings as D2.

k. On A1,D1, and D2, issue the show spanning-tree mst command. Position the terminal windows so that
all three outputs can be seen and compared.

YOURNAME-A1# show spanning-tree mst

##### MST0 vlans mapped: 1,6-4094


Bridge address f41f.c2b3.5b00 priority 32768 (32768 sysid 0)
Root address 649e.f3d2.a500 priority 32768 (32768 sysid 0)
port Fa0/3 path cost 0
Regional Root address 649e.f3d2.a500 priority 32768 (32768 sysid 0)
internal cost 200000 rem hops 19
Operational hello time 2 , forward delay 15, max age 20, txholdcount 6
Configured hello time 2 , forward delay 15, max age 20, max hops 20

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Altn BLK 200000 128.1 P2p
Fa0/2 Altn BLK 200000 128.2 P2p
Fa0/3 Root FWD 200000 128.3 P2p
Fa0/4 Altn BLK 200000 128.4 P2p

##### MST1 vlans mapped: 2-3


Bridge address f41f.c2b3.5b00 priority 32769 (32768 sysid 1)
Root address 649e.f3d2.a500 priority 32769 (32768 sysid 1)
port Fa0/3 cost 200000 rem hops 19

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Altn BLK 200000 128.1 P2p
Fa0/2 Altn BLK 200000 128.2 P2p
Fa0/3 Root FWD 200000 128.3 P2p
Fa0/4 Altn BLK 200000 128.4 P2p

##### MST2 vlans mapped: 4-5


Bridge address f41f.c2b3.5b00 priority 32770 (32768 sysid 2)
Root address 649e.f3d2.a500 priority 32770 (32768 sysid 2)
port Fa0/3 cost 200000 rem hops 19

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Altn BLK 200000 128.1 P2p
Fa0/2 Altn BLK 200000 128.2 P2p
Fa0/3 Root FWD 200000 128.3 P2p
Fa0/4 Altn BLK 200000 128.4 P2p

YOURNAME-A1#

Bob Vachon Page 11 of 17


NetLab-2-Implement MST

Step 2: Controlling the Root Bridge.


Just like with PVST+ and Rapid PVST+, the current root bridge was elected based on the lowest Bridge ID
(consisting of the Priority, extended system ID equal to the VLAN ID, and base MAC address values).
With the priority and extended system IDs being identical, the root bridge's MAC is numerically smaller than
the local bridge’s MAC. The result is that in a completely un-configured network, one single switch will be
elected as the root bridge. The resulting choice of switch may or may not be desirable.
With PVST+ or Rapid PVST+, root bridge selection is done for each VLAN. With MST, the root bridge is
based on instances.
There are two basic ways to manipulate the configuration to control the location of the root bridge:
 The spanning-tree mst instance-id priority value command can be used to manually set a priority
value
 The spanning-tree mst instance-id root { primary | secondary } command can be used to
automatically set a priority value.
The difference between the two is the priority command will set a specific number (multiple of 4096) as the
priority, while the root primary command will set the local bridge's priority to 24,576 (if the local bridge MAC
is lower than the current root bridge's MAC) or 4096 lower than the current root's priority (if the local bridge
MAC is higher than the current root bridge's MAC).
The logic behind this operation is straight-forward. The root primary command tries to lower the priority only
as much as is needed to win the root election, while leaving priorities between 24576 and the default 32768
for use by secondary bridges. The command always takes the entire Bridge ID into account when computing
the resulting priority value.
The spanning-tree mst instance-id secondary command will statically set the local bridge’s priority to
28,672. In an otherwise unconfigured network where all switch priorities default to 32,768, the root primary
command will set the priority on the switch to 24,576 (two increments lower than the default priority) while the
root secondary command will set the priority on the secondary root to the 28,672 (one increment lower than
the default priority).

a. Configure D1 as the primary root bridge for MST instance 1 and the secondary root bridge for MST
instance 2 as shown.
D1(config)# spanning-tree mst 1 root primary
D1(config)# spanning-tree mst 2 root secondary

b. Configure D2 the primary root bridge for MST instance 2 and the secondary root bridge for MST 1.

c. After you have configured both D1 and D2, go to A1 and issue the command show spanning-tree root.
In this output, you will see the root bridges differentiated.
YOURNAME-A1# show spanning-tree root
Root Hello Max Fwd
MST Instance Root ID Cost Time Age Dly Root Port
---------------- -------------------- --------- ----- --- --- ------------
MST0 32768 649e.f3d2.a500 0 2 20 15 Fa0/3
MST1 24577 6c41.6ace.7880 200000 2 20 15 Fa0/1
MST2 24578 649e.f3d2.a500 200000 2 20 15 Fa0/3
YOURNAME-A1#

Bob Vachon Page 12 of 17


NetLab-2-Implement MST

From the above output, you can see that the root port for VLAN 1 is F0/1 and the root port for VLAN 2 is
F0/3. A1 is the root bridge for MST Instance 0 in this example.

d. On A1,D1, and D2, issue the show spanning-tree summary command. Position the terminal windows
so that all three outputs can be seen and compared.

Capture a SS displaying the output generated in Step 3d (output of D1, D2, and A1).

Bob Vachon Page 13 of 17


NetLab-2-Implement MST

Step 3: Adjust port cost values to impact root and designated port selection.
As the network is implemented right now, there are two direct paths between switch A1 and the root bridge for
each MST. Path and port costs are evaluated to determine the shortest path to the root bridge.
In the case where there are multiple equal cost paths to the root bridge, additional attributes must be
evaluated. In our case, the lower interface number (for example, F0/1) is chosen as the Root Port, and the
higher interface number (for example, F0/2) is put into a spanning tree Blocking state.
You can see which ports are blocked with the show spanning-tree vlan-id command or the show
spanning-tree blockedports command. For now, examine VLAN 1 on D1.
a. On A1, issue the commands show spanning-tree vlan 1 and show spanning-tree blockedports.

YOURNAME-A1# show spanning-tree mst 1

##### MST1 vlans mapped: 2-3


Bridge address f41f.c2b3.5b00 priority 32769 (32768 sysid 1)
Root address 6c41.6ace.7880 priority 24577 (24576 sysid 1)
port Fa0/1 cost 200000 rem hops 19

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Root FWD 200000 128.1 P2p
Fa0/2 Altn BLK 200000 128.2 P2p
Fa0/3 Altn BLK 200000 128.3 P2p
Fa0/4 Altn BLK 200000 128.4 P2p

YOURNAME-A1# show spanning-tree blockedports

Name Blocked Interfaces List


-------------------- ------------------------------------
MST0 Fa0/1, Fa0/2, Fa0/4
MST1 Fa0/2, Fa0/3, Fa0/4
MST2 Fa0/1, Fa0/2, Fa0/4

Number of blocked ports (segments) in the system : 9

YOURNAME-A1#

As you can see, MST 1 has its Root Port on F0/1 and F0/2, F0/3, and F0/4 are Alternate Blocking Ports.
To manipulate which port becomes the Root Port on non-root bridges, change the port cost (a value
between 1 and 200,000,000) or port priority value (a value between 0 and 240 in increments of 16).
Remember that this change could have an impact on downstream switches as well.

Bob Vachon Page 14 of 17


NetLab-2-Implement MST

Note: The changes you are about to implement are considered topology changes and could have a
significant impact on the overall structure of the spanning tree in your switch network. Do not make these
changes in a production network without careful planning and prior coordination.

b. On A1, shutdown interfaces F0/1 and F0/2, assign a new port cost of 1000 to F0/2 using the spanning-
tree mst 1 cost value command, and then issue the no shutdown command on the ports.
A1(config)# interface range f0/1-2
A1(config-if-range)# shutdown
A1(config-if-range)# exit
A1(config)# interface f0/2
A1(config-if)# spanning-tree mst 1 cost 1000
A1(config-if)# exit
A1(config)# interface range f0/1-2
A1(config-if-range)# no shutdown
A1(config-if-range)# exit

c. Now verify that this impacts root port selection on A1 using the show spanning-tree vlan 1 and show
spanning-tree blockedports commands.
YOURNAME-A1# show spanning-tree mst 1

##### MST1 vlans mapped: 2-3


Bridge address f41f.c2b3.5b00 priority 32769 (32768 sysid 1)
Root address 6c41.6ace.7880 priority 24577 (24576 sysid 1)
port Fa0/2 cost 1000 rem hops 19

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Altn BLK 200000 128.1 P2p
Fa0/2 Root FWD 1000 128.2 P2p
Fa0/3 Desg LRN 200000 128.3 P2p
Fa0/4 Desg LRN 200000 128.4 P2p

YOURNAME-A1#
YOURNAME-A1# show spanning-tree blockedports

Name Blocked Interfaces List


-------------------- ------------------------------------
MST0 Fa0/1, Fa0/2, Fa0/4
MST1 Fa0/1
MST2 Fa0/1, Fa0/2, Fa0/4

Number of blocked ports (segments) in the system : 7

YOURNAME-A1#

From the output, you can see that the root port selected by A1 for VLAN 1 is now interface F0/2, and the
port (and root) cost is now 1000.

Bob Vachon Page 15 of 17


NetLab-2-Implement MST

Step 4: Adjust port priority values to impact root port selection.


The next method to impact root port selection is configured on the root bridge itself. In our current network
topology, A1 has two connections to the root bridge for MST Instance 2, switch D2. The root port has been
selected, in this case based on the lowest port ID. Port ID is made up of two values, labeled as Prio (Priority)
and Nbr (Number).
Note: The port number is not necessarily equal to the interface ID. A switch may use any port number for STP
purposes as long as they are unique for each port on the switch.
The port priority can be any value between 0 and 240, in increments of 16 (older switches may allow setting
the priority in different increments).
a. On A1, issue the command show spanning-tree mst 2 and take note of the port ID values listed.
YOURNAME-A1# show spanning-tree mst 2

##### MST2 vlans mapped: 4-5


Bridge address f41f.c2b3.5b00 priority 32770 (32768 sysid 2)
Root address 649e.f3d2.a500 priority 24578 (24576 sysid 2)
port Fa0/3 cost 200000 rem hops 19

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Altn BLK 200000 128.1 P2p
Fa0/2 Altn BLK 200000 128.2 P2p
Fa0/3 Root FWD 200000 128.3 P2p
Fa0/4 Altn BLK 200000 128.4 P2p

YOURNAME-A1#

As expected with two equal-cost paths to the root bridge, the lower port ID was selected as the root port.

b. On D2, modify the port priority of D2 interface G0/2 so that it becomes the preferred port by issuing the
spanning-tree mst 2 port-priority value interface configuration command. Use a value of 64.
Open configuration window

YOURNAME-D2(config)# interface range g0/1 - 2


YOURNAME-D2(config-if-range)# shutdown
YOURNAME-D2(config-if-range)# exit
YOURNAME-D2(config)# interface G0/2
YOURNAME-D2(config-if)# spanning-tree mst 2 port-priority 64
YOURNAME-D2(config-if)# exit
YOURNAME-D2(config)# interface range g0/1 - 2
YOURNAME-D2(config-if-range)# no shutdown
YOURNAME-D2(config-if-range)# exit
YOURNAME-D2(config)#

Close configuration window

Bob Vachon Page 16 of 17


NetLab-2-Implement MST

c. On A1, issue the show spanning-tree mst 2 command and you will see that Fa0/4 is now the selected
root port.
Open configuration window

YOURNAME-A1# show spanning-tree mst 2

##### MST2 vlans mapped: 4-5


Bridge address f41f.c2b3.5b00 priority 32770 (32768 sysid 2)
Root address 649e.f3d2.a500 priority 24578 (24576 sysid 2)
port Fa0/4 cost 200000 rem hops 19

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Altn BLK 200000 128.1 P2p
Fa0/2 Altn BLK 200000 128.2 P2p
Fa0/3 Altn BLK 200000 128.3 P2p
Fa0/4 Root FWD 200000 128.4 P2p

YOURNAME-A1#

d. On A1,D1, and D2, issue the show spanning-tree summary command. Position the terminal windows
so that all three outputs can be seen and compared.

Capture a SS displaying the output generated in Step 4d (output of D1, D2, and A1).

Bob Vachon Page 17 of 17

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy