1.team也是链路聚合的一种方式,相比bond有更强的拓展性
支持模式有:
*广播:容错,所有封包都通过所有slave接口广播
*轮询:- 轮循策略 , 所有接口都采用轮循方式在所有 Slave 中传输封包 ; 任何Slave 都可以接收
*主备:容错,一次只能使用一个Slave 接口 , 但是如果该接口出现故障 , 另一个Slave 将 接替它
*负载均衡:缓解网络压力,分到多个操作单元执行
2.配置: 之前先将虚拟机重置,为其添加两块网卡
nmcli connection add con-name eth0 ifname eth0 type team-slave master team0 ###为team0添加网卡eth0
nmcli connection add con-name eth1 ifname eth1 type team-slave master team0 #####为team0添加网卡eth1
3.测试
watch -n 1 teamdctl team0 stat ####监测工作状态
ping 172.25.254.42 ####查看网络连接状态
ifconfig eth0 down #####让eth0停止工作,eth1立马顶替工作,网络不间断
ifconfig eth0 up #####eth0恢复工作,eth1停止工作,网络畅通
1226

被折叠的 条评论
为什么被折叠?



