Saturday, June 24, 2006

bonding network card on linux.

1. Add entires on /etc/module.conf file
alias bond0 bonding
options bond0 miimon=100 mode=1
--------------------------------------
2. lsmod should detect module.
bonding 25220 1
-------------------------------------
3. cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
BROADCAST=3.159.19.255
IPADDR=3.159.17.80
NETMASK=255.255.252.0
NETWORK=3.159.16.0
ONBOOT=yes

cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
ETHTOOL_OPTS="autoneg off speed 100 duplex full"

cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
TYPE=Ethernet
ONBOOT=no

cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
ETHTOOL_OPTS="autoneg off speed 100 duplex full"

cat /etc/sysconfig/network-scripts/ifcfg-eth3
DEVICE=eth3
BOOTPROTO=static
TYPE=Ethernet
ONBOOT=no
==========================================

No comments: