
Centos 7.5 双网卡绑定 bonding 模式
1.查看系统版本
[root@localhost ~]# cat /etc/redhat-release
CentOSLinux release 7.5.1511(Core)
[root@localhost ~]# uname -r3.10.0-327.el7.x86_64
2、查看系统内核是否支持 bonding
[root@cobbler-node1 ~]# cat /boot/config-3.10.0-693.el7.x86_64 | grep -i bonding
CONFIG_BONDING=m
3.备份网卡配置文件
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# mkdir /tmp/net_bak
[root@localhost network-scripts]# cp ifcfg-*/tmp/net_bak/
[root@localhost network-scripts]# ls /tmp/net_bak/
4、修改系统 eth0、eth1、bond0 网卡配置文件
[root@cobbler-node1 network-scripts]# vi ifcfg-eth0
TYPE=Ethernet
BOOTPROTO=none
DEVICE=eth0
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes