Spanning Tree Protocol: A Comprehensive Lab Guide for Networking Enthusiasts
For your Practice Download the Packet Tracer File
👇
Goal. Use the provided Packet Tracer File file and configure the following:
- Hostname according to the diagram and Rapid PVST on all switches.
- Add all VLANs on all switches manually.
- Access interfaces and VLANs – 8 interfaces per VLAN + PortFast.
- Trunk interfaces.
- Configure Root switches according to the diagram.
- IP addresses on PCs.
- Check
1. Hostname and Rapid PVST
Switch(config)#hostname S1
Switch(config)#spanning-tree mode rapid-pvst
2. Add VLANs manually
SW1(config)#vlan 30
SW2(config)#vlan 20
SW4(config)#vlan 10
SW5(config)#vlan 10
SW5(config)#vlan 20
SW5(config)#vlan 30
SW6(config)#vlan 10
SW6(config)#vlan 20
3. Access + PortFast
SW1(config)#interface range FastEthernet 0/1-8
SW1(config-if-range)#switchport mode access
SW1(config-if-range)#switchport access vlan 10
SW1(config-if-range)# spanning-tree portfast
SW1(config)#interface range FastEthernet 0/9-16
SW1(config-if-range)#switchport mode access
SW1(config-if-range)#switchport access vlan 20
SW1(config-if-range)# spanning-tree portfast
4. Trunk
SW1(config)#interface range GigabitEthernet 0/1-2
SW1(config-if-range)#switchport mode trunk
SW1(config)#interface FastEthernet F0/24
SW1(config-if-range)#switchport mode trunk
5. Root Bridge
SW1(config)# spanning-tree vlan 10 root primary
SW3(config)# spanning-tree vlan 20 root primary
SW5(config)# spanning-tree vlan 30 root primary
6. PC IPs
PC -> Desktop -> IP Configuration -> allocate addresses according to the diagram
7. Check
If you have any questions feel free to ask.
👉Learn STP Security Lab