Configuring Link Aggregation in a Linux Environment

This section explains how to configure link aggregation in a Linux environment.

To Configure Bonding for Multiple nxge Interfaces

1.Modify the /etc/modprobe.conf file for 2.6 kernels file by adding these lines:

alias bond0 bonding

options bonding max_bonds=2 mode=4 miimon=1000

where:

bond0 is the bonding device.

max_bonds is the number of bond interfaces to be created.

mode specifies the bonding policies.

miimon is the frequency in milliseconds that MII link monitoring will occur. Refer to Linux documentation for more information.

2.Load the bonding driver:

#modprobe bonding

3.Configure bond0 interface.

In this example, bond0 is the master of the two interfaces eth4 and eth5.

#ip addr add 192.12.38.64/24 brd + dev bond0

#ip link set dev bond0 up

#ifenslave bond0 eth4 eth5

60 Sun Dual 10GbE XFP PCI Express Card User’s Guide • May 2010

Page 70
Image 70
Oracle Audio Technologies SunDual 10GbE XFP Configuring Link Aggregation in a Linux Environment, Load the bonding driver