CentOS7.x配置bond0

系统环境

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

转载于:https://www.cnblogs.com/Edward-Yue/p/10882482.html

你可能感兴趣的:(CentOS7.x配置bond0)