Virtual Machines and VLANs

I have a Virtual ESXI server on a specific subnet and Vlan - I built 2 virual servers one is on the same subnet and vlan the other Virtual Server is not.  How does on handle the seperate VLANS and subnets on a virual box?  Everything is on the same port on the switch.  What does one do?
WellingtonISAsked:
Who is Participating?
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You will need to create at least two new Virtual Machine Network Port Groups

e.g. VLAN22, VLAN23

and then Associated those networks with the VMs, network interface.

and make sure you present a trunk to the ESXi server, with Tagged VLANs, 22 and 23.

Have a look here

Pages 13 - 73 Discuss Networking in Detail, iuncluding trunks, VLANs, switches, and load balancing

ESXi Configuration Guide ESXi 4.1

http://www.vmware.com/pdf/vsphere4/r41/vsp_41_esxi_server_config.pdf

Virtual Networking

http://www.vmware.com/technical-resources/virtual-networking/virtual-networks.html

Virtual Networking Concepts

http://www.vmware.com/files/pdf/virtual_networking_concepts.pdf

http://en.wikipedia.org/wiki/Virtual_LAN

http://en.wikipedia.org/wiki/IEEE_802.1Q
Sample configuration of virtual switch VLAN tagging (VST Mode)

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004074

http://blog.scottlowe.org/2006/04/17/vlans-and-port-groups/

How to Setup VLANs

http://www.vladan.fr/great-kb-on-how-to-configure-vlans-on-vswitches-pswitches-and-vms/

VMware ESX Server 3: 802.1Q VLAN Solutions

http://www.vmware.com/pdf/esx3_vlan_wp.pdf

http://kb.vmware.com/kb/1004127

http://kb.vmware.com/kb/1004074

http://kb.vmware.com/kb/1004252
0
 
BigDeerCommented:
You can tag ports for specific vlans in the vSwitch. You can also configure a trunk within a port group to pass VLAN traffic just like you would to a physical switch - http://wahlnetwork.com/2012/05/07/its-a-trunk-using-portgroup-vlans-with-vsphere/
0
 
WellingtonISAuthor Commented:
OK so basically this has to be done on the switch.  We unfortunately have HP switches not Cisco but I'm sure the same applies.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
WellingtonISAuthor Commented:
this is very confusing but I'll give it a shot.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
which bit, and I'll take you through it step by step....
0
 
WellingtonISAuthor Commented:
I understand how to create the virtual adapter.  Should I use the existing switch or create a new on.  My goal is to take that one server and put it on another VLAN
0
 
WellingtonISAuthor Commented:
Actually I think I got it!  Whew.  I used the existing switch added the VLAN in there and attached it to the VM I wanted it on.  I now have the internet back.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Excellent, any issues, post back...
0
 
Black_FlagCommented:
BIGDEER hit the nail on the head.
0
 
WellingtonISAuthor Commented:
Great Info
0
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.