Note: Before you begin, see Restarting the Management agents on an ESX or ESXi Server (1003490) for important information on restarting the management service.
In this example, the physical switch is set to use for static port-channel / EtherChannel and IP hash, set load balance policy using the command line interface.
- Check the current vSwitch settings, run the command:
esxcfg-vswitch -l
esxcli network vswitch standard list
-
Check the current uplink, run the command:
esxcli network vswitch standard list -v vSwitchX
-
Add an uplink with the command:
esxcli network vswitch standard uplink add -u vmnic0 -v vSwitchX
-
Verify teamed uplinks with the command:
esxcli network vswitch standard policy failover get -v vSwitchX
esxcli network vswitch standard portgroup policy failover get -p "Management Network"
-
Set load balancing policy. The options are:
-
Restart the management service with the command:
/etc/init.d/hostd restart
/etc/init.d/vpxa restart
-
Ping the gateway to confirm connectivity:
ping x.x.x.x