Okay.
I have checked my conf files, i had used some examples found on Ubuntu website.

For ifupdown:
https://help.ubuntu.com/community/UbuntuBonding#Descriptions_of_bonding_modes

For nplan:
https://insights.ubuntu.com/2017/07/05/quick-and-easy-network-configuration-with-netplan
https://insights.ubuntu.com/2017/12/01/ubuntu-bionic-netplan
I saw that i MUST define something at nic level:
Error in network definition //etc/netplan/01-netcfg.yaml line 13 column 9: 
bond0: interface eno1 is not defined

I do some other tests.
This config does not work:
auto eno3
 iface eno3 inet manual
 bond-master bond1

auto eno4
 iface eno4 inet manual
 bond-master bond1

auto bond1
 iface bond1 inet manual
 bond-slaves eno3 eno4
 bond-mode 802.3ad
 bond-miion 100
 bond-lacp-rate fast
 bond-xmit_hash_policy layer2+3

Error =>
"bondX: Warning: No 802.3ad response from the link partner for any adapters in 
the bond"
"Slave Interface: enoxx
MII Status: down"

I do some changes: removing bond parameters from e/n/i, unload bonding
modules and put module parameters in "modprobe"

/e/n/i (note that you MUST configure nic)
auto eno3
 iface eno3 inet manual
 bond-master bond1

auto eno4
 iface eno4 inet manual
 bond-master bond1

auto bond1
 iface bond1 inet manual
 bond-slaves eno3 eno4

/etc/modprobe.d/netcf.conf:
alias bond0 bonding
alias bond1 bonding
options bonding mode=4 lacp_rate=1 xmit_hash_policy=2 miimon=100 downdelay=200 
updelay=200

It WORKS !!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1753431

Title:
  bonding does not works

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1753431/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to