bonding mode changing automatically between reboots

Tom H tomh0665 at gmail.com
Thu Feb 4 19:58:40 UTC 2016


On Thu, Feb 4, 2016 at 2:28 PM, themadengin33r at gmail.com wrote:
>
> i am running ubuntu 14.04 with interfaces in LACP bonded mode.
>
> cat /etc/network/interfaces.d/ifcfg-bond0
> auto bond0
> iface bond0 inet manual
> bond-slaves eth6 eth8
> bond-mode 802.3ad
> bond-miimon 100
> bond-lacp-rate fast
> bond-updelay 200
> bond-downdelay 200
> bond-ad-select bandwidth
> bond-xmit-hash-policy layer2+3
> post-up sleep 4
>
> But after reboot bonding algorithm changes to Round Robin
>
> cat /proc/net//bonding/bond0
> Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
>
> Bonding Mode: load balancing (round-robin)
> MII Status: up
> MII Polling Interval (ms): 100
> Up Delay (ms): 200
> Down Delay (ms): 200
>
> [snip]
>
> If i reboot again it will change back to LACP that too with out making
> any configuration changes.
>
> modinfo bonding
> [snip]

Have you tried using "4" rather than "802.3ad"?

Even it's only "bond-mode" that's, somehow, not always being set
correctly, have you tried using the following:

pre-up modprobe bonding mode=4 miimon=100 updelay=200 downdelay=200
lacp_rate=1 ad_select=1 xmit_hash_policy=2
pre-up ip l set eth6 master bond0
pre-up ip l set eth8 master bond0
pre-up ip l set up dev bond0
up ip a add <ip-address>/<prefix> dev bond0
post-up ip r add default via <gateway> dev bond0

or running these commands interactively to check whether this is an
ifupdown problem?




More information about the ubuntu-users mailing list