Link Aggregation in Ubuntu 10

Share on Facebook
Post to Google Buzz
Bookmark this on Yahoo Bookmark
Bookmark this on Livedoor Clip
Share on FriendFeed
Link Aggregation in Ubuntu 10Krypted.com

Ifenslave is an open source package that can be used to bond interfaces in Ubuntu 10. To install ifenslave, we can use apt-get:

apt-get install ifenslave

Once installed, we will need to take down our existing eth interfaces. Presumably these are eth0 and eth1, but you can use ifconfig to verify:

ifconfig eth0
ifconfig eth1

Once you’ve verified the interfaces you want to bond, bring them down:

ifdown eth0
ifdown eth1

Next, locate the entries in /etc/network/interfaces and comment out the corresponding lines:

vi /etc/network/interfaces

You will then need to add information for the link aggregated bond. Bond levels in ifenslave include:

Let’s assume we’re going to go with a vanilla round robin bond (bond0). Let’s add the following (which includes the IP address, netmask and gateway as well as the bonding information):

auto bond0
iface bond0 inet static
address 192.168.210.100
netmask 255.255.255.0
gateway 192.168.210.1
slaves all
bond-mode 0
bond-miimon 100

These variables:

Finally, we can bring the bond online using ifup followed by the bond name:

ifup bond0

You should then be able to ping, use iftop, netperf, etc to test the performance of the bond.

Similar Articles:

Posted on April 19, 2011 at 7:00 am by Charles · Permalink
In: Ubuntu, Unix · Tagged with: , , , , , ,

Leave a Reply