聚合连接(team)
多个网卡(team-slave)组建成虚拟网卡
轮询式(roundrobin)的流量负载均衡
热备份(activebackup)连接冗余
man teamd.conf /example {"runner" : {"name":"activebackup"}}
1.创建team
nmcli connection add type team con-name team0 ifname team0 config ‘{{"runner" : {"name":"activebackup"}}}‘ cat /etc/sysconfig/network-scripts/ifcfg-team0
2.给team添加网卡
nmcli connection add type team-slave ifname eth1 master team0 nmcli connection add type team-slave ifname eth2 master team0
3.team设IP
nmcli connection modify team0 ipv4.method manual ipv4.addresses 192.168.1.1/24 connection.autoconnect yes
4.激活网卡及team
nmcli connection up team-slave-eth1 #激活从设备eth1 nmcli connection up team-slave-eth2 #激活从设备eth2 nmcli connection up team0 #激活主设备team0
5.验证
teamdctl team0 state #专用与查看team信息
6.删除
nmcli connection delete team-slave-eth1 nmcli connection delete team-slave-eth2 nmcli connection delete team0
ls /etc/sysconfig/network-scripts/ifcfg-team*
时间: 2024-11-01 16:13:10