VMware Cloud Community
Sean67
Contributor
Contributor

One vSwitch Multiple VLans

Hi All,

This may seem a stupid question but I don't know the answer.

My site has has 2 vlans and we have guests on both. Each host has 6 vmnics in total, 3 are connected to one vlan and 3 to the other.

Then we have VM port groups for each vlan with the guests connected to the relevant corresponding network.

Would I be able to create a virtual machine port group that I just call "VM Network" that has all 6 vmnics assigned irrespective of vlan and then have all the guests on each vlan in that one VM port group?

Thanks,

Sean

5 Replies
rcporto
Leadership
Leadership

Not sure if I understand what you want achieve, but you can create a single virtual switch, let's call it vSwitch0 with 6 vmnics active on that virtual switch and with the physical switch port where these vmnic are connected are configured as trunk port (allowing traffic from multiple VLANs). Inside that vSwitch0 you can create multiple port groups, let's call it PGVLAN10 and PGVLAN20, and for virtual machines that needs connectivity with VLAN 10 just connect them to PGVLAN10, and virtual machines from VLAN 20 just connect them to PGVLAN20. Of course for port group PGVLAN10 you must assign the VLAN ID 10 on port group settings and for PGVLAN20, assign the VLAN ID 20.

Let me know if you have any additional question.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
vasan22in
Enthusiast
Enthusiast

Hi Sean67,

If I understand question correctly..

Multiple VLAN configuration into one port group is not possible. The scenario here is you can create one vswitch or dvs create multiple VM port groups with VLAN configuration, if you want to separate traffic to vmnics. You need to assign 3 vmnic into each VM port group, this can be achieve in edit port group and NIC Teaming column.

Thanks,

Srini

Please consider marking this answer "correct" or "helpful" if you think your query have been answered correctly. Thanks, Srini
depping
Leadership
Leadership

Sure you can do this: Give the portgroup the VLAN ID 4095. This is called Guest VLAN Tagging. It also means that within your VM you will need to configure the Guest OS in such a way that it has the correct VLAN ID specified.

RAJ_RAJ
Expert
Expert

Hi ,

By using Virtual Guest Tagging option you can configure this .

Refer Below  guide for details.

https://docs.vmware.com/en/VMware-vSphere/6.5/vsphere-esxi-vcenter-server-65-networking-guide.pdf

RAJESH RADHAKRISHNAN VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335 Mark my post as "helpful" or "correct" if I've helped resolve or answered your query!
0 Kudos