Home > Operation and Maintenance > CentOS > Introducing the configuration and debugging of centos7 bond

Introducing the configuration and debugging of centos7 bond

藏色散人
Release: 2021-05-31 10:13:49
forward
4108 people have browsed it

The following tutorial column will introduce the configuration and debugging of centos7 bond to you in the centos tutorial 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
Copy after login

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”
Copy after login

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
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template