Skip to content

Instantly share code, notes, and snippets.

@shaneramey
Created October 7, 2014 18:28
Show Gist options
  • Save shaneramey/07370280f189d1df62d2 to your computer and use it in GitHub Desktop.
Save shaneramey/07370280f189d1df62d2 to your computer and use it in GitHub Desktop.
Getting 802.1Q VLANs to work with VMWare
Here’s how to create multiple VLANs on a Linux machine running on a VMWare server. I did this to run arpwatch to monitor IP conflicts on our LAN. Be sure not to send any traffic out these interfaces unless you intend it to broadcast to all attached NICs.
In VMWare:
1) Click on the server root node, and choose the Configuration tab
2) Select the properties for the NIC that you want to use VLAN tagging on
3) Select Edit to enable Promiscuous Mode
Then in Linux:
4)
# First bring up interface
ip link set eth1 up
# Add VLAN tagged interfaces
ip link add link eth1 name vlan6 type vlan id 6
ip link set vlan6 up
ip link add link eth1 name vlan22 type vlan id 22
ip link set vlan22 up
ip link add link eth1 name vlan23 type vlan id 23
ip link set vlan23 up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment