/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/modules.conf
I have this working on two Redhat Enterprise linux servers (one RHEL3 and the other RHEL4). But I would imagine that this should work on many other Linux distributions as well.
Create a new file
/etc/sysconfig/network-scripts/ifcfg-bond0
and add the following to it, using your own ip addresses
DEVICE=bond0Modify your
IPADDR=x.x.x.x
NETWORK=y.y.y.y
NETMASK=z.z.z.z
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
/etc/sysconfig/network-scripts/ifcfg-eth0
file and change it to
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Also modify your
/etc/sysconfig/network-scripts/ifcfg-eth1
file and change it to
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Save all of these files.
Add the following lines to the end of /etc/modules.conf
alias bond0 bonding
options bond0 mode=balance-alb miimon=100
Make sure the bonding module is loaded with
modprobe bondingThen restart the network service
service network resartYou should now see the bond0 nic listed if you run and ifconfig from the command line.
Labels: Itfixed it for me, linux