Layer 2 attacks

A router protects the edge, but inside the LAN a switch trusts every frame. A laptop in the lobby, or a compromised PC, can attack the people around it. The CCNA expects you to know each attack and its counter-measure:

AttackWhat the attacker doesMitigation
MAC floodingFloods the switch with fake source MACs until the MAC table fills; the switch then floods every frame, so the attacker sees other people's trafficPort security
Rogue DHCPRuns a fake DHCP server to hand out its own address as the gateway (man-in-the-middle)DHCP snooping
ARP poisoning / spoofingSends fake ARP replies so victims send their traffic to the attackerDynamic ARP inspection (DAI)
Address spoofingFakes a source IP or MACIP source guard, DAI, port security
VLAN hoppingReaches another VLAN by double-tagging or by forming a trunkNo DTP on access ports, change the native VLAN, prune trunks
STP manipulationPretends to be the root bridge to reroute trafficBPDU guard and root guard
Rogue IPv6 routerSends Router Advertisements so hosts use the attacker as their IPv6 gatewayRA guard

This module covers port security, DHCP snooping, DAI, storm control and RA guard. VLAN-hopping defences (access ports with switchport mode access, a changed native VLAN) you met with VLANs; BPDU guard and root guard you met with spanning tree.

Remember: Rogue DHCP → DHCP snooping. ARP poisoning → DAI. MAC flooding → port security. Fake STP root → BPDU/root guard. Fake IPv6 router → RA guard.

HOME LABS COMMUNITY DASHBOARD