e.g. Bonding eth1 and eth2 to bond0;
On RHEL:
3 places need to be modified, reboot after modification
1. Under dir /etc/sysconfig/network-scripts
[root@china1 network-scripts]# cat ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
[root@china1 network-scripts]# cat ifcfg-eth1 >>>>>>>>>ifcfg-eth2 is similar
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:13:72:52:58:F4
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
TYPE=Ethernet
2. pls add the following info into /etc/modprobe.conf, mode=1 means active-backup mode
alias bond0 bonding
options bond0 mode=1 miimon=100
alias bond1 bonding
options bond1 mode=1 miimon=100
3. pls add the following info into "/etc/rc.d/rc.local"
modprobe bonding
modprobe -o bond0 bonding mode=1 miimon=100
modprobe -o bond1 bonding mode=1 miimon=100
reboot
On SLES:
1. under /etc/sysconfig/network
china2:/etc/sysconfig/network # cat ifcfg-bond0
REMOTE_IPADDR=''
MTU=''
BOOTPROTO='static'
STARTMODE='onboot'
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=1 miimon=100'
BONDING_SLAVE0='eth1'
BONDING_SLAVE1='eth2'
2. china2:/etc/sysconfig/network # more /etc/modprobe.conf.local
#
# please add local extensions to this file
#
alias bond1 bonding
options bond1 mode=1 miimon=100
alias bond0 bonding
options bond0 mode=1 miimon=100
3. execute "rcnetwork restart", no need to restart computer;
The settings on RHEL5 and SLES9 are the same;
On RHEL:
3 places need to be modified, reboot after modification
1. Under dir /etc/sysconfig/network-scripts
[root@china1 network-scripts]# cat ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
[root@china1 network-scripts]# cat ifcfg-eth1 >>>>>>>>>ifcfg-eth2 is similar
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:13:72:52:58:F4
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
TYPE=Ethernet
2. pls add the following info into /etc/modprobe.conf, mode=1 means active-backup mode
alias bond0 bonding
options bond0 mode=1 miimon=100
alias bond1 bonding
options bond1 mode=1 miimon=100
3. pls add the following info into "/etc/rc.d/rc.local"
modprobe bonding
modprobe -o bond0 bonding mode=1 miimon=100
modprobe -o bond1 bonding mode=1 miimon=100
reboot
On SLES:
1. under /etc/sysconfig/network
china2:/etc/sysconfig/network # cat ifcfg-bond0
REMOTE_IPADDR=''
MTU=''
BOOTPROTO='static'
STARTMODE='onboot'
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=1 miimon=100'
BONDING_SLAVE0='eth1'
BONDING_SLAVE1='eth2'
2. china2:/etc/sysconfig/network # more /etc/modprobe.conf.local
#
# please add local extensions to this file
#
alias bond1 bonding
options bond1 mode=1 miimon=100
alias bond0 bonding
options bond0 mode=1 miimon=100
3. execute "rcnetwork restart", no need to restart computer;
The settings on RHEL5 and SLES9 are the same;
2190

被折叠的 条评论
为什么被折叠?



