Creating a new port group from ESXi CLI

Of course, you can create port groups from the CLI of the ESXi hypervisor using the esxcli command:

  1. Connect to the ESXi server using SSH
  2. Issue the esxcli network vswitch standard port group add command:
esxcli network vswitch standard portgroup add --portgroup-name=PGname --vswitch-name=vSwitch1
  1. 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

  1. Finally, override the configuration of security, teaming, and shaping the policy of the virtual switch:
esxcli network vswitch standard port group policy set
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.36.192