Linux Interface Bonding

From NSMWiki

Jump to: navigation, search

Contents

Virtually all Linux distributions support interface bonding, although the configuration steps vary. Here are some notes for various distros.

Debian

NIC Bonding/Teaming - Debian Sarge

Ubuntu

How to Set up Network Bonding in Ubuntu 6.10

Red Hat, Fedora Core or CentOS

You can use the instructions for configuring bonded interfaces that come with the Sguil on RedHat HOWTO, or the following writeup. They're basically the same.

In /etc/modprobe.conf, add:

alias bond0 bonding

In /etc/sysconfig/network-scripts/ifcfg-bond0:

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes

In /etc/sysconfig/network-scripts/ifcfg-eth1:

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes

Create a similar ifcfg-eth2 configuration.

On restart bond0 will be created.

Dynamically:

modprobe bonding
ifup bond0
ifenslave bond0 eth1 eth2

Ref: cisc0lich in #snort on irc.freenode.net, 8 Sep 06.