Virtual machine port groups provide networking for virtual machines.


Log in to the vSphere Client and select the host from the inventory panel.


Click the Configuration tab and click Networking.


Select the Virtual Switch view.

vSwitches appear in an overview that includes a details layout.


On the right side of the page, click Add Networking.


Accept the default connection type, Virtual Machines, and click Next.


Select Create a virtual switch or one of the listed existing vSwitches and the associated physical adapters to use for this port group.

You can create a new vSwitch with or without Ethernet adapters.

If you create a vSwitch without physical network adapters, all traffic on that vSwitch is confined to that vSwitch. No other hosts on the physical network or virtual machines on other vSwitches can send or receive traffic over this vSwitch. You might create a vSwitch without physical network adapters if you want a group of virtual machines to be able to communicate with each other, but not with other hosts or with virtual machines outside the group.


Click Next.


In the Port Group Properties group, enter a network label that identifies the port group that you are creating.


The network label can contain up to 63 characters.

Use network labels to identify migration-compatible connections common to two or more hosts.


(Optional) If you are using a VLAN, for VLAN ID, enter a number between 1 and 4094. If you are not using a VLAN, leave this blank.

If you enter 0 or leave the option blank, the port group can see only untagged (non-VLAN) traffic. If you enter 4095, the port group can see traffic on any VLAN while leaving the VLAN tags intact.


Click Next.


After you determine that the vSwitch is configured correctly, click Finish.