ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How to create and use VLANs in VMware Workstation

By Vladan SEGET | Last Updated: February 26, 2013

Shares

There is a possibility to setup VLANs in VMware Workstation.

If you're user of VMware Workstation, you usually use one of the 3 basics networking types provided. Bridget, NAT or Host Only. I just stumbled through this KB explaining how to setup VLANs inside of VMware Workstation environment, and especially if you're running several VMs on different hosts as long as the hosts stays connected.

The downside is that you have to add a second physical NIC to each host where you want to use VLANs…

Here are the steps:

01. Power off all virtual machines on your host first.

02. Now you must add a secondary NIC to the host.

03. You now create a virtual switch on the host, by adding a vmnet to the secondary network card.

04. Launch VMware Workstation and go to Edit > Virtual Network Editor.

05. Click vmnet0 and set it to Host Only. (just temporarily)

06. Select vmnet2 or any unused, unresevered vmnet.

07. Set vmnet2 to Bridged To and from the dropdown menu, select the secondary network card that you just added on this host, and click Apply.

08. Click vmnet0, set it to Bridged To, and from the dropdown menu, select Automatic. ( now the secondary NIC is now dedicated to vmnet2, so you don't see it anymore.)  Click Apply and  OK

09. Add the chosen vmnet to your virtual machine.

10. In Workstation, edit the settings for the virtual machine which you want to isolate.

11. In the Hardware tab, click Network Adapter and in the right pane, you must select Custom: Specific Virtual Network and from the dropdown menu, select the vmnet adapter that is mapped to the secondary network card. In our example, it is vmnet2. OK.

12. Power on the virtual machine and assign an IP address within the IP range that you would use for this VLAN. Note: To avoid conflicts and confusions, ensure that this IP range is different from your network's existing DHCP scope.

The virtual machines are now on the same VLAN. To aid connectivity between the machines, you may want to assign them all to the same workgroup or join/bind them to the same domain.

Also related to this setup:

Using the Virtual Network Editor in VMware Workstation (1018697).

Understanding networking types in hosted products (1006480).

Source: KB Article: 1020480

VMware Workstation Team Segments

You could also use a feature available with teams called Team Segments and use isolated networks segments for testing and running VMs in isolated environments too. You can see more about Teams and Workstation in my articles below:

https://www.vladan.fr/vmware-workstation-teams-in-video/

https://www.vladan.fr/vmware-workstation-with-teams-functionality-is-a-really-flexible-and-usefull/

https://www.vladan.fr/why-i-did-not-start-using-teams-earlier/

With team segments you can:

– Isolate a team completely from the host network. A team LAN segment is undetectable and inaccessible from any other network.
– Create a virtual DMZ or proxy server to securely bridge the team members to the outside network.
– Allow specific network bandwidth and packet loss to each virtual machine on the team.
– Connect all team members fully to host resources

Shares
2.3/5 - (6 votes)

| Filed Under: Desktop Virtualization Tagged With: VLANs, VMware Workstation 7.1

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Sam says

    January 11, 2016 at 4:49 am

    This might have been helpful if it had anything whatsoever to do with VLANs instead of just creating a second bridged vmnet

  2. Dan No says

    December 20, 2016 at 11:09 pm

    Yes, this is just different IP subnet. Nothing about VLAN-tagging on existing subnet.

  3. Aruna says

    July 6, 2017 at 12:40 am

    Please Anyone help me

    I am having Vmware workstation running in Windows 7 and guest Debian 8.8 is running in Vmware
    I have created multiple Vlan inside guest (Debian 8.8) using the below settings in /etc/network/interfaces

    auto eth10g
    iface eth10g inet static

    auto eth1g
    iface eth1g inet static
    address 172.17.3.2
    netmask 255.255.0.0
    post-up ip rule add from 172.17.3.2 lookup rt1g priority 100
    post-up ip route add 172.17.0.0/16 dev eth1g table rt1g

    auto vlan10
    iface vlan10 inet manual
    address 172.17.3.160
    netmask 255.255.0.0
    vlan-raw-device eth10g

    auto vlan20
    iface vlan20 inet manual
    address 172.29.55.160
    netmask 255.255.255.0
    vlan-raw-device eth10g

    auto vlan21
    iface vlan21 inet manual
    address 172.16.32.1
    netmask 255.255.255.0
    vlan-raw-device eth10g

    auto br-sec
    iface br-sec inet static
    address 172.17.3.1
    netmask 255.255.0.0
    bridge_ports eth10g vlan10
    bridge_stp off
    bridge_maxwait 0
    bridge_fd 0

    auto br-gx0
    iface br-gx0 inet static
    address 172.29.55.160
    netmask 255.255.255.0
    bridge_ports vlan20
    bridge_stp off
    bridge_maxwait 0
    bridge_fd 0

    auto br-gx1
    iface br-gx1 inet static
    address 172.16.32.1
    netmask 255.255.255.0
    bridge_ports vlan21
    bridge_stp off
    bridge_maxwait 0
    bridge_fd 0

    I am unable to ping vlan20 and vlan21 from Windows. Can anyone help me with this

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in