How to create bond device under linux

root's picture

Without any introduction, read on :)
Write to /etc/sysconfig/network-scripts/ifcfg-bond0 the following:

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=
NETMASK=255.255.255.0
IPADDR=10.10.0.13
GATEWAY=10.10.0.1
USERCTL=yes

Write to /etc/sysconfig/network-scripts/ifcfg-ethX, where X is equal with each interface you want to include in this configuration (e.g. eth0 and eth3):

DEVICE=ethX
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

Enable the device in kernel
# modprobe bond0

# service network restart

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.