#Centos Bond
-CentOS 6.5 Bond
-eth0
-eth1
# Create Ifcfg-bond0
/etc/sysconfig/network-scripts/ifcfg-bond0
Device=bond0
Bootproto=none
Onboot=yes
ipaddr=10.58.11.11
netmask=255.255.255.0
network=10.58.11.0
gateway=10.58.11.254
Userctl=no
Name=bond0
# # # View Ifcfg-eth0
```
# Intel Corporation 82545EM gigabitethernet Controller (Copper) #网卡名字可注释
Device=eth0
Bootproto=static
#HWADDR =00:0C:29:A8:19:CB #MAC地址可以注释
Onboot=yes
Master=bond0
Slave=yes
Userctl=no
Ipv6init=no
```
# # # View Ifcfg-eth1
```
# Intel Corporation 82545EM gigabitethernet Controller (Copper) #网卡名字可注释
Device=eth1
Bootproto=static
Onboot=yes
#HWADDR =00:0c:29:a8:19:d5 #MAC地址可以注释
Master=bond0
Slave=yes
Userctl=no
Ipv6init=no
```
#创建或修改模块文件
Vim/etc/modprode.conf
#加载bongding module, the external virtual network interface device is BOND0, add the following 2 lines at the end
Alias Bond0 bongding
Options Bond0 mode=1 miimon=100
Miimon is the time interval unit of the link monitoring is milliseconds, miimon=100 means that every 100 milliseconds to detect connectivity between the NIC and the switch, such as the use of additional links to the general rule.
Mode=0 means load balancing, both NICs are working and need to be supported by the switch
Mode=1 means redundancy, Nic only one job, one problem enable additional
Mode=6 means load balancing, both NICs work without the need for a switch for support
# #添加自启动
/etc/rc.d/rc.local
Ifenslave bond0 eth0 eth1
# #检测
# # #重启网络服务
/etc/init.d/network restart
# # View BOND0 status
More/proc/net/bonding/bond0
# # #查看网口
Ifconfig-a
This article is from the "Trisha" blog, make sure to keep this source http://cuiruizhouok.blog.51cto.com/2909906/1694530
Centos Bond Configuration