I have a workstation that has 2 NICs and Vmware Workstation 11 installed. I would like to have multiple VMs running on different VLANs at the same time. I know with ESXi I can add different VLAN tags on different switches, but how can I do this on Workstation? Is it even possible to do this? The switchport that the second NIC is patched to is a trunk with the VLANs I need tagged.
Thanks in advance.
Unless it has changed in the past couple of versions, NO, this is not possible with Workstation.
Hate to reply to an old thread, but I spent hours looking for a solution on a VMWare 12 system with a Windows 10 host.
First of all, switching to the vmxnet3 driver gave the option for VLAN tagging in the driver's advanced settings. Just change ethernet0.virtualDev to "vmxnet3" in your VM's .vmx file.
Once that was done, I discovered that you must disable "Priority & VLAN" on the HOST LAN adapter that you are bridging... otherwise it drops all of the packets that contain tags targeting the VM.
Hope this helps someone else!
Hey Confuzed, Please don't hate replying to old posts, just made my day.
It also works with Workstation 11.5
Mine too! :smileygrin:
Wow! Thank you so much. You are such a time saver
Then how should we set VLAN tag in guest OS? I just saw VLANID in device manager-->vmxnet3-->Advanced-->VLANID.
Do we have to set VLANID here? Or we can change it somewhere else? What about other Guest OSes? Like Mikrotik RouterOS? Or Linux? How can I use this valuable feature?
I tried this workaround and it didn't seem to work. I intend to configure VLANs inside the guests.
My setup:
When I send a packet out of the guest vlan20, it seems to work correctly:
However, receiving packets does not work as expected. When I send a packet out of "Remote" (on a VLAN virtual interface "vlan20"):
So it appears that the Intel NIC driver is, for some reason, stripping the VLAN tag, even though the host should know nothing about VLAN 20.
I even tried disabling "Priority & VLAN" and all other offload features, but it made no difference.
You can only do it on the same workstation host if your trying it doing two, I have it working on my workstation esxi lab using Sophos utm. Tagging a bridged interface doesn't seem to work.
A colleague and I figured it out! It turns out the Intel driver was stripping the VLAN out of the frames.
This article explains how to enable "Monitor Mode" for the NIC. Apparently the "VMware Bridge Protocol" operates at the same level as a "sniffer":
My Sniffer Isn't Seeing VLAN, 802.1q, or QoS Tagged Frames
Set "MonitorMode" or "MonitorModeEnabled" (or both if you're not sure!) to "1".
Did you get tags to pass through though to a vm though? I can see the tags on the bridged adapter, but they never make it out or in.