To Set the NIC teaming policy on a Virtual Switch on an ESXi 5.x
- To list the current NIC teaming policy of a vSwitch, use the command:
# esxcli network vswitch standard policy failover get -v vSwitch0
- To set the NIC teaming policy of a vSwitch, use this command:
# esxcli network vswitch standard policy failover set -l policy -v vSwitchX
For example, to set the NIC teaming policy of a vSwitch to IP hash:
# esxcli network vswitch standard policy failover set -l iphash -v vSwitch0
Note: Available Policy Options:
- explicit = Use explicit failover order
- portid = Route based upon port id (This is the Default setting)
- mac = Source Based Upon MAC Hash
- iphash = Source based up IP hash (This is only to be used in a etherchannel\Portchannel)
To Set the NIC teaming policy on a Port Group
- To list the current NIC teaming policy of a port group, run this command:
esxcli network vswitch standard portgroup policy failover get -p "Management Network"
- To set the NIC teaming policy of a port group, run this command:
esxcli network vswitch standard portgroup policy failover set -p "Management Network" -l "Policy Options"
To monitor and manage NIC teaming policies in previous versions of ESXi/ESX
- To configure NIC teaming on a chosen port group in ESXi/ESX 4.1, use the command:
vim-cmd hostsvc/net/portgroup_set --nicteaming-policypolicy_namevswitchportgroup_name
- To confirm your changes, run the command:
- In ESXi/ESX4.1:
- vim-cmd hostsvc/net/vswitch_setpolicy --nicteaming-policy policy vSwitch
- In ESXi/ESX 4.0:
- vimsh -n -e "hostsvc/net/vswitch_info vSwitch0" | grep policy