Spent a few minutes searching for a howto for setting up ethernet interface bonding on a new file server I’m building today. Nothing special but I found a bunch that aren’t that great … I know, welcome to the internet right? But I did find one that’s awesome from tuxhelp.org.
My final config went like this:
echo -e "bondingnmii" | sudo tee -a /etc/modules
With an /etc/network/interfaces file that looks like this:
auto lo bond0 iface lo inet loopback iface bond0 inet dhcp bond_mode balance-rr bond_miimon 100 bond_downdelay 200 bond_updelay 200 slaves eth0 eth1
What was lacking in all other (even Debian specific) howto’s is that they always use direct invocation of ifenslave and pass options to the bonding driver manually. IMHO it’s so much nicer to use the facilities built in to ifup like the slaves option instead of using something like:
up /sbin/ifenslave bond0 eth0 eth1
That said I haven’t had much luck finding documentation for options like this specific to a driver and how to use them in the interfaces file. Given the above example I can guess but I’m looking for a definitive source … Anyone out there know?