centos7 team 绑定

1、关闭防火墙

systemctl stop firewalld

systemctl disable firewalld

2、设置绑定模式为loadbalance

nmcli con add type team con-name team0 ifname team0 config '{"runner":{"name":"loadbalance"}}'

3、设置team0的ip,掩码,网关,手工模式

nmcli con modify team0 ipv4.address '192.168.1.22/24' ipv4.gateway '192.168.1.1' ipv4.method manual

4、将eno1和eno2分别加入team组

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 eno2 master team0

5、查看网卡信息,若发现有橙色的要启动

nmcli con sh

6、启动team0

nmcli con up team0

7、重启网络

systemctl restart network

8、查看teaming绑定结果

teamdctl team0 st

9、查看team0是否连接

ethtool team0

猜你喜欢

转载自blog.csdn.net/Man_In_The_Night/article/details/86574092