作者:容易 2013-05-14 8:37:48
rhel4.8 bond配置
vi /etc/modprobe.conf #添加如下内容
install bond0 /sbin/modprobe --ignore-install bonding -o bond0 primary=eth0 miimon=100 mode=1
install bond1 /sbin/modprobe --ignore-install bonding -o bond1 primary=eth1 miimon=100 mode=1
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL=no
ONBOOT=yes
TYPE=Ethernet
cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond1
SLAVE=yes
TYPE=Ethernet
USERCTL=no
centos5.8 Bond配置
vi /etc/modprobe.conf #添加2行如下内容
alias bond0 bonding
options bond0 millmon=100 mode=1
#options bond0 primary=eth0 miimon=100 mode=1 加入primary=eth0后网卡恢复后会强制进行切换,只要ETH0链路正常
eth0永远用于主接口。
[root@ats-db ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.98.50.13
NETMASK=255.255.255.0
BROADCAST=10.98.50.255
USERCTL=no
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
USERCTL=no
cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet
USERCTL=no
One Response