(1) 网卡的链路聚合就是将多块网卡连接起来,当一块网卡损坏,网络依旧可以正常运行,可以有效的防止因为网卡损坏带来的损失,同时也可以提高网络访问速度。
(2)网卡的链路聚合一般常用的有"bond"和"team"两种模式,"bond"模式最多可以添加两块网卡,"team"模式最多可以添加八块网卡。

原理如下图所示:

Redhat team链路聚合

链路聚合的几种模式:
Redhat team链路聚合
下面介绍team模式的配置:

一、添加网络适配器:
Redhat team链路聚合

查看示例文件:
Redhat team链路聚合
选择链路聚合配置模型

随便进入上面的一个配置文件即可:
Redhat team链路聚合
Redhat team链路聚合
创建team0设备和team0会话,添加设备到team0:
Redhat team链路聚合
**从设备:
Redhat team链路聚合

Redhat team链路聚合

**主设备:
Redhat team链路聚合

查看启动后的team0状态:
Redhat team链路聚合

Ping 172.24.8.129
Redhat team链路聚合

二、配置team桥接

断掉team0设备:
Redhat team链路聚合
停用NetworkManager服务:
Redhat team链路聚合

编辑team0从设备配置文件追加BRIDGE=br0
Redhat team链路聚合
Redhat team链路聚合

编辑从设备文件/etc/sysconfig/network-scripts/ifcfg-br0,手动写IP地址:

[[email protected] ~]#vim/etc/sysconfig/network-scripts/ifcfg-br0
Redhat team链路聚合
重启网络服务:
Redhat team链路聚合
然后ip a查看:
Redhat team链路聚合

相关文章: