Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

VLAN Hopping

Direct answer

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.

When to use this

Use this when attackers try to reach other VLANs via trunk negotiation or double tagging.

First 30 seconds

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.

Operational verification

attacker → DTP/double tag → other VLAN (blocked)

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Incident response and forensics
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIncident response and forensics
Key commandshow interfaces switchport | include Name|Administrative Mode|Negotiation|Native
Scope / prerequisiteUse this when attackers try to reach other VLANs via trunk negotiation or double tagging.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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
Evidence references

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.

observation · 1
Key points
  • Switch spoofing abuses DTP.
  • Double tagging abuses the native VLAN.
  • Access ports should never trunk.
Key checks
  • show interfaces trunk — trunks
  • show running-config | include switchport mode|nonegotiate — DTP off
  • show 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

MethodHowFix
Switch spoofingAttacker negotiates a trunk with DTPswitchport mode access, switchport nonegotiate
Double taggingOuter tag = native VLAN, inner = targetNative 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIncident response and forensics current

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%
Confirmation

Confirm action

Continue?