VMware vSphere

 View Only
  • 1.  One vSwitch Multiple VLans

    Posted Aug 17, 2017 04:52 PM

    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



  • 2.  RE: One vSwitch Multiple VLans

    Posted Aug 17, 2017 08:06 PM

    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.



  • 3.  RE: One vSwitch Multiple VLans

    Posted Aug 18, 2017 05:58 AM

    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



  • 4.  RE: One vSwitch Multiple VLans

    Posted Aug 20, 2017 10:14 AM

    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



  • 5.  RE: One vSwitch Multiple VLans

    Broadcom Employee
    Posted Aug 18, 2017 07:34 AM

    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.



  • 6.  RE: One vSwitch Multiple VLans

    Broadcom Employee
    Posted Aug 18, 2017 07:36 AM