---
title: "Debian network bonding"
date: "2013-05-21"
path: "/140-debian-network-bonding.html"
section: "/ramblings"
aliases:
  - "/140"
  - "/140-debian-network-bonding"
  - "/140.html"
  - "/ramblings/140-debian-network-bonding.html"
---

Install the "ifenslave" package:

```
apt-get install ifenslave
```

Bond all of the available network interfaces by editing the file:

```
nano /etc/network/interfaces
```

And adding in place of the eth0 block:

```
auto bond0
iface bond0 inet static
        address 192.168.0.8
        netmask 255.255.255.0
        network 192.168.0.0
        gateway 192.168.0.1
        slaves eth0 eth1 eth2 eth3
        bond_mode balance-tlb
        bond_miimon 100
        bond_downdelay 200
        bond_updelay 200
```

The, if you're at the DC you can unplug each network cable in-turn to test connectivity still.

---

## References

1. http://www.debianhelp.co.uk/bonding.htm
2. http://wiki.debian.org/NetworkConfiguration
