Use this when attackers try to reach other VLANs via trunk negotiation or double tagging.
VLAN Hopping
VLAN hopping lets an attacker reach other VLANs through switch spoofing (negotiating a trunk via DTP) or double tagging. Disable DTP, set access ports explicitly and use an unused native VLAN.
1. VLAN hopping: switch spoofing (DTP) or double tagging.
2. Disable DTP (switchport nonegotiate), access ports static.
3. Unused native VLAN; tag native VLAN.
4. Shut unused ports.
5. Prune trunks.
attacker → DTP/double tag → other VLAN (blocked)
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show interfaces switchport | include Name|Administrative Mode|Negotiation|NativeVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
show interfaces switchport | include Name|Administrative Mode|Negotiation|Native
show interfaces trunk
show vlan dot1q tag native
Access ports should show Administrative Mode: static access and Negotiation of Trunking: Off; trunks should use an unused native VLAN.
Step 2 Common mistakes Narrow the fault
- Native VLAN 1 and DTP enabled on user ports.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Switch spoofing abuses DTP.
- Double tagging abuses the native VLAN.
- Access ports should never trunk.
show interfaces trunk— trunksshow running-config | include switchport mode|nonegotiate— DTP offshow vlan brief— native VLAN usage
ReferenceWhy it matters1 section · depth on demand
Prevention
interface range GigabitEthernet1/0/1 - 46
switchport mode access
switchport nonegotiate
interface GigabitEthernet1/0/48
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 999
switchport trunk allowed vlan 10,20,30
vlan dot1q tag native
Documented example, not captured output. An unused native VLAN (and no user ports in it) stops double tagging; disabling DTP stops switch spoofing.
ReferenceImportant terms & boundaries2 sections · depth on demand
Attack methods
| Method | How | Fix |
|---|---|---|
| Switch spoofing | Attacker negotiates a trunk with DTP | switchport mode access, switchport nonegotiate |
| Double tagging | Outer tag = native VLAN, inner = target | Native VLAN unused, vlan dot1q tag native |
Double tagging is one-way only and works only when the attacker's access VLAN equals the trunk's native VLAN.
In depth
VLAN hopping lets an attacker send traffic into a VLAN they are not assigned to. Two classic methods exist: switch spoofing (the attacker negotiates a trunk via DTP) and double tagging (a frame with two 802.1Q tags, where the outer tag matches the native VLAN, gets forwarded into the inner VLAN).
Prevention:
interface range Gi1/0/1 - 46
switchport mode access
switchport nonegotiate
switchport access vlan 20
interface Te1/1/1
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 999 ! unused VLAN
switchport trunk allowed vlan 10,20,30
vlan dot1q tag native ! tag native VLAN on trunks (platform-dependent)
Also keep users out of VLAN 1 and the native VLAN, and shut unused ports into a parking VLAN.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Common Attacks → VLAN Hopping. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://attack.mitre.org/techniques/enterprise/ · confidence 94%