The most effective attacks often happen inside the LAN, on the access switch. In this lab we run three classic Layer 2 attacks against a Cisco switch, then stop each one with the right security feature.

In this lab you will learn:
✅ Why Layer 2 is vulnerable: MAC learning, DHCP and ARP trust
✅ MAC flooding (macof) → stopped by Port Security
✅ DHCP starvation + rogue DHCP server → stopped by DHCP Snooping
✅ ARP spoofing / man-in-the-middle → stopped by Dynamic ARP Inspection (DAI)
✅ Layer 2 security checklist: IP Source Guard, unused ports, 802.1X

⏱️ Chapters:
0:00 Intro
0:17 How Layer 2 Trust Works
0:51 Lab Topology
1:16 Attack 1 · MAC Flooding
1:52 Fix 1 · Port Security
2:13 Attack 2 · DHCP Spoofing
2:47 Fix 2 · DHCP Snooping
3:14 Attack 3 · ARP Spoofing
3:53 Fix 3 · Dynamic ARP Inspection
4:26 Layer 2 Security Best Practices
4:54 Recap
5:13 Outro

🧪 Key commands (SW1):
interface range fa0/1 - 24
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address sticky
switchport port-security violation shutdown
ip dhcp snooping limit rate 10
ip dhcp snooping
ip dhcp snooping vlan 10
ip arp inspection vlan 10
interface g0/1
ip dhcp snooping trust
ip arp inspection trust

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

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

#NetworkSecurity #CCNA #Cisco #ARPSpoofing #Networking

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