Scenario :- If we are using N3K and N9K , mostly used teaming policy ip hash , but when we changed NIC/IP its take origination port id.
Try to change it by these command
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 -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)
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"
policy option is iphash