目录
一.链路聚合的概念
端口绑定技术又称链路聚合(Link Aggregation)是将一组物理接口捆绑在一起作为一个逻辑接口来增加带宽的一种方法,又称为多接口负载均衡组或链路聚合组。通过在两台设备之间建立链路聚合组,可以提供更高的通讯带宽和更高的可靠性。链路聚合不仅仅为设备通信提供了冗余保护,而且不需要对硬件进行升级。
从上我们可以得知链路聚合主要有以下三个优势:
1.通过将多个物理链路捆绑为一个逻辑链路增加了宽带
2.增加了可靠性
3.实现链路传输弹性和冗余
二.链路聚合的实现条件
链路聚合/端口聚合/端口绑定实现的条件:
1.每个Eth-Trunk接口下最多可以包含8个成员接口。
2.成员接口不能配置任何业务和静态MAC地址。
3.成员接口加入Eth-Trunk时, 必须为缺省的hybrid类型接口。
4 .Eth-Trunk接口不能嵌套,即成员接口不能是Eth-Trunk。
5.一个以太网接口只能加入到一个Eth-Trunk接口, 如果需要加入其它Eth-Trunk接口,必须先退出原来的Eth-Trunk接口。
6.一个Eth-Trunk接口中的成员接口必须是同一类型,例如: FE口和GE口不能加入同一个Eth-Trunk接口。
7.可以将不同接口板上的以太网接口加入到同一个Eth-Trunk.
8.如果本地设备使用了Eth-Trunk,与成员接口直连的对端接口也必须捆绑为Eth-Trunk接口,两端才能正常通信。
9. 当成员接口的速率不一致时,实际使用中速率小的接口可能会出现拥塞,导致丢包。
10.当成员接口加入Eth-Trunk后, 学习MAC地址时是按照Eth-Trunk来学习的, 而不是按照成员接口来学习的。
三.端口聚合(链路聚合)的分类
端口聚合又称链路捆绑
分为二层和三层,二层链路捆绑针对二层交换机,形成的链路不带IP地址功能。三层链路捆绑针对三层交换机,形成的链路带IP地址功能。
二层交换机接口只能是二层性质的,接口链路类型可以设置为trunk或者access,三层交换机接口必须是二层性质和三层性质其二选一,若三层交换机接口性质为三层,那将不可以设置链路类型为trunk或access。
四.实现二层交换机链路聚合操作
该项目测试使用的eNSP软件。
4.1、项目拓扑图
4.2、交换机设置
LSW1:
<Huawei>undo ter
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>syst
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SW1
[SW1]user-in
[SW1]user-interface console 0
[SW1-ui-console0]idle-ti
[SW1-ui-console0]idle-timeout 0 0
[SW1-ui-console0]q
[SW1]nt eth
[SW1]nt eth-
[SW1]nt Eth
[SW1]int eth
[SW1]int Eth-
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]int e0/0/1
[SW1-Ethernet0/0/1]eth
[SW1-Ethernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Ethernet0/0/1]int e0/0/2
[SW1-Ethernet0/0/2]eth
[SW1-Ethernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Ethernet0/0/2]int e0/0/3
[SW1-Ethernet0/0/3]eth
[SW1-Ethernet0/0/3]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Ethernet0/0/3]int e0/<