Debian7 Interface Bonding - Mode 6 (Adaptive load balancing)

apt-get install ifenslave


Interface Configuration

 Modify /etc/network/interfaces. Remove (or comment out) any existing configuration for your slave interfaces (eth0 and eth1), and configure your new bond0 interface appropriately:

auto bond0
iface bond0 inet static
    slaves eth0 eth1
    bond_mode balance-alb
    bond_miimon 100
    bond_downdelay 200
    bond_updelay 200

Restart networking

Once configured, start networking:

invoke-rc.d networking start

Verify the bonding

ifconfig bond0
bond0     Link encap:Ethernet  HWaddr d8:d3:85:60:de:c8
          inet  Bcast:5.255.79.xx
          inet6 addr: fe80::dad3:85ff:fe60:dec8/64 Scope:Link
          RX packets:10369093 errors:0 dropped:0 overruns:0 frame:0
          TX packets:535459 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15726918052 (14.6 GiB)  TX bytes:37499548 (35.7 MiB)

cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: adaptive load balancing
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200

Slave Interface: eth0
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: d8:d3:85:60:de:c8
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: d8:d3:85:60:de:cc
Slave queue ID: 0

wget -O /dev/null
--2014-03-02 09:59:14--
Connecting to connected.
HTTP request sent, awaiting response... 200 OK
Length: 5000000000 (4.7G) [application/octet-stream]
Saving to: `/dev/null'

100%[===========================================================================>] 5,000,000,000  994M/s   in 5.1s

2014-03-02 09:59:19 (931 MB/s) - `/dev/null' saved [5000000000/5000000000]

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

LVM setup example

# To find your disk namesfdisk -l# Add the physical drives to be used in LVMpvcreate...

Ubuntu Interface Bonding - Mode 6 (Adaptive load balancing)

For Ubuntu 12.04 and earlier   sudo apt-get install ifenslave   Interface Configuration...