Lab Worksheet 5: STP Configuration
Lab Worksheet 5: STP Configuration
Lab Worksheet 5: STP Configuration
STP Configuration
I. Objective
The basic function of STP is to provide a loop free switched network; this is done by creating a
topology of all participating STP switches. The best loop free path through the switched network is then
determined from this topology information. The initial step taken by each STP is to elect a root switch; the
root switch is used as a central point in a switched network to determine the best route through the
switched network. Initially, all switches act as if they are the root switch and do this until they receive
traffic from another superior switch (as determined by switch priority); this is referred to as a root switch
election.
• Root—The port given this role is the selected best path to reach the root switch
• Designated—The port given this role is selected with the best path to a specific switched
segment; there is only one designated port per switched segment.
• Alternate—The port given this role is selected as a backup to the root port; if the root port should
have a problem, this port would take over the root port role.
• Backup—The port given this role is selected as a back to the designated port; if the designated
port should have a problem this port would take over the designated port role.
Once the best path is calculated and each of the ports has been given a role, all ports with the
alternate or backup STP roles will be blocked to prevent loops.
1
III. Lab Exercise
Addressing Table
2
Task 1: Lab Setup
For this lab, use 24-port switch. Configure all PCs with the required IP addresses and default
gateway.
Step 1: Shutdown all ports, use the range command to simplify. This is just to ensure unused
ports will not be used.
Step 2: Enable the switch ports facing the clients. Perform to all applicable ports.
Sample command
S1(config)#interface fa0/3
S1(config-if)#switchport mode access
S1(config-if)#no shutdown
Write the commands here you used to the rest of the client facing ports
3
Step 4: Configure the management interface address on all three switches.
S1(config)#interface vlan1
S1(config-if)#ip address 172.17.10.1 255.255.255.0
S1(config-if)#no shutdown
S2(config)#interface vlan1
S2(config-if)#ip address 172.17.10.2 255.255.255.0
S2(config-if)#no shutdown
S3(config)#interface vlan1
S3(config-if)#ip address 172.17.10.3 255.255.255.0
S3(config-if)#no shutdown
Verify that the switches are correctly configured by pinging between them. From S1, ping the
management interface on S2 and S3. From S2, ping the management interface on S3.
Were the pings successful? _______________________
(If not, troubleshoot the switch configurations and try again. Do not proceed to Task 4 unless
Task 3 is cleared)
S1#show spanning-tree
S2#show spanning-tree
S3#show spanning-tree
2. Which switch is the root for the VLAN 1 spanning tree? ________________
3. On S1, which spanning tree ports are in the blocking state on the root
switch?_________________
4
4. On S3, which spanning tree port is in the blocking state? _________
5. How does STP elect the root switch?
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
6. Since the bridge priorities are all the same, what else does the switch use to determine the
root?
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
Step 2: Examine what has changed in the spanning tree topology using the show spanning-tree
command
S2#show spanning-tree
S3#show spanning-tree
IV. Conclusion