You can use ESXCLI and vicfg-vswitch to set up the vSphere networking.

You can set up your virtual network by performing a set of tasks.


Create or manipulate virtual switches by using esxcli network vswitch or vicfg-vswitch. By default, each ESXi host has one virtual switch, vSwitch0. You can create additional virtual switches or manage existing switches. See Setting Up Virtual Switches and Associating a Switch with a Network Interface.


(Optional) Make changes to the uplink adapter by using esxcli network vswitch standard uplink or vicfg-nics. See Managing Uplink Adapters.


(Optional) Use esxcli network vswitch standard portgroup or vicfg-vswitch to add port groups to the virtual switch. See Managing Port Groups with vicfg-vswitch.


(Optional) Use esxcli network vswitch standard portgroup set or vicfg-vswitch to establish VLANs by associating port groups with VLAN IDs. See Setting the Port Group VLAN ID with vicfg-vswitch.


Use esxcli network ip interface or vicfg-vmknic to configure the VMkernel network interfaces. See Adding and Modifying VMkernel Network Interfaces.