To change the load balancing policy on an ESXi 5.x standard vSwitch, run this command:
esxcli network vswitch standard policy failover set -l iphash -v vSwitch0
for the portgroup, run this command:
esxcli network vswitch standard portgroup policy failover set -p "Management Network" -l "iphash"
On ESXi 5.x,
- To change the load balancing policy to a route based on the originating virtual port ID, run this command:
esxcli network vswitch standard policy failover set -l portid -v vSwitch0
- To change the load balancing policy to a route based on the MAC hash, run this command:esxcli network vswitch standard policy failover set -l mac -v vSwitch0
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 vSwitchXFor example, to set the NIC teaming policy of a vSwitch to IP hash:
# esxcli network vswitch standard policy failover set -l iphash -a uplink=vmnic0,vmnic4 -v vSwitch0Note: 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)
No comments:
Post a Comment