echo "alias bond0 bonding" >> /etc/modprobe.d/bond0.confecho "options bond0 mode=1 miimon=100 " >> /etc/modprobe.d/bond0.conf cd /etc/sysconfig/network-scriptsvi ifcfg-bond0 #内容如下:DEVICE=bond0BOOTPROTO=static
TYPE=Ethernet
ONBOOT=yes
IPADDR=x.x.x.x #IP地址
NETWORK=x.x.x.0 #网络GATEWAY=x.x.x.x #网关
USERCTL=novi ifcfg-eth0 #网卡1,内容如下:DEVICE=eth0BOOTPROTO=none ONBOOT=yesTYPE=Ethernet MASTER=bond0 SLAVE=yesUSERCTL=novi ifcfg-eth1 #网卡2,内容如下:DEVICE=eth1BOOTPROTO=none ONBOOT=yes TYPE=Ethernet MASTER=bond0 SLAVE=yesUSERCTL=novi /etc/sysconfig/network #内容如下:NETWORKING=yesHOSTNAME=MYHOSTNAME #主机名IPV6INIT=no#GATEWAY=xxx.xxx.xxx.xxx #缺省网关IP 若BOND0中有设置,则无需在此设置。service NetworkManager stop;chkconfig NetworkManager off;service network restart 或 reboot 即可。
Welcome to www.gorhce.com erikxue 薛忠权
本文出自 “奋斗在京(ErikXUE)” 博客,请务必保留此出处http://erikxue.blog.51cto.com/3681540/1588830
RED HAT OR CENTOS BOND 6.X 设置方法 erikxue 薛忠权
原文地址:http://erikxue.blog.51cto.com/3681540/1588830