centos7配置网卡team负载均衡

  • Post author:
  • Post category:其他


1、创建team模式

nmcli con add type team con-name team0 ifname team0 config ‘{“runner”:{“name”:“loadbalance”}}’ (负载均衡模式)(roundrobin、轮训)

nmcli con show

2、创建team-slave,绑定网卡

nmcli con add type team-slave con-name team0-prot1 ifname em1 master team0

nmcli con add type team-slave con-name team0-prot2 ifname em2 master team0

3、配置IPV4地址

nmcli con mod team0 ipv4.addresses “171.16.41.x/24”

nmcli con mod team0 ipv4.gateway “171.15.41.x”

nmcli con mod team0 ipv4.method manual

4、启动team0

nmcli con up team0

5、重启网络服务

systemctl restart network

6、检查网卡绑定状态

teamdctl team0 state

7、检查网卡绑定效果

nmcli dev dis em1 //关闭绑定状态

nmcli dev con em1 //恢复绑定状



版权声明:本文为qq_35602783原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。