Solved

VLAN setup in VMware Esx4

Posted on 2012-03-14
6
731 Views
Last Modified: 2012-03-26
We have 3 VMware servers running in a cluster using Virtual Center. They all run ESX 4.0. They each have two network cards. One attaches to our Procurve switch in the normal network and the other attaches to the Procurve switch on a special test VLAN. We have a Cisco router that currently manages traffic to/from this VLAN.

That test VLAN doesn't get much use so Ihate wasting an entire gig network card for that limited traffic. I'd like to avoid dedicating that nic just to that traffic.

My question is :
I know I can set up a virtual switch in Virtual Center that tags traffic for our test VLAN. Can I take those VMware hosts and plug them into the regular user network and just rely on VMware to tag that traffic for the VLAN? Can I just add both VLANS to the physical ports on the Procurve VMware hosts plug into and let the VLAN tags applied to the packets by the virtual switch manage which traffic is normal-network/VLAN?  
I am trying to avoid tying up a whole NIC for just the light traffic that is needed for that VLAN.

Please let me know if I need to clarify anything.
0
Comment
Question by:JasonLattin
  • 4
  • 2
6 Comments
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
The VMware server will only TAG the traffic, that you create a Virtual Network Portgroup and a TAG for.

So if you have a trunk carry VLAN 6 and VLAN 7, and the default VLAN for the TRUNK is VLAN 5.

Create a Virtual Network Portgroup for VLAN 6 and VLAN 7, traffic will be tagged.

UNTAGGED traffic will flow on the default VLAN on the trunk.
0
 

Author Comment

by:JasonLattin
Comment Utility
@hanccocka
OK. So I went into vSwitch0 and I created a Port Group called TESTVLAN and have it tag the traffic for that VLAN6.  I can see that TESTVLAN as a drop-down for my virtual network cards now.
Do I need to do anything on the physical switch that VMware host is plugged into? Do I need to add both VLANs to those ports on the physical Procurve switch or will it know to route the traffic because of the packet tagging?

I attached a picture if it helps.Proposed VMware setup.
0
 

Author Comment

by:JasonLattin
Comment Utility
See if this image is more accurateProposed design with more details.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
ESX/ESXi is rather dumb all it does is add the 802.1Q TAG to the traffic leaving that Virtual Machine Portgroup entering the Virtual Switch, and onto the physical NIC.

Once it enters the physical switch, the physical switch needs to indentify the packet and tag!

So if you are using VLAN and Tags, you will need to configure VLANs on your switches and switch ports.
0
 

Author Comment

by:JasonLattin
Comment Utility
OK. I will try that out. I've verified that the PortGroup config you recommended works as we'd hoped from a design perspective. i can assign a VM to that TESTVLAN network. i'll need to schedule a maintenance window this week to test the switch changes for the VLAN stuff.

I'll mark it as correctly answered after I've tested the setup.

Thank you for the quick and detailed responses. If this works I'll be extremely happy.
0
 

Author Closing Comment

by:JasonLattin
Comment Utility
Creating the Port Groups worked like a charm. I created the Port Groups and added the VLANs to the ports on the switch as needed so that the port on the switch had the default port group and the other VLAN as well. It all works as we'd hope.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now