N10-009 ยท Network attacks and defenses
Layer 2 and name resolution attacks
VLAN hopping, MAC flooding, ARP poisoning and spoofing, DNS poisoning and spoofing.
Key points
- VLAN hopping: entering another VLAN via a trunk (switch spoofing) or double tagging.
- MAC flooding: fills the CAM table so the switch floods frames like a hub.
- ARP poisoning/spoofing: forged replies map a victim IP (often the gateway) to the attacker's MAC.
- DNS poisoning/spoofing: false cached records, forged answers.
- Defenses: static access ports, unused native VLAN, port security, DHCP snooping + Dynamic ARP Inspection, DNSSEC.
Practice questions
Which attack overflows a switch's MAC address table so that it begins flooding unicast frames out of all ports?
- ARP poisoning
- DNS spoofing
- MAC flooding
- VLAN hopping
Show answer
Answer: C. MAC flooding
MAC flooding fills the CAM table with bogus source addresses; once full, the switch behaves like a hub and the attacker can sniff. ARP poisoning forges IP-to-MAC mappings and does not exhaust the table.
Which actions help prevent VLAN hopping?
- Set user ports to static access mode
- Leave trunk negotiation (DTP) on auto
- Use an unused VLAN as the trunk native VLAN
- Keep VLAN 1 as the native VLAN everywhere
- Shut down unused switch ports
Show answer
Answer: A. Set user ports to static access mode, C. Use an unused VLAN as the trunk native VLAN, E. Shut down unused switch ports
Static access ports remove trunk negotiation (switch spoofing), an unused native VLAN defeats double tagging, and shutting unused ports removes entry points. Leaving DTP on auto or using VLAN 1 natively keeps the weaknesses open.
True or false: DNSSEC protects against DNS poisoning by encrypting DNS queries so eavesdroppers cannot read them.
Show answer
Answer: False
DNSSEC adds digital signatures so a resolver can verify that answers are authentic and unmodified; it does not encrypt queries (that is DoT/DoH).
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
