Vmware Vlans

In Vmware ther is a way to create Vlans or private Vlans(in some versions), but  for instance when you create vlans 10,20,30,40,50,etc.. in Vmware , the traffic of these Vlans will go through vmnic (physical adapter of ESX) and the vmnic is connected to a physical Cisco switch port.
- How would this physical Cisco switch port be configured ? as a Trunk port or Access port?
-Do we need to create Vlans 10,20,30,40,50,etc.. on the Physical Cisco switch too?


Who is Participating?
jimmyray7Connect With a Mentor Commented:
The Cisco (or other physical) switch port will be a trunk.  That port needs to be configured for each VLAN that will pass over it.
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yes, you need to create trunk ports, on the trunk port you specify which VLANs will pass down this  trunk, and you also need to configure the switches for the VLANs you require.
jskfanAuthor Commented:
do you mean I can configure the switch port as a trunk port even though it is connected to ESX Network adapter?
we usually connect switch trunk port to another switch trunk port.

Also why would I create the same vlans 10 20 30 40 50 that are in the vmware ,   on the physical switch too, ?
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

The ESX physical NIC is acting like a trunk, tagging all the VLANs leaving the interface.  It's the same behavior as a trunk between two switches.

The switch needs to be aware of the VLANs, otherwise it won't know what to do with the tagged traffic.
jskfanAuthor Commented:
<<<The switch needs to be aware of the VLANs, otherwise it won't know what to do with the tagged traffic.>>>
if I understand what you are saying, you specify at the switch trunk port which vlans (coming from the vmnic) are allowed to go through the trunk port.
you don't create those vlans on the cisco physical switch. correct?
No, you need to do both.  

In the end, what are you trying to accomplish?
jskfanAuthor Commented:
<<In the end, what are you trying to accomplish? >>

I want to know how to configure VMs in different Vlans, but able to talk to each other.
Andrew Hancock (VMware vExpert / EE MVE^2)Connect With a Mentor VMware and Virtualization ConsultantCommented:
If you want VLANs to be able to "talk" to each other, you must have a layer 3 switch, and setup VLAN routing on the switch outside of ESX,
jskfanAuthor Commented:
OK... if I understand here is the diagram

vm1  vm2 vm3..................vmX
vmnic0-----------connected to vswitch0
vmnic0-----------connected to a trunk port of L3 Cisco switch
Portx on cisco switch configured as Trunk port and configured to allow vlan10....vlan50
how do you take the configuration from there???

jskfanAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.