[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: preseed install on bond link with LACP (802.3ad)





On Tuesday, April 26, 2016 9:40 PM, Sven Hartge <sven@svenhartge.de> wrote:

ifenslave is nothing more than a shell script, putting some values into
/sys/class/net/bond0/bonding/slaves, no need to install the whole
package. That script is 120 lines long and 90% are error checking, help
text and licensing stuff.

Just load the bonding module and do something like

for slave in eth0 eth1
  ip link set $slave down
  echo "+$slave" > /sys/class/net/bond0/bonding/slaves
done
ip link set bond0 up



Thanks Sven for pointing this out, I never dug into that package. That's great if the bonding module is included in the Debian installer. So yes, indeed all I need is the few lines you mention plus an extra setting for the bond mode which I want it to be 802.3ad (/sys/class/net/bond0/bonding/mode).

Greetings
ML


Reply to: