I have just upgraded to Rocky Linux 9 and haven't been able to set the nic bond Transmit Hash Policy to 1. I'm using NetworlManager rather than the ifcfg files which is used by default in EL9.
I have tried the following steps: #sysctl -w net.ipv4.fib_multipath_hash_policy=1 #cat /proc/net/bonding/nm-bond | grep Hash Transmit Hash Policy: layer2 (0)
Also: #echo 1 > /proc/sys/net/ipv4/fib_multipath_hash_policy #cat /proc/net/bonding/nm-bond | grep Hash Transmit Hash Policy: layer2 (0)
Also: #nano -w /etc/sysctl.d/99-sysctl.conf Then added: net.ipv4.fib_multipath_hash_policy=1 And rebooted Regardless It seems ot be stuck at Layer2 (0)
But I do get is working with: #echo 1 > /sys/class/net/nm-bond/bonding/xmit_hash_policy
cat /proc/net/bonding/nm-bond | grep Hash
Transmit Hash Policy: layer3+4 (1) However, the setting isn't persistent through reboots.
What is the proper way to do this in EL9?
Thank you