系统环境
CentOS7.3、双网卡(eth0和eth1)
使用nmcli命令配置bond
生成bond0文件
nmcli connection add type bond ifname bond0 mode 0
如果不想修改bond网络接口配置文件可以命令后加上 ip4 "ip地址" gw4 "网关地址"
nmcli connection add type bond ifname bond0 mode 0 ip4 192.168.10.25/24 gw4 192.168.10.1
将网卡eth0和eth1绑定到bond0上
nmcli connection add type bond-slave ifname eth0 master bond0
nmcli connection add type bond-slave ifname eth1 master bond0