Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NetworkManager (802.3ad) LACP hashing method configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
NismoC32
Apprentice
Apprentice


Joined: 07 Apr 2003
Posts: 214

PostPosted: Thu Jun 24, 2021 3:42 pm    Post subject: NetworkManager (802.3ad) LACP hashing method configuration Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Thu Jun 24, 2021 8:20 pm    Post subject: Reply with quote

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
Code:

man nmcli-examples

_________________
:)
Back to top
View user's profile Send private message
NismoC32
Apprentice
Apprentice


Joined: 07 Apr 2003
Posts: 214

PostPosted: Fri Jun 25, 2021 9:41 am    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum