Definitions:
- A trunk connection is a connection between two switches.
Tools
- Yersinia is a layer 2 modification framework.
- VoIPHopper is a simple tool which can sniff VoIP traffic and output the VLAN ID from the VoIP network:
voiphopper -c 0 -i eth0
Enumerate existing VLANs
- Start Yersinia
yersinia -I - Press g
- Select DTP
- Press 5 to see the status
- Press g
- Select 802.1Q
- The list will update with the detected VLAN IDs.
Create VLAN interface
If you want to communicate within a VLAN, configure your network interface as follows:
modprobe 8021qvconfig add eth0 100
A new ethernet device was created with VLAN id 100 which can be configured normally. For example, request a IP address with
dhclient eth0.100
You can now use the IP address normally. All traffic through this interface will use the VLAN ID you set. To remove it, use
vconfig rem eth0.100
Notes
- Check if there are VoIP VLANs and try them first. Often, e.g. in Cisco networks, VoIP VLANs are open so that each VoIP device can connect to the network directly.
- Start Wireshark/tcpdump
- Filter for the CDP Cisco Discovery Protocol
- Look into the
VoIP VLAN Replyfield, which contains the VLAN ID for the VoIP network.
- There are only 4096 VLAN IDs possible. Therefore, you could also brute-force the VLAN ID by creating eth0.XXXX in a loop, requesting an IP or setting one and then try to ping/connect to your target which should be reachable within the target VLAN you want access to.
Leave a Reply
You must be logged in to post a comment.