Author

Christopher Marshall (christopherlmarshall@yahoo.com)

Raw Notes on Ethernet Bonding

#compile the userspace utility
# which you can find in the kernel source directory at:
# /usr/src/linux/Documentation/networking/ifenslave.c
gcc -o ifenslave ifenslave.c

# load the bonding module
insmod bonding

# configure the devices
ifconfig bond0 12.26.73.159 netmask 255.255.255.0 up
ifenslave bond0 eth0
ifenslave bond0 eth1

# high availability scheme
# mode=1 is the backup scheme
# mode=0 is round robin, bandwidth expansion scheme and is the default
# miimon sets the link monitoring interval, which determines
# how often the kernel tries to determine if the link is up or down
# for switching purposes.
insmod bonding mode=1 miimon=100
ifconfig bond0 12.26.73.159 netmask 255.255.255.0 up
ifenslave bond0 eth0
ifenslave bond0 eth1

hopeless_linux: RawNotes/bonding (last modified 2007-07-01 16:01:00)