Skip to main content

Overview

VLAN hopping allows attacker to access traffic on other VLANs without routing. Two main techniques: switch spoofing (DTP) and double tagging.

Switch Spoofing (DTP Abuse)

Negotiate trunk port with switch via DTP.

Yersinia

Manual with Scapy

After Trunk Established

Or manually:
Now can reach hosts on VLAN 100.

Double Tagging

Encapsulate frame in two 802.1Q tags. Outer tag matches native VLAN, inner tag is target VLAN.
One-way only — no return traffic. Useful for blind attacks (e.g., injecting into target VLAN).

Scapy

Requirements

  • Attacker on native VLAN (untagged)
  • Switch doesn’t strip outer tag before forwarding
  • Target VLAN known

VLAN Enumeration

Wireshark

Look for 802.1Q tagged frames to identify VLANs.

Nmap

CDP/LLDP


Mitigation


Quick Reference