Home>Article>Operation and Maintenance> Introducing the configuration and debugging of centos7 bond
The following tutorial column will introduce the configuration and debugging of centos7 bond to you in thecentostutorial column. I hope it will be helpful to friends in need!
First, when doing bond, there are usually more than two network cards. In /etc/sysconfig/network -scripts/, change the content of the network card you need to bond to as follows:
TYPE=Ethernet BOOTPROTO=none DEVICE=p6p2 ONBOOT=yes MASTER=bond0 SLAVE=yes
Second, create ifcfg-bond0 in the above directory (this is just a new name, you can also create other names), Add in this file:
DEVICE=bond0 TYPE=Bond NAME=bond0 BONDING_MASTER=yes BOOTPROTO=static USERCTL=no ONBOOT=yes IPADDR=xxx.xxx.xxx.xxx(ip地址) NETMASK=xxx.xxx.xxx.xxx(子网掩码) GATEWAY=xxx.xxx.xxx.xxx(网关) BONDING_OPTS=”mode=4 miimon=100”
3. Restart the network
4. Remarks
Here is a brief introduction to the bond mode. Detailed instructions can be found on Baidu
mode=0 ,(平衡抡循环策略) mode=1,(主-备份策略) mode=2,(平衡策略) mode=4,( IEEE 802.3ad 动态链路聚合,需要交换机配置) mode=5, mode=6
miimon: Specify the MII link monitoring frequency in milliseconds (ms). This will determine how often the driver checks the link status of each slave. 0 means disabling MII link monitoring. 100 can be used as a good starting reference value.
The above is the detailed content of Introducing the configuration and debugging of centos7 bond. For more information, please follow other related articles on the PHP Chinese website!