其他分享
首页 > 其他分享> > 服务器双网卡绑定

服务器双网卡绑定

作者:互联网

1.配置临时IP地址,通过笔记本SSH登录服务器

ip addr add 3.3.3.3/24 dev eno1 #ens1f0注意实际对应的名称

2.修改IP地址和网关执行下面命令
nmcli con add type team con-name team0 ifname team0 config ‘{“runner”:{“name”:“activebackup”}}’
nmcli con modify team0 ipv4.address ‘10.64.60.19/24’ ipv4.gateway ‘10.64.60.254’
nmcli con modify team0 ipv4.method manual
nmcli con add type team-slave con-name team0-port1 ifname eno1 master team0
nmcli con add type team-slave con-name team0-port2 ifname eno3 master team0
systemctl restart network

标签:name,nmcli,绑定,team0,add,服务器,ifname,双网卡,con
来源: https://blog.csdn.net/qq_15846331/article/details/120621008