Adding VLAN into Vsphere environment

Dear Experts, we are using Vsphere 6.5 and there is only 1 VLAN for all VMs. Now we'd like to add more VLAN into the ESXi hosts. How can we do that? Many thanks!

Environment:
- SAN storage HP MSA2040
- ESXi 6.5 Host: HP Gen9 server
- Core switch Cisco 3750
LVL 4
TjnoNetwork AdministratorAsked:
Who is Participating?
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.

Omar SoudaniSystem Support EngineerCommented:
1
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You first need to ensure the VLAN is configured on the physical switch. Those ports need to be connected/trunked to ESXi host (and vSwitch)

and then add that VLAN Tag number to a virtual machine portgroup.

Please note, that ESXi does not do any VLAN routing, e.g. routing traffic between VLANS, so that needs to be done on your network elsewhere
1

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
TjnoNetwork AdministratorAuthor Commented:
Hi Omar and Andrew, yes the VLAN and routing were already configured on Core switch. Currently our diagram like this:

ESXi host --------------- vlan 55 -------------- Core switch

As my understanding, you are suggesting us to add 1 more trunk cable like this, am I right?

ESXi host --------------- vlan 55 -------------- Core switch
ESXi host --------------- Trunk (vlan 15,25,35,...)  -------------- Core switch


In case I change the settings lile Omar's advise, is it right?
ESXi host --------------- Trunk (vlan 15,25,35,55,...) -------------- Core switch

If we add a port group of VLAN 15 and connection is remain in VLAN55, is it ok with the VM in VLAN55? If we configure the interface (on Switch side) from access mode vlan 55 to Trunk mode, does it affect the VMs? Do we need to change anything in ESXi host?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Make sure ALL vLANs are consistent on the trunk port and connected to two vmnics in host!

These vmnics are connected and active active to vSwitch

Then create your VM portgroups with correct tag and label

Then assign that vm portgroups to VMs via network interface per VM
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
And with ALL network changes it can affect VMs in production if not done correctly!

If unsure stop and complete changes outside service hours!
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
Storage

From novice to tech pro — start learning today.