Of course, you can create port groups from the CLI of the ESXi hypervisor using the esxcli command:
- Connect to the ESXi server using SSH
- Issue the esxcli network vswitch standard port group add command:
esxcli network vswitch standard portgroup add --portgroup-name=PGname --vswitch-name=vSwitch1
- To specify the VLAN ID of the port group, you can use the set command:
esxcli network vswitch standard portgroup set -p PGname --vlan-id 1234
- Finally, override the configuration of security, teaming, and shaping the policy of the virtual switch:
esxcli network vswitch standard port group policy set