View previous topic :: View next topic |
Author |
Message |
NismoC32 Apprentice
Joined: 07 Apr 2003 Posts: 212
|
Posted: Thu Jun 24, 2021 3:42 pm Post subject: NetworkManager (802.3ad) LACP hashing method configuration |
|
|
I have set up a bonding with two network slaves (eth0 and eth1)
witch is working, but I want to change the default xmit_hash_policy from (0) layer2 to (2) layer 2+3.
Since there is no option for this in nmtui. I have manually changed this by using
echo 2 > /sys/class/net/bond0/bonding/xmit_hash_policy
But I want to make this setting permanently (Survive a reboot) and I'm wondering how this can be done
I have tried adding the following to the /etc/conf.d/net and etc/NetworkManager/conf.d/bond0.conf:
“xmit_hash_policy=2" and "xmit_hash_policy_bond0=2” without any luck
I have tried searching online but haven't found any solution for this on Gentoo using NetworkManager.
Thanks. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3872
|
Posted: Thu Jun 24, 2021 8:20 pm Post subject: |
|
|
Hi
First please do NOT use nmtui.
It is deprecated.
Plz use nmcli instead
Try this
Code: |
nmcli con mod bond0 bond.options "miimon=100 mode=2 xmit_hash_policy=layer2+3"
|
Or add
Code: |
BONDING_OPTS="miimon=100 mode=2 xmit_hash_policy=layer2+3"
|
in the NM bond0 config file.
Also you are mixing netifrc and NM
Plz DONT.
First disable all net.<iface> of netifrc.
Code: |
rc-update delete net.bond0 boot
rc-update delete net.<bond0-slave0> boot
rc-update delete net.<bond0-slave1> boot
|
Finally bonding is deprecated too.
Plz use teaming instead.
https://people.freedesktop.org/~lkundrak/nm-docs/nmcli-examples.html
or
_________________
|
|
Back to top |
|
|
NismoC32 Apprentice
Joined: 07 Apr 2003 Posts: 212
|
Posted: Fri Jun 25, 2021 9:41 am Post subject: |
|
|
Thanks alamahant.
It's a shame that nmtui is deprecated, it was a really fast and easy way of setting up networking
from the command line.
Ohh well I guess I have to familiarize myself with nmcli now.
Anyway i did get xmit_hash setting added.
Gonna look into switching from bonding to team real soon |
|
Back to top |
|
|
|