1. Knowledge base
  2. Networking
  3. VLAN tagging on VMware

VLAN tagging on VMware

Updated on 19 December 2019 2 min read Snel.com support team

Introduction

Adding additional IP addresses from different ranges will require you to set up VLAN tagging (IEEE 802.1Q networking standard). Our switches support mixed modes i.e. you can have untagged traffic in your main VLAN and tagged traffic in additional VLANs.

In this example, our main VLAN is 453 with range 89.207.131.0/24 and our additional VLAN is 3014 with range 77.95.230.0/24. Because of the mixed setup traffic on our main VLAN can be untagged so we decide not to change anything on the main VLAN.

After the setup on the network switch has been done (contact our support to have that setup) you should add the additional VLAN to your networking setup.

Prerequisites

  • Login details to vSphere Client.

Log in to vSphere Client

Log in to your vSphere Client.

Adding additional VLAN

Add additional VLAN to Network configuration.

VLAN-tagging-on-VMware-01

Click on the “Configuration” tab, “Networking” then “Add Networking…”

VLAN-tagging-on-VMware-02

The “Add Network Wizard” should show, select “Virtual Machine” as Connection Type and click on Next:

VLAN-tagging-on-VMware-03

Select “Use vSwitch0” and click Next:

VLAN-tagging-on-VMware-04

Give an appropriate name as “Network Label”, we use 77.95.230.0/24 so we know which IP addresses belong to this network. Give the corresponding VLAN ID of that network (if unsure ask our support), in our example 3014, click on Next:

VLAN-tagging-on-VMware-05

On the Summary screen check your settings and click on Finish:

Selecting the appropriate network

Select the appropriate network when adding or updating settings of VM.

VLAN-tagging-on-VMware-06

After creating your additional network you can use an IP address from that VLAN when you select that network when creating a VM. For an existing VM click on the VM, click on the “Summary” tab, click on “Edit Settings”:

VLAN-tagging-on-VMware-07

On the Virtual Machine Properties screen go to “Network adapter 1” and select the appropriate “Network label” under “Network Connection”:

Setting up your VM

Set up your VM as usual. After setting up your hypervisor correctly you shouldn’t do anything special on your VM. The VM network settings should be set up as usual and you should not be doing VLAN tagging on the VM because the hypervisor will take care of that.

Conclusion

Congratulations, you have successfully tagged VLAN on VMware.

Was this article helpful?

Spot a mistake in this article? Email us at support@snel.com

This article was last checked on 19 December 2019. · 6,668 views

Your own VPS online within 2 minutes

Windows or Linux, root access and hosted in Rotterdam.

View VPS from € 6.99

Support

Can't figure it out? We are happy to help

You always talk to a real engineer. We typically respond within 15 to 30 minutes, and 24/7/365 for outages.

Call us

+31 88 3 088 099

Create a ticket

Through the client area we immediately see which service it is about.

Email us

Send your question via the contact form, also outside office hours.