链路聚合team0

team 模式介绍
链路聚合与双网卡绑定几乎相同,可以实现多网卡绑定主从荣誉,负载均衡,提高网络访问流量。但链路聚合与双网卡绑定技术(bond)不同点就在于,双网卡绑定只能使用两个网卡绑定,而链路聚合最多可将8个网卡汇聚同时做绑定,此聚合模式称之为team,team模式是有CentOS 7 才出现的。

[root@localhost ~]# nmcli connection add type team con-name team0 ifname team0 config '{"runner":{"name":"activebackup"}}' ipv4.method manual ipv4.addresses 192.168.10.100/24 
Connection 'team0' (fa336b0a-62f3-429e-ae23-d89faadf9297) successfully added.
[root@localhost ~]# nmcli connection add con-name team0-ens33 type team-slave ifname ens33 master team0
Connection 'team0-ens33' (31e7cf6b-32e3-4e06-b323-a4fb08bb1059) successfully added.
[root@localhost ~]# nmcli connection add con-name team0-ens34 type team-slave ifname ens34 master team0
Connection 'team0-ens34' (da6a3e5a-82fa-41f1-9ff4-a99b93cd2719) successfully added.
[root@localhost ~]# nmcli connection up team0-ens33
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/18)
[root@localhost ~]# nmcli connection up team0-ens34
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/19)
[root@localhost ~]# teamdctl team0 state
setup:
  runner: activebackup
ports:
  ens33
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
        down count: 0
  ens34
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
        down count: 0
runner:
  active port: ens33
无标签
打赏
评论区
头像