This issue may occur if the calculated hash returns the same result based on the source IP and both destination IP's.
To resolve this issue, use this example to manually calculate the IP-Hash with the IP's you are using to help you choose 2 target IP's that utilize both uplinks on the vSwitch.
To convert the NFS IP addresses to Hex:
-
Use any online IP Hex Converter tool to convert the IP addresses to Hex.
This is an example we used a vSwitch with 2 uplinks, EtherChannel and IP-Hash:
Links = 2 (0 and 1)
VMKnic 10.0.0.10 = 0xa00000a
NFS1 10.0.0.20 = 0xa000014
NFS2 10.0.0.22 = 0xa000016
-
Use the following IP-Hash formula to calculate the outbound uplink:
VMKnic > NFS1 (0xa00000a Xor 0xa000014 =1E) % 2= 0
VMKnic > NFS2 (0xa00000a Xor 0xa000016 =1C) % 2= 0
-
On any scientific calculator, select Hex and Qword.
-
Enter the VMKnic IP in HEX format (a00000a) and click Xor.
-
Enter NFS1 IP in HEX format (a000014) and click =.
-
Press Mod, press 2 for the number of uplinks, then click =. The result is 0.
-
Repeat steps a-e, using the NFS2 IP (a000016) in step c. The result is also 0.
IP-Hash chooses the first uplink in the team because they both have result of 0.
To ensure that IP-Hash balances outbound traffic:
- Change the IP for NFS2 from 10.0.0.22 to 10.0.0.21.
-
Use any online IP Hex Converter tool to convert the IP addresses to Hex.
For example:
Links = 2 (0 and 1)
VMknic 10.0.0.10 = 0xa00000a
NFS1 10.0.0.20 = 0xa000014
NFS2 10.0.0.21 = 0xa000015
-
Use the following IP-Hash formula to calculate the outbound uplink:
VMKnic > NFS2 (0xa00000a Xor 0xa000015 =1F) % 2= 1
-
On any scientific calculator, select Hex and Qword.
-
Select Hex and Qword.
-
Enter the VMKnic IP in HEX format (a00000a) and click Xor.
-
Enter NFS2 IP in HEX format (a000015) and click =.
-
Press Mod, press 2 for the number of uplinks, then click =. The result is 1.
Now the IP-Hash algorithm returns a different result. IP-Hash now balances the outbound traffic across both vSwitch uplinks.