Comments on NIC Bonding On Debian Lenny

NIC Bonding On Debian Lenny Ethernet bonding refers to aggregating multiple ethernet channels together to form a single channel. This is primarily used for redundancy in ethernet paths or for load balancing. This page refers in particular to performing ethernet bonding under Linux, and so does not limit itself to discussion of 802.3ad Trunk Aggregation.

13 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By:

Before running:

/etc/init.d/networking restart

Make sure to shutdown each of your slave interfaces using ifconfig (ifup will not work, as it refers to /etc/network/interfaces for interface config info which won't be there any more).

ifconfig eth0 down
ifconfig eth1 down

etc. Then run:

ifup bond0
/etc/init.d/networking restart

You should be golden! Special thanks to:

http://anothersysadmin.wordpress.com/tag/debian-bonding-networking-ethernet/

By: Anonymous

right but using the interface file for the full configuration is a much better way to do it because its modular and you don't have the configuration spread across multiple files.  Its also the way the README file in the package explains.  Why even bother updating the howto for lenny if its not going to be done any differently than previous releases?

By:

Many men many minds. In my opinion it's easier to use modprobe

By: Anonymous

On debian you don't need to use up/down lines nor /etc/modprobe.d things. just configure bond intreface this way:

 iface bond0 inet static
        address 10.0.1.5
        netmask 255.255.255.0
        network 10.0.1.0
        gateway 10.0.1.254
        bond_mode balance-tlb
        bond_miimon 100
        bond_downdelay 200
        bond_updelay 200
        slaves eth0 eth1

By: Ulises E.

Hi, I use your advise on Debian Squeeze, that's the only way it work for me, adding the parameters on the /etc/network/interfaces. I wonder why there's no more information related to the drop packages. Best Regards.

By:

Thanks for fixing!

By: Anonymous

It might be smart (and nice) to combine the up lines into a single statement:

 up ifenslave bond0 eth0 eth1 eth2 eth3 <etc>

 and also to clean up after oneself on shutdown:

 down ifenslave -d bond0 eth0 eth1 eth2 eth3 <etc>

By:

dont forget about round robin mode.

mode=0 (balance-rr)
Round-robin policy: Transmit packets in sequential order from the first available slave through the last. This mode provides load balancing and fault tolerance.

http://www.linuxhorizon.ro/bonding.html

By: Anonymous

Note that on debian lenny mii is a kernel module.

$ grep CONFIG_MII /boot/config-2.6.26-1*

CONFIG_MII=m

So you need to load it !

$ cat /etc/modules

mii

By: GIPABU

Hi all,

I tried all modes suggested but I'm not able to run correctly my bond conf in mode 0.

Any suggestion?

By: allan

Just an FYI, on my Lenny box, had to add 'bonding' to /etc/modules

By:

Hello

Can i do a bounding with two pppoe ??

Thanks

Victor Daniel Witoszek Arias

By: Rene Seiler

Hi,

a couple of days ago I set up Debian Lenny Servers in a new infrastructure which provides redundant LAN and WAN connections. NIC bonding was easy to set up, but NIC bonding and XEN is different. Here's a short summary of things you should do to get your system up and running: http://www.9126consulting.com/2011/03/17/nic-bonding-on-xen-hosts/