Recommended Posts

Hi All, 

 

I would like to be able to connect a VM to a tagged VLAN without the host machine being connected to that VLAN. 

 

My machine only has one NIC and all the networks I connect to are tagged VLANs associated with that NIC. 

 

If I add the tagged VLAN to the NIC I can connect the VM to that network correct however my machine is then in that network as well. 

 

Does anyone know if this is possible? I really hope that makes sense! 

 

Thanks in advance. 

Well the connection to your machines nic would have to be trunked for starters. The switch port your currently connected to is most likely access and only allows the vlan your physical nic is in.

Hi BudMan, 

 

The port that my NIC is in, is tagged in both of the VLANS. I can bring up the VLAN on my machine and connect my VM to it no problem, however I don't want my machine to be in that lan for various reasons. 

So port is trunked already and allows both, ok.

So in workstation can you tag say a vswitch like you can in esxi?

post-14624-0-13920000-1385477606.png

What virtual nic do you have setup, vmxnet3 should allow for vlan ID right on the nic

post-14624-0-76985800-1385477661.png

From a quick google with workstation it seems you need to make map it in network correctly, and you might have to uncheck deterministic or other options on the vm nic to see it in the mapping, check out this article

http://brandonjcarroll.com/blog/using-vlans-with-vmware-workstation

Hi Budman, 

 

You can't change the VLAN tagged on the vswitch like ESXi, I was hoping the same thing. 

 

I've had a look at the article but that would still put my machine in that LAN. For I've removed everything from the networking selection (unticked Internet Protocol Version 6 etc.) which looks like I can't connect to that network, and nothing from that network can connect to my machine, but the VM is working fine. I think this will work ok for now. 

 

Thank you Budman. 

Your physical nic is going to require the ability to add multiple vlan tags - as per the article, then can create different virtual networks and match them up with the specific vlans you want to run your vms on.

You might be able to get away with juts putting the tag on the virtual nic on your vm and bridging it to your physical nic that is in a different vlan.

That article shows how to run different vms under different vlans, ie more than 1 can be done. Your just needing 1 I take it - but still applies. What is the actual physical nic you have in your machine.. Does it it support the advanced features like multiple vlan tags on it?

My NIC is an Intel 82579LM and yes it does support VLAN tagging. That's how I'm currently doing it. When you add a new Tagged VLAN it created a new adaptor which needs to be enabled for you to use it via VMware workstation. 

 

I didn't have a problem getting the VM into the VLAN, the problem is I don't want my physical machine in that VLAN at all but it seems to be working correctly now. 

I think that is all you can do evoman91 - just untick the un-needed protocols and services in the properties of the virtual adapter like you said. It seems a bit of a messy way to do it though, don't you think? 

  • 1 year later...

After creating your vlan interfaces, then creating your VMware workstation bridge to the new adapters, go into the local adapter and disable ipv4 and ipv6.  Your computer will not have access via ipv4 n'or 6 to communicate on that network, but your vmware workstation will still be able to bridge over that nic to the vlan and IT has IPv4 or 6 and will function just fine.  So again... vmware workstation nic, IPv4 is left on and alone, Local PC nic that it's bridging through has NO IPv4 or 6 enabled.  Therefore, no local computer access.

This topic is now closed to further replies.
  • Posts

    • Ridiculous claim that the labor cost difference of $6000 annually would increase cost per phone by $200. The employees produce 3 phones per month or what?
    • Sparkle 2.20.1 by Razvan Serea Sparkle is a free, open-source Windows optimization tool designed to make your PC faster, cleaner, and more private. With Sparkle, you can easily debloat Windows by removing unnecessary apps and services, disable Microsoft tracking to enhance privacy, and apply performance tweaks to boost speed. Its cleaner removes junk and temporary files, while every change is safe and fully reversible. Sparkle also features a modern, user-friendly interface with automatic updates, making system maintenance simple. Explore over 39 tweaks, from disabling telemetry and hibernation to optimizing network and game settings, all aimed at customizing and enhancing your Windows experience. Sparkle supports Windows 10 and 11. Sparkle 2.20.1 changelog: You can now change the Animation Direction from Up, Left, or Off. Added configurable animation direction (Up, Left, Off) for improved accessibility Added TTL caching to the system info backend Refactored tweak application flow to await NvidiaProfileInspector Improved IPC listener cleanup to correctly remove specific listeners Fixed online status not updating after successful network requests Updated system info tests to support backend caching Removed electron-toolkit utils dependency in favor of internal is.dev helper Fixed unwanted files and folders being included in application bundles Download: Sparkle 2.20.1 | Portable | ~100.0 MB (Open Source) Links: Sparkle Website | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Never used the G7 Pro, but I've never had a good experience with that style of d-pad and fighting games.
    • And I just bought a seat cushion for my mesh chair. The chair feels nice but the first time I sat in it with boxers, I realized I don't like the feel of mesh on my legs. 😂
    • "This Dell 27 inch 4K 120Hz IPS monitor is really cheap after a very long time" ... Lol.
  • Recent Achievements

    • One Month Later
      JKR earned a badge
      One Month Later
    • Dedicated
      Asgardi earned a badge
      Dedicated
    • Conversation Starter
      jessse3334 earned a badge
      Conversation Starter
    • Reacting Well
      JuvenileDelinquent earned a badge
      Reacting Well
    • One Month Later
      Excellence2025 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      495
    2. 2
      +Edouard
      248
    3. 3
      PsYcHoKiLLa
      154
    4. 4
      Steven P.
      84
    5. 5
      macoman
      64
  • Tell a friend

    Love Neowin? Tell a friend!