Spanning tree CCNA lab

To finish this CCNA spanning tree lab, you have to set up three switches and enable the spanning tree protocol on all three devices.

As this is a basic spanning tree lab, you only have to configure the spanning tree for the default VLAN 1.

This lab requires the setup of the Rapid Spanning Tree Protocol.

After setting up the Rapid Spanning Tree Protocol, you just have to establish switch one as the root bridge.

In the lab animation, you can see that the packets are being transferred between the switches and none of the ports on any switch is blocked. After the correct configuration, you will see that one port will be blocked by the switches to prevent the loop.

After the configuration, verify your config to check if you have correctly set up the devices and whether the lab is complete or not.


Lab 07 — Spanning Tree Protocol
Unauthorized Access
This interactive lab is exclusively licensed to PacketTracerLab.com and cannot be used on any other domain or offline environment.
Visit PacketTracerLab.com
⚠ Unauthorized use or redistribution is prohibited.
Lab 07
Spanning Tree Protocol (STP / RSTP)
Click a switch to open its terminal
SW1 — Root Bridge
Enable RSTP on SW1
Set SW1 as root bridge
SW2 — Configure
Enable RSTP on SW2
SW3 — Configure
Enable RSTP on SW3
Commands
span mode rapid-pvst
— enable RSTP on all VLANs
span vlan 1 pri 4096
— set primary root bridge
sh span — verify STP state
sh span vlan 1 — detailed view
BLOCKEDMGMTSW1MGMTSW2MGMTSW3
Designated (DP)
Root (RP)
Blocked (BLK)
Unknown
SW1
SW2
SW3
SW1#

As we already know, STP is one of the most important protocols in switching technology; without this protocol, connecting switches is not possible, as it will cause loops in the network.

Although a single switch would work fine, large networks include hundreds of switches, and they have a lot of redundant connections; hence, this protocol blocks the ports on the switches to prevent loops.

While configuring it, we have to make sure that the correct switch is selected as the root bridge, as all the traffic will pass through it; hence, that switch must be capable of handling a large amount of traffic and must always be operational.