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.
— 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
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.