How to bond Ethernet interfaces

Bonding eth-interfaces

If you need to bonding your Ethernet interfaces, Do the following:
add following lines to the /etc/modprobe.conf file
# vi /etc/ modprobe.conf
alias bond0 bonding
options bonding mode=1 arp_interval=100 arp_ip_target=192.168.1.1
create the file /etc/sysconfig/network-scripts/ifcfg-bond0  with the normal IP setting:
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.1.40
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
Add eth0 and eth1 to the bonding pair by editing the files:
/etc/sysconfig/network-scripts/ifcfg-eth0 and
/etc/sysconfig/network-scripts/ifcfg-eth1 to look something like this:
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:17:A4:10:D7:32
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
Restart the network service:
# /etc/init.d/network restart



No comments:

Post a Comment