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?

Thanks

jskfanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jimmyray7Commented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
0
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, ?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

jimmyray7Commented:
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.
0
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?
0
jimmyray7Commented:
No, you need to do both.  

In the end, what are you trying to accomplish?
0
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)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,
0
jskfanAuthor Commented:
OK... if I understand here is the diagram

vm1  vm2 vm3..................vmX
--Vlan10----------------------------Vlan50
 Vswitch0--------------------------------------------
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???

0
jskfanAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.