Virtual machine port groups provide networking for virtual machines.


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


Select the host in the inventory pane.


Click the Configuration tab and click Networking.


Select the vSphere Standard Switch view.

Standard switches 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 vSphere standard switch or one of the listed existing standard switches and the associated physical adapters to use for this port group.

You can create a new standard switch with or without Ethernet adapters.

If you create a standard switch without physical network adapters, all traffic on that switch is confined to that switch. No other hosts on the physical network or virtual machines on other standard switches can send or receive traffic over this standard switch. You might create a standard switch 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.

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 switch is configured correctly, click Finish.