Chapter 3 Lab 3-3, Per-VLAN Spanning Tree Behavior: Topology
Chapter 3 Lab 3-3, Per-VLAN Spanning Tree Behavior: Topology
Objectives
• Observe the behavior of a separate spanning tree instance per VLAN.
• Change spanning tree mode to rapid spanning tree.
Background
Four switches have just been installed. The distribution layer switches are Catalyst 3560s, and the access
layer switches are Catalyst 2960s. There are redundant uplinks between the access layer and distribution
layer. Because of the possibility of bridging loops, spanning tree logically removes any redundant links. In this
lab, you will see what happens when spanning tree is configured differently for different VLANs.
Note: This lab uses Cisco WS-C2960-24TT-L switches with the Cisco IOS image c2960-lanbasek9-mz.122-
46.SE.bin and Catalyst 3560-24PS with the Cisco IOS image c3560-advipservicesk9-mz.122-46.SE.bin.
Other switches (such as a 2950 or 3550), and Cisco IOS Software versions can be used if they have
comparable capabilities and features. 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.
Required Resources
• 2 switches (Cisco 2960 with the Cisco IOS Release 12.2(46)SE C2960-LANBASEK9-M image or
comparable)
• 2 switches (Cisco 3560 with the Cisco IOS Release 12.2(46)SE C3560-ADVIPSERVICESK9-M
image or comparable)
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 11
CCNPv6 SWITCH
c. Configure ports Fa0/7 through Fa0/12 on all switches to be trunks. On the 3560s, first set the trunk
encapsulation to dot1q. On the 2960s, only dot1q is supported, therefore the switchport trunk
encapsulation command is unavailable, but the mode still needs to be changed to trunk. If you do not set
the mode of the ports to trunk, they will negotiate the operational mode according to their default DTP
settings.
Note: The default mode on a 3560 or 2960 is dynamic auto; the default mode on a 3550 or 2950 is dynamic
desirable.
DLS1 example:
DLS1 example:
DLS1(config)# vtp mode transparent
Setting device to VTP TRANSPARENT mode.
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 11
CCNPv6 SWITCH
b. Issue the show spanning-tree command on any of the four switches. Notice that instead of just one
VLAN there are three non-reserved VLANs. VLANs 1002-1005 are reserved for internal switch usage. All
other VLANs shown are non-reserved.
Note: By default Cisco switches use PVST+, a Cisco-proprietary IEEE 802.1Q-compatible per-VLAN
spanning tree protocol.
DLS1# show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000a.b8a9.d680
Cost 19
Port 13 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 32778
Address 000a.b8a9.d680
Cost 19
Port 13 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0020
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 11
CCNPv6 SWITCH
b. If you look at the output of show spanning-tree on the four switches, you see that the port states and
root switches vary on a per VLAN basis.
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000a.b8a9.d680
Cost 19
Port 13 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 11
CCNPv6 SWITCH
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 4106
Address 000a.b8a9.d780
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0020
Spanning tree enabled protocol ieee
Root ID Priority 4116
Address 000a.b8a9.d680
Cost 19
Port 13 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000a.b8a9.d680
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 5 of 11
CCNPv6 SWITCH
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 4106
Address 000a.b8a9.d780
Cost 19
Port 13 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0020
Spanning tree enabled protocol ieee
Root ID Priority 4116
Address 000a.b8a9.d680
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 6 of 11
CCNPv6 SWITCH
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000a.b8a9.d680
Cost 19
Port 11 (FastEthernet0/9)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 4106
Address 000a.b8a9.d780
Cost 19
Port 9 (FastEthernet0/7)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0020
Spanning tree enabled protocol ieee
Root ID Priority 4116
Address 000a.b8a9.d680
Cost 19
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 7 of 11
CCNPv6 SWITCH
Port 11 (FastEthernet0/9)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000a.b8a9.d680
Cost 19
Port 9 (FastEthernet0/7)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 4106
Address 000a.b8a9.d780
Cost 19
Port 11 (FastEthernet0/9)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 8 of 11
CCNPv6 SWITCH
VLAN0020
Spanning tree enabled protocol ieee
Root ID Priority 4116
Address 000a.b8a9.d680
Cost 19
Port 9 (FastEthernet0/7)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
b. After configuring all four switches with this command, use the show spanning-tree command to verify
the configuration:
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 32769
Address 000a.b8a9.d680
Cost 19
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 9 of 11
CCNPv6 SWITCH
Port 13 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 4106
Address 000a.b8a9.d780
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0020
Spanning tree enabled protocol rstp
Root ID Priority 4116
Address 000a.b8a9.d680
Cost 19
Port 13 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 10 of 11
CCNPv6 SWITCH
Challenge
a. On each switch, add VLANs 50, 60, 70, 80, 90, and 100. Configure ALS1 to be the root bridge for VLANs
50, 60, and 70, and ALS2 to be the root bridge for VLANs 80, 90, and 100. Configure the root bridges
with a single line on each switch.
HINT: Use the question mark when you type the global configuration command spanning-tree vlan ?. Notice
that you can modify spanning tree attributes in ranges.
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
b. Change the spanning tree cost of VLAN 20 on Fa0/11 and Fa0/12 between DLS1 and DLS2 to 15.
HINT: Use the question mark on the interface level command spanning-tree vlan number ?.
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 11 of 11