1. In /etc/modprobe.d create a file called
bonding.conf
Add the
below mentioned line in /etc/modprobe.d/bonding.conf
alias bond0 bonding
2.Modify
eth0,
eth1 (Locate in /etc/sysconfig/network-scripts)
File: ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
File: ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
3. Create the
configuration files for bond0.
File: ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.0.126
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS=”miimon=1000
mode=active-backup”
4. service network restart
5. Ifconfig
#cat /proc/net/bonding/bond0
=>Check bonding mode
you can also see this Link
沒有留言:
張貼留言