Spanning Tree Protocol decides which path all of your switched traffic takes. In this Cisco lab, an attacker sends BPDUs with priority 0, becomes the root bridge and places itself in the middle of your network. Then we stop the attack with BPDU Guard and Root Guard.

In this lab you will learn:
✅ How STP works: BPDUs, bridge ID, root bridge election, root and blocked ports
✅ Configure the root bridge with Rapid PVST+ (spanning-tree vlan priority)
✅ Verify the tree with show spanning-tree
✅ Root bridge takeover attack (superior BPDUs, man-in-the-middle)
✅ The fix: PortFast + BPDU Guard on access ports, Root Guard on the root bridge
✅ STP security checklist: root primary/secondary, Loop Guard, unused ports

⏱️ Chapters:
0:00 Intro
0:17 How STP Works
0:49 Lab Topology
1:11 Step 1 · Configure the Root Bridge
1:25 Step 2 · Verify the Tree
1:47 STP Weaknesses
2:09 Attack · Root Bridge Takeover
2:56 The Fix · BPDU Guard & Root Guard
3:44 STP Security Best Practices
4:11 Recap
4:27 Outro

🧪 Key commands:
spanning-tree mode rapid-pvst
spanning-tree vlan 10 priority 4096
interface range fa0/1 - 24
spanning-tree portfast
spanning-tree bpduguard enable
interface range g0/1 - 2
spanning-tree guard root

⚠️ Educational purposes only. Test attacks only in your own lab.

📚 More networking labs: IPsec VPN, BGP security, VLAN hopping, OSPF security, Layer 2 attacks — subscribe to netacademy.ge
© netacademy.ge — All rights reserved.

#STP #CCNA #NetworkSecurity #Cisco #Networking

Last modified: Sunday, 6 December 2026, 9:29 AM