Lab 5.5.1: Basic Spanning Tree Protocol: Topology Diagram
Lab 5.5.1: Basic Spanning Tree Protocol: Topology Diagram
Lab 5.5.1: Basic Spanning Tree Protocol: Topology Diagram
Topology Diagram
Addressing Table
Device
Interface IP Address Subnet Mask Default Gateway
(Hostname)
S1 VLAN 1 172.17.10.1 255.255.255.0 N/A
S2 VLAN 1 172.17.10.2 255.255.255.0 N/A
S3 VLAN 1 172.17.10.3 255.255.255.0 N/A
PC1 NIC 172.17.10.21 255.255.255.0 172.17.10.254
PC2 NIC 172.17.10.22 255.255.255.0 172.17.10.254
PC3 NIC 172.17.10.23 255.255.255.0 172.17.10.254
PC4 NIC 172.17.10.27 255.255.255.0 172.17.10.254
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 10
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.1: Basic Spanning Tree Protocol
Learning Objectives
Upon completion of this lab, you will be able to:
• Cable a network according to the topology diagram
• Erase the startup configuration and reload the default configuration, setting a switch to the default
state
• Perform basic configuration tasks on a switch
• Observe and explain the default behavior of Spanning Tree Protocol (STP, 802.1D)
• Observe the response to a change in the spanning tree topology
Step 1: Cable a network that is similar to the one in the topology diagram.
You can use any current switch in your lab as long as it has the required interfaces shown in the topology
diagram. The output shown in this lab is based on Cisco 2960 switches. Other switch models may
produce different output.
Set up console connections to all three switches.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 10
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.1: Basic Spanning Tree Protocol
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 10
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.1: Basic Spanning Tree Protocol
Only a single VLAN is being used in this lab, however trunking has been enabled on all links
between switches to allow for additional VLANs to be added in the future.
S1#show spanning-tree
VLAN0001
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 10
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.1: Basic Spanning Tree Protocol
S2#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0019.068d.6980
Cost 19
Port 1 (FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
S3#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0019.068d.6980
Cost 19
Port 1 (FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 5 of 10
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.1: Basic Spanning Tree Protocol
Step 1: Place the switches in spanning tree debug mode using the command debug spanning-
tree events.
S1#debug spanning-tree events
Spanning Tree event debugging is on
Step 2: Intentionally shutdown a port on the root switch. This example uses S1, since it is the
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 6 of 10
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.1: Basic Spanning Tree Protocol
S1(config)#interface fa0/1
S1(config-if)#shutdown
Step 3: Record the debug output from the non-root switches. In this example we record the
output from S2 and S3, since they are the non-root switches.
S2#
1w2d: STP: VLAN0001 we are the spanning tree root
S2#
1w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,
changed state to down
1w2d: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to down
S2#
1w2d: STP: VLAN0001 heard root 32769-0019.068d.6980 on Fa0/2
1w2d: supersedes 32769-001b.0c68.2080
1w2d: STP: VLAN0001 new root is 32769, 0019.068d.6980 on port Fa0/2, cost 38
1w2d: STP: VLAN0001 sent Topology Change Notice on Fa0/2
S3#
1w2d: STP: VLAN0001 heard root 32769-001b.0c68.2080 on Fa0/2
1w2d: STP: VLAN0001 Fa0/2 -> listening
S3#
1w2d: STP: VLAN0001 Topology Change rcvd on Fa0/2
1w2d: STP: VLAN0001 sent Topology Change Notice on Fa0/1
S3#
1w2d: STP: VLAN0001 Fa0/2 -> learning
S3#
1w2d: STP: VLAN0001 sent Topology Change Notice on Fa0/1
1w2d: STP: VLAN0001 Fa0/2 -> forwarding
Based on the output from this example, when the link from S2 that is connected to the root switch goes
down, what is its initial conclusion about the spanning tree root?______________________
Once S2 receives new information on Fa0/2, what new conclusion does it draw?____________________
Port Fa0/2 on S3 was previously in a blocking state before the link between S2 and S1 went down. What
states does it go through as a result of the topology change? __________________________________
Step 4: Examine what has changed in the spanning tree topology using the show spanning-
tree command.
S2#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0019.068d.6980
Cost 38
Port 2 (FastEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 7 of 10
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.1: Basic Spanning Tree Protocol
S3#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0019.068d.6980
Cost 19
Port 1 (FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
1. What has changed about the way that S2 forwards traffic? __________________________________
2. What has changed about the way that S3 forwards traffic?__________________________________
Task 6: Using the show run command, record the configuration of each switch.
S1#show run
!<output omitted>
!
hostname S1
!
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode trunk
!
interface FastEthernet0/3
switchport mode access
!
! <output omitted>
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 8 of 10
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.1: Basic Spanning Tree Protocol
!
interface Vlan1
ip address 172.17.10.1 255.255.255.0
!
end
S2#show run
!<output omitted>
!
hostname S2
!
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode trunk
!
! <output omitted>
!
interface FastEthernet0/6
switchport mode access
!
interface FastEthernet0/11
switchport mode access
!
interface FastEthernet0/18
switchport mode access
!
!
interface Vlan1
ip address 172.17.10.2 255.255.255.0
!
end
S3#show run
!<output omitted>
!
hostname S3
!
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode trunk
!
!
! <output omitted>
!
interface Vlan1
ip address 172.17.10.3 255.255.255.0
!
end
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 9 of 10
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.1: Basic Spanning Tree Protocol
Task 7: Clean Up
Erase the configurations and reload the default configurations for the switches. Disconnect and store the
cabling. For PC hosts that are normally connected to other networks (such as the school LAN or to the
Internet), reconnect the appropriate cabling and restore the TCP/IP settings.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 10 of 10
Lab 5.5.2: Challenge Spanning Tree Protocol
Topology Diagram
Addressing Table
Device
Interface IP Address Subnet Mask Default Gateway
(Hostname)
S1 VLAN 99 172.17.99.11 255.255.255.0 N/A
S2 VLAN 99 172.17.99.12 255.255.255.0 N/A
S3 VLAN 99 172.17.99.13 255.255.255.0 N/A
PC1 NIC 172.17.10.21 255.255.255.0 172.17.10.12
PC2 NIC 172.17.20.22 255.255.255.0 172.17.20.12
PC3 NIC 172.17.30.23 255.255.255.0 172.17.30.12
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
Learning Objectives
Upon completion of this lab, you will be able to:
• Cable a network according to the topology diagram
• Erase the startup configuration and reload the default configuration, setting a switch to the default
state
• Perform basic configuration tasks on a switch
• Configure VLAN Trunking Protocol (VTP) on all switches
• Observe and explain the default behavior of Spanning Tree Protocol (STP, 802.1D)
• Modify the placement of the spanning tree root
• Observe the response to a change in the spanning tree topology
• Explain the limitations of 802.1D STP in supporting continuity of service
• Configure Rapid STP (802.1W)
• Observe and explain the improvements offered by Rapid STP
Step 1: Cable a network that is similar to the one in the topology diagram.
You can use any current switch in your lab as long as it has the required interfaces shown in the topology
diagram. The output shown in this lab is based on Cisco 2960 switches. Other switch models may
produce different output.
Set up console connections to all three switches.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
Gig1/1, Gig1/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
Configure VTP on the three switches using the following table. Remember that VTP domain names and
passwords are case-sensitive. The default operating mode is server.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
S1(config)#vlan 99
S1(config-vlan)#name management
S1(config-vlan)#exit
S1(config)#vlan 10
S1(config-vlan)#name faculty-staff
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name students
S1(config-vlan)#exit
S1(config)#vlan 30
S1(config-vlan)#name guest
S1(config-vlan)#exit
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 5 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 6 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
access. These three ports will be enabled with the no shutdown command.
S2(config)#interface range fa0/6, fa0/11, fa0/18
S2(config-if-range)#no shutdown
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0019.068d.6980
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 32778
Address 0019.068d.6980
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 32788
Address 0019.068d.6980
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 7 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
VLAN0030
Spanning tree enabled protocol ieee
Root ID Priority 32798
Address 0019.068d.6980
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0099
Spanning tree enabled protocol ieee
Root ID Priority 32867
Address 0019.068d.6980
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Note that there are five instances of the spanning tree on each switch. The default STP configuration on
Cisco switches is Per-VLAN Spanning Tree (PVST+), which creates a separate spanning tree for each
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 8 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
VLAN0099
Spanning tree enabled protocol ieee
Root ID Priority 32867
Address 0019.068d.6980
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0099
Spanning tree enabled protocol ieee
Root ID Priority 32867
Address 0019.068d.6980 This is the MAC address of the root switch (S1 in
this case)
Cost 19
Port 3 (FastEthernet0/3)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0099
Spanning tree enabled protocol ieee
Root ID Priority 32867
Address 0019.068d.6980 This is the MAC address of the root switch (S1 in
this case)
Cost 19
Port 1 (FastEthernet0/1)
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 9 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 10 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
• Consider the topology used in this lab. Of the six trunks configured, only two are carrying traffic.
While this prevents loops, it is a waste of resources. Because the root can be defined on the
basis of the VLAN, you can have some ports blocking for one VLAN and forwarding for another.
This is demonstrated below.
In this example, it has been determined that the root selection using default values has led to under-
utilization of the available switch trunks. Therefore, it is necessary to force another switch to become the
root switch for VLAN 99 to impose some load-sharing on the trunks.
Selection of the root switch is accomplished by changing the spanning-tree priority for the VLAN.
Because the default root switch may vary in your lab environment, we will configure S1 and S3 to be the
root switches for specific VLANs. The default priority, as you have observed, is 32768 plus the VLAN ID.
The lower number indicates a higher priority for root selection. Set the priority for VLAN 99 on S3 to 4096.
S3(config)#spanning-tree vlan 99 ?
forward-time Set the forward delay for the spanning tree
hello-time Set the hello interval for the spanning tree
max-age Set the max age interval for the spanning tree
priority Set the bridge priority for the spanning tree
root Configure switch as root
<cr>
Set the priority for VLANs 1, 10, 20, and 30 on S1 to 4096. Once again, the lower number indicates a
higher priority for root selection.
Give the switches a little time to recalculate the spanning tree and then check the tree for VLAN 99 on
switch S1 and switch S3.
S1#show spanning-tree vlan 99
VLAN0099
Spanning tree enabled protocol ieee
Root ID Priority 4195
Address 001b.5303.1700 This is now the MAC address of S3, (the new root
switch)
Cost 19
Port 3 (FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 11 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 4106
Address 0019.068d.6980
Cost 19
Port 1 (FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 12 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
Note that S3 can now use all four ports for VLAN 99 traffic as long as they are not blocked at the other
end of the trunk. However, the original spanning tree topology, with three of four S3 ports in blocking
mode, is still in place for the four other active VLANs. By configuring groups of VLANs to use different
trunks as their primary forwarding path, we retain the redundancy of failover trunks, without having to
leaves trunks totally unused.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 13 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
Recall that when the ports are in listening and learning mode, they are not forwarding frames, and the
LAN is essentially down. The spanning tree recalculation can take up to 50 seconds to complete – a
significant interruption in network services. The output of the continuous pings shows the actual
interruption time. In this case, it was about 30 seconds. While 802.1D STP effectively prevents switching
loops, this long restoration time is considered a serious drawback in the high availability LANs of today.
Figure 1. These pings show a 30-second lapse in connectivity while the spanning tree is recalculated.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 14 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
6d10h: RSTP(99): Fa0/2 is now root port Connectivity has been restored; less than 1
second interruption
6d10h: RSTP(99): syncing port Fa0/1
6d10h: RSTP(99): syncing port Fa0/4
6d10h: RSTP(99): transmitting a proposal on Fa0/1
6d10h: RSTP(99): transmitting a proposal on Fa0/4
6d10h: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3,
changed state to down
6d10h: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,
changed state to down
The restoration time with RSTP enabled was less than a second, and not a single ping was dropped.
Final Configurations
Switch S1
hostname S1
!
enable secret class
!
no ip domain-lookup
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 1 priority 4096
spanning-tree vlan 10 priority 4096
spanning-tree vlan 20 priority 4096
spanning-tree vlan 30 priority 4096
!
interface FastEthernet0/1
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/2
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/3
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/4
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/5
shutdown
!
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 15 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
interface FastEthernet0/6
shutdown
!
interface FastEthernet0/7
shutdown
!
(remaining port configuration ommitted - all non-used ports are shutdown)
!
!
interface Vlan1
no ip address
no ip route-cache
!
interface Vlan99
ip address 172.17.99.11 255.255.255.0
no ip route-cache
!
line con 0
password cisco
login
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
end
Switch S2
hostname S2
!
enable secret class
!
no ip domain-lookup
!
interface FastEthernet0/1
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/2
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/3
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/4
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/5
switchport access vlan 30
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 16 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 17 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
interface FastEthernet0/17
switchport access vlan 10
switchport mode access
shutdown
!
interface FastEthernet0/18
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/19
switchport access vlan 20
switchport mode access
shutdown
!
interface FastEthernet0/20
switchport access vlan 20
switchport mode access
shutdown
!
interface FastEthernet0/21
switchport access vlan 20
switchport mode access
shutdown
!
interface FastEthernet0/22
switchport access vlan 20
switchport mode access
shutdown
!
interface FastEthernet0/23
switchport access vlan 20
switchport mode access
shutdown
!
interface FastEthernet0/24
switchport access vlan 20
switchport mode access
shutdown
!
interface GigabitEthernet0/1
shutdown
!
interface GigabitEthernet0/2
shutdown
!
interface Vlan1
no ip address
no ip route-cache
!
interface Vlan99
ip address 172.17.99.12 255.255.255.0
no ip route-cache
!
line con 0
line vty 0 4
password cisco
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 18 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
login
line vty 5 15
password cisco
login
!
end
Switch S3
hostname S3
!
enable secret class
!
no ip domain-lookup
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 99 priority 4096
!
interface FastEthernet0/1
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/2
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/3
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/4
switchport trunk native vlan 99
switchport mode trunk
!
interface FastEthernet0/5
shutdown
!
interface FastEthernet0/6
shutdown
!
interface FastEthernet0/7
shutdown
!
(remaining port configuration ommitted - all non-used ports are shutdown)
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan99
ip address 172.17.99.13 255.255.255.0
no ip route-cache
!
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 19 of 20
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.2: Challenge Spanning Tree Protocol
line con 0
password cisco
login
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
end
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 20 of 20
Lab 5.5.3: Troubleshooting Spanning Tree Protocol
Topology Diagram
Addressing Table
Device
Interface IP Address Subnet Mask Default Gateway
(Hostname)
S1 VLAN 99 172.17.99.11 255.255.255.0 N/A
S2 VLAN 99 172.17.99.12 255.255.255.0 N/A
S3 VLAN 99 172.17.99.13 255.255.255.0 N/A
PC1 NIC 172.17.10.21 255.255.255.0 172.17.10.1
PC2 NIC 172.17.20.22 255.255.255.0 172.17.20.1
PC3 NIC 172.17.30.23 255.255.255.0 172.17.30.1
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 6
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.3: Troubleshooting Spanning Tree Protocol
Learning Objectives
Upon completion of this lab, you will be able to:
• Analyze a congestion problem in a redundant, switched LAN network.
• Recognize the capabilities for per-VLAN load balancing with PVST.
• Modify the default STP configuration to optimize available bandwidth.
• Verify that modifications have had the intended effect.
Scenario
You are responsible for the operation of the redundant switched LAN shown in the topology diagram. You
and your users have been observing increased latency during peak usage times, and your analysis points
to congested trunks. You recognize that of the six trunks configured, only two are forwarding packets in
the default STP configuration currently running. The solution to this problem requires more effective use
of the available trunks. The PVST+ feature of Cisco switches provides the required flexibility to distribute
the inter-switch traffic using all six trunks.
This lab is complete when all wired trunks are carrying traffic, and all three switches are participating in
per-VLAN load balancing for the three user VLANs.
Step 1: Cable a network that is similar to the one in the topology diagram.
You can use any current switch in your lab as long as it has the required interfaces shown in the topology
diagram. The output shown in this lab is based on Cisco 2960 switches. Other switch models may
produce different output.
Set up console connections to all three switches.
S1 Configuration
hostname S1
enable secret class
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 6
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.3: Troubleshooting Spanning Tree Protocol
no ip domain-lookup
!
vtp mode server
vtp domain Lab5
vtp password cisco
!
vlan 99
name Management
exit
!
vlan 10
name Faculty/Staff
exit
!
vlan 20
name Students
exit
!
vlan 30
name Guest
exit
!
interface FastEthernet0/1
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface FastEthernet0/2
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface FastEthernet0/3
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface FastEthernet0/4
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface range FastEthernet0/5-24
shutdown
!
interface GigabitEthernet0/1
shutdown
!
interface GigabitEthernet0/2
shutdown
!
interface Vlan99
ip address 172.17.99.11 255.255.255.0
no shutdown
!
line con 0
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 6
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.3: Troubleshooting Spanning Tree Protocol
logging synchronous
password cisco
login
line vty 0
no login
line vty 1 4
password cisco
login
line vty 5 15
password cisco
login
!
end
S2 Configuration
hostname S2
!
enable secret class
no ip domain-lookup
!
vtp mode client
vtp domain Lab5
vtp password cisco
!
interface FastEthernet0/1
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface FastEthernet0/2
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface FastEthernet0/3
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface FastEthernet0/4
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface range FastEthernet0/5 - 10
switchport access vlan 30
switchport mode access
!
interface range FastEthernet0/11 - 17
switchport access vlan 10
switchport mode access
!
interface range FastEthernet0/18 - 24
switchport access vlan 20
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 6
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.3: Troubleshooting Spanning Tree Protocol
S3 Configuration
hostname S3
!
enable secret class
no ip domain-lookup
!
vtp mode client
vtp domain Lab5
vtp password cisco
!
interface FastEthernet0/1
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface FastEthernet0/2
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface FastEthernet0/3
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface FastEthernet0/4
switchport trunk native vlan 99
switchport mode trunk
no shutdown
!
interface range FastEthernet0/5 - 10
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 5 of 6
CCNA Exploration
LAN Switching and Wireless: STP Lab 5.5.3: Troubleshooting Spanning Tree Protocol
Task 6: Clean Up
Erase the configurations and reload the switches. Disconnect and store the cabling. For PC hosts that are
normally connected to other networks (such as the school LAN or to the Internet), reconnect the
appropriate cabling and restore the TCP/IP settings.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 6 of 6