CompTIA Network+ N10-009 · Network Security · medium

An attacker attempts a VLAN Hopping (Double-Tagging) attack by sending an Ethernet frame with two 802.1Q VLAN tags (an outer tag matching the trunk's untagged Native VLAN 1 and an inner tag for the restricted Finance VLAN 50). When the first switch strips the outer Native VLAN 1 tag and forwards the frame across the trunk link, the second switch reads the inner tag and delivers the frame into VLAN 50. Which best practice mitigates Double-Tagging VLAN Hopping?

Published · Last updated · checked before publication — how we verify questions

Options

  • AAssign all user workstations and servers to VLAN 1 and leave the trunk Native VLAN as 1
  • BEnable Dynamic Trunking Protocol (DTP) in desirable mode on all conference room wall jacks
  • CChange the trunk Native VLAN to an unused VLAN ID and force user ports to access modeCorrect answer
  • DReduce the switch's 802.1Q tag EtherType field from 0x8100 to 0x0806 (ARP)

Answer: C. Change the trunk Native VLAN to an unused VLAN ID and force user ports to access mode

Double-tagging VLAN hopping only works when the attacker's access port belongs to the same VLAN ID as the trunk link's untagged Native VLAN (by default, VLAN 1). To prevent it: (B) change the Native VLAN on all trunk ports to an unused, dedicated dummy VLAN ID (e.g., VLAN 999) that has no access ports assigned to it, (C) prune VLAN 1 from trunks, and (D) explicitly configure user ports as switchport mode access with switchport nonegotiate (or tag the native VLAN on trunks).

Why the other options are wrong

  • A. Assign all user workstations and servers to VLAN 1 and leave the trunk Native VLAN as 1 — Putting users in the same VLAN as the trunk Native VLAN (VLAN 1) is the exact precondition that enables double-tagging VLAN hopping.
  • B. Enable Dynamic Trunking Protocol (DTP) in desirable mode on all conference room wall jacks — Enabling DTP on user ports allows an attacker to negotiate a full 802.1Q trunk directly (Switch Spoofing).
  • D. Reduce the switch's 802.1Q tag EtherType field from 0x8100 to 0x0806 (ARP) — Changing the IEEE 802.1Q EtherType (0x8100) to 0x0806 breaks all VLAN trunking.

All Network Security questions and the topic overview →

CompTIA and Security+ are trademarks of the Computing Technology Industry Association. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by CompTIA.