Escolar Documentos
Profissional Documentos
Cultura Documentos
The Advanced Spanning-tree module provides you with the instructions and Cisco hardware to
develop your hands on skills in configuring advanced spanning-tree including RSTP and MST. This
module includes the following exercises:
Lab Diagram
During your session you will have access to the following lab configuration. Depending on the
exercises you may or may not use all of the devices, but they are shown here in the layout to get an
overall understanding of the topology of the lab.
Internet
ISP1 ISP2
172.14.0.3/24 172.14.0.4/24
Frame-Relay
WAN NYEDGE1 NYEDGE2
Gi0/1 Gi0/1 Cisco
Cisco
2911 Router Ser0/0/0 2911 Router
LDNWAN1
Ser0/0/0
Ser0/0/1
Ser0/0/1
Gi0/0 Ser0/0/1 Gi0/0
Ser0/1/1
Ser0/0/0 Ser0/1/0
Fas1/0/1 Fas1/0/1
Gi0/1 Gi0/0 Fas1/0/2 Fas1/0/12
172.16.16.0/24 Fas1/0/23
Fas0/24 Fas0/23
PLABCSCO01 NYACCESS1
Cisco Tools Server Lab Nic Fas0/1 Cisco 2960-24
192.168.16.10/24 Switch
Each exercise will detail which terminal you are required to work on to carry out the steps.
During the boot up process an activity indicator will be displayed in the device name tab:
If the remote terminal is not displayed automatically in the main window (or popup) click the
Connect icon located in the tools bar to start your session.
Copyright Notice
This document and its content is copyright of Practice-IT - Practice-IT 2014. All rights reserved.
Any redistribution or reproduction of part or all of the contents in any form is prohibited other than
the following:
1) You may print or download to a local hard disk extracts for your personal and non-commercial use
only.
2) You may copy the content to individual third parties for their personal use, but only if you
acknowledge the website as the source of the material. You may not, except with our express
written permission, distribute or commercially exploit the content. Nor may you transmit it or store
it in any other website or other form of electronic retrieval system.
Exercise 1 Rapid Spanning-tree
(RSTP)
In this exercise you will learn how to configure the rapid spanning-tree protocol. Please refer to your
course material or use your preferred search engine to gain an understanding of these tasks.
Step 1
On NYCORE1, use the following command to determine the default protocol:
VLAN0001
If you view the running configuration you can confirm this is PVST:
You can see that in the output above, the protocol running out of the box is IEEE/PVST.
Changing to RSTP
Next we will configure rapid spanning tree with a simple command:
Step 1
Use the following command enable RSTP:
NYCORE1#configure terminal
Step 2
To confirm the change, use the command you learnt previously:
VLAN0001
Address 0017.5a7b.4400
Cost 19
Port 25 (FastEthernet1/0/23)
Address 0024.514b.0800
You can also see that in this output, the switch has detected its peers that are running traditional
STP. This is indicated by the p2p Peer(STP) (or Type column) at the bottom.
Have a look at the output on NYCORE2 using the same command:
VLAN0001
Address 0017.5a7b.4400
Address 0017.5a7b.4400
spanning-tree portfast
NYCORE1#configure terminal
NYCORE1(config-if-range)#spanning-tree portfast
When configuring you may receive this message:
Of course this can be safely ignored providing you are 100% sure that the connections on these
interfaces are indeed hosts and not other switches.
There is an IP Phone connected to Fas1/0/12 on NYCORE2, observe the output for the show
spanning-tree command on this interface. The Type field changes for this interface:
VLAN0001
Step 1
Configure the interfaces fas 1/0/12 as a p2p link:
NYCORE2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
In this configuration example we will configure the links between NYCORE1 and NYCORE2 to have
their VLANs load balanced to utilise both links simultaneously.
Our design goal will be to run a group of VLANs over the connection on interface fas 1/0/23 and a
group on the interface fas 1/0/24. You could of course use EtherChannel to achieve load balancing,
however there may be a reason you wouldnt want to use EtherChannel and need to use VLAN load
balancing using MST.
Step 1
NYCORE1
VLANs:
10 InformationTech
20 Marketing
30 Sales
40 HumanResources
VTP:
Script on NYCORE1:
NYCORE1#configure terminal
NYCORE1(config-vlan)#name InformationTech
NYCORE1(config-vlan)#vlan 20
NYCORE1(config-vlan)#name Marketing
NYCORE1(config-vlan)#vlan 30
NYCORE1(config-vlan)#name Sales
NYCORE1(config-vlan)#vlan 40
NYCORE1(config-vlan)#name HumanResources
NYCORE1(config-vlan)#exit
NYCORE1(config)#
Trunking:
Trunk encapsulation 802.1q, and trunking mode set to on for interfaces fas1/0/23 and 1/0/24
NYCORE1#conf t
Same settings as NYCORE1, except you will not need to create the VLANs if you configure the switch
to be in vtp domain practicelabs.
Once you have made the configuration changes, you should have all the VLANs on NYCORE1 and
NYCORE2 and the trunks should be up.
Fa1/0/23 10,30
Fa1/0/24 20,40
Fa1/0/23 10,30
Fa1/0/24 20,40
Fa1/0/23 10,30
Fa1/0/24 20,40
Configuring MST
Next we will make the configuration changes to run MSTP.
This is a simple task to achieve in the lab, but will require some thought in a production
environment. As were only concerned with a small number of VLANs and a small number of
switches and redundancy our configuration will be straight forward.
Step 1
First ensure NYCORE1 is the root for VLANs 10 and 30 that you previously created:
Ensure NYCORE2 is the root for VLANs 20 and 40 that you previously created:
shutdown
name CORE
revision 1
NYCORE1#configure terminal
NYCORE1(config-mst)#name CORE
NYCORE1(config-mst)#revision 1
Step 2
Next we need to configure our MST instances:
NYCORE1#configure terminal
NYCORE2#configure terminal
NYCORE2(config-mst)#name CORE
NYCORE2(config-mst)#revision 1
Providing everything is configured correctly, you should find that fas 1/0/23 and 1/0/24 are both in
non-blocking states for VLANs 10, 20, 30 and 40. You will also notice that there is a block! This is for
MST0 which is running VLAN 1 only.
Step 4
You can use the show pending command under the spanning-tree mst configuration mode to view
the mst configuration:
configure terminal
show pending
Script output on NYCORE1:
NYCORE1#configure terminal
NYCORE1(config-mst)#show pending
Name [CORE]
-------- ---------------------------------------------------------------------
0 1-9,11-19,21-29,31-39,41-4094
1 10,30
2 20,40
-------------------------------------------------------------------------------
NYCORE1(config-mst)#
Step 1
Use the following commands to set the root bridge for all the VLANs in region 1 to be on NYCORE1:
NYCORE1#configure terminal
Step 2
To configure NYCORE2 as the root for the odd VLANs:
MST1
Address 0024.514b.0800
Address 0024.514b.0800
MST2
Address 0017.5a7b.4400
Cost 200000
Port 26 (FastEthernet1/0/24)
Address 0024.514b.0800
MST1
Address 0024.514b.0800
Cost 200000
Port 25 (FastEthernet1/0/23)
Address 0017.5a7b.4400
VLAN 20:
MST2
Address 0017.5a7b.4400
Address 0017.5a7b.4400
You configured RSTP and learnt how a switch with its neighbors when running in this mode.
You learnt how to configure different RSTP link types.
You learnt how to configure MST and configured multiple instances.
You learnt how to tune the root bridges in MST.
Also Try
Using your lab infrastructure you can attempt the following topics at your own pace, these are
additional tasks that can be done building on what you have learnt in this module:
Change the MST timers for hello, forward and max age to be the smallest values possible.