nmcli配置bond

确定绑定的模式 bond0~7(以1为例)
确定绑定的俩个网口名称,以eno1 eno2为例

1.nmcli connection add type bond ifname bond0 mode active-backup
2.nmcli connection add type bond ifname eno1 master bond0
3.nmcli connection add type bond ifname eno1 master bond0
4.nmcli connection reload
5.vim /etc/sysconfig/network-scripts/ifcfg-bond0
ONBOOT修改为yes:ONBOOT=yes
添加IPADDR=192.168.111.100
  PREFIX=24
GATEWAY=192.168.111.254
6.重启网络 systemctl restart network.service
7.关闭防火墙 systemctl stop firewall.service

你可能感兴趣的:(服务搭建)