系统环境CentOS7.3、双网卡(eth0、eth1 ) ) ) )。
使用nmcli命令配置bond并生成bond 0文件
nmcliconnectionaddtypebondifnamebond 0模式0
如果不想更改bond网络接口配置文件,请在命令后添加ip4 'ip地址' gw4 '网关地址'
nmcliconnectionaddtypebondifnamebond0mod E0 IP 4192.168.10.25/24gw 4192.168.10.1
将网卡eth0和eth1绑定到bond0
nmcliconnectionaddtypebond-slaveifnameeth 0主bond 0
nmcliconnectionaddtypebond-slaveifnameeth1master bond 0
转载于:https://www.cn blogs.com/Edward-yue/p/10882482.html