Documentation Index
Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt
Use this file to discover all available pages before exploring further.
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
Double Tagging
Encapsulate frame in two 802.1Q tags. Outer tag matches native VLAN, inner tag is target VLAN.Scapy
Requirements
- Attacker on native VLAN (untagged)
- Switch doesn’t strip outer tag before forwarding
- Target VLAN known
VLAN Enumeration
Wireshark
Nmap
CDP/LLDP
Mitigation
| Defense | Description |
|---|---|
| Disable DTP | switchport nonegotiate |
| Access mode | switchport mode access on all ports |
| Native VLAN | Change from VLAN 1 to unused VLAN |
| VLAN pruning | Only allow needed VLANs on trunks |
Quick Reference
| Attack | Method |
|---|---|
| DTP abuse | yersinia dtp -attack 1 → negotiate trunk |
| Access VLAN | vconfig add eth0 VLAN_ID after trunk |
| Double tag | Scapy: Dot1Q(native)/Dot1Q(target) — one-way only |
| Enumerate | Wireshark vlan filter, CDP/LLDP sniff |