ali aboos

Debian: NIC bonding (teaming) 32/64 bit OS

by on Oct.29, 2008, under Debian

Install package ifenslave-2.6.
aptitude install ifenslave

make sure the real NICs kernel modules are loaded automatically
modprobe --list | grep -i bonding

edit /etc/network/interfaces and replace all references to eth0 to bond0. Also, replace “allow-hotplug” with “auto”, and save the file. You can use sed to do all this in one command:
sed 's/eth0/bond0/;s/allow-hotplug/auto/' </etc/network/interfaces

Execute the following commands:
echo "up /sbin/ifenslave bond0 eth0 eth1" >> /etc/network/interfaces
echo "down /sbin/ifenslave -d bond0 eth0 eth1" >> /etc/network/interfaces
echo "bonding" >> /etc/modules
echo "bonding mode=1 miimon=250 primary=eth0" >> /etc/modules

The above commands are equivalent to opening each file separately and adding the quoted lines manually.

Stop eth0:
ifdown eth0

And restart networking:
/etc/init.d/networking/restart

CC0 1.0 To the extent possible under law, the creator has waived all copyright and related or neighboring rights to this work.


Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.

Search InsaneLabs.com

Can't find what you're looking for? Drop a comment on a post or email (ali aht insanelabs doht com)

Links

Links open in a new window