服务器双网卡绑定

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

上一篇:Linux_Chapter1_Exercise


下一篇:2021-09-16