链接聚合是将一组物理接口_错题集之——聚合链路

聚合链路错题

前言

一、实验情况

二、代码实例

三、问题出现

四、问题原因

五、总结

前言

链路聚合技术:链路聚合是将一组物理接口捆绑在一起作为一个逻辑接口来增加带宽的一种方法,又称多接口负载均衡组成链路聚合组,通过在两台设备之间建立链路聚合组,可以提供更高的通讯带宽和更高的可靠性。链路聚合不仅为设备通信提供了冗余保护,而且不需要对硬件进行升级。

聚合链路实际上挺简单的,但是有的时候,因为简单,所以我们会遗漏一些值得注意的东西。

今天做了个简单的聚合链路,就出现了问题。

一、实验情况

00426aaf0297b7b71357bcf4d4d4d34c.png

为了复习,我做了很简单的一张图,来复习一下。

二、代码实例

代码如下(LSW1):

undo terminal monitor

Info: Current terminal monitor is off.

sys

Enter system view, return user view with Ctrl+Z.

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]q

[Huawei]vlan 2

[Huawei-vlan2]q

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]port link-type access

[Huawei-Ethernet0/0/1]port default vlan 2

[Huawei-Ethernet0/0/1]q

[Huawei]lacp pri 100

[Huawei]int eth-tr 1

[Huawei-Eth-Trunk1]bpdu enable

[Huawei-Eth-Trunk1]mode lacp-static

[Huawei-Eth-Trunk1]port link-type trunk

[Huawei-Eth-Trunk1]port trunk allow-pass vlan all

[Huawei-Eth-Trunk1]q

[Huawei]int e0/0/3

[Huawei-Ethernet0/0/3]eth-tr 1

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei-Ethernet0/0/3]int e0/0/4

[Huawei-Ethernet0/0/4]eth-tr 1

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei-Ethernet0/0/4]int e0/0/2

[Huawei-Ethernet0/0/2]eth-tr 1

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei-Ethernet0/0/2]int e0/0/5

[Huawei-Ethernet0/0/5]eth-tr 1

Info: This operation may take a few seconds. Please wait for a moment...done.

代码如下(LSW2):

The device is running!

undo terminal monitor

Info: Current terminal monitor is off.

sys

Enter system view, return user view with Ctrl+Z.

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]q

[Huawei]vlan 2

[Huawei-vlan2]q

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]port link-type access

[Huawei-Ethernet0/0/1]port default vlan 2

[Huawei-Ethernet0/0/1]q

[Huawei]lacp pri 100

[Huawei]int eth-tr 1

[Huawei-Eth-Trunk1]bpdu enable

[Huawei-Eth-Trunk1]mode lacp-static

[Huawei-Eth-Trunk1]port link-type trunk

[Huawei-Eth-Trunk1]port trunk allow-pass vlan all

[Huawei-Eth-Trunk1]q

[Huawei]int g0/0/1

[Huawei-GigabitEthernet0/0/1]eth-tr 1

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei-GigabitEthernet0/0/1]int g0/0/2

[Huawei-GigabitEthernet0/0/2]eth-tr 1

Info: This operation may take a few seconds. Please wait for a moment...done.

代码如下(LSW3):

undo terminal monitor

Info: Current terminal monitor is off.

sys

Enter system view, return user view with Ctrl+Z.

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]q

[Huawei]vlan 2

[Huawei-vlan2]int e0/0/3

[Huawei-Ethernet0/0/3]port link-type access

[Huawei-Ethernet0/0/3]port default vlan 2

[Huawei-Ethernet0/0/3]q

[Huawei]lacp pri 100

[Huawei]int eth-tr 1

[Huawei-Eth-Trunk1]bpdu enable

[Huawei-Eth-Trunk1]mode lacp-static

[Huawei-Eth-Trunk1]port link-type trunk

[Huawei-Eth-Trunk1]port trunk allow-pass vlan all

[Huawei-Eth-Trunk1]q

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]eth-tr 1

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei-Ethernet0/0/1]int e0/0/2

[Huawei-Ethernet0/0/2]eth-tr 1

Info: This operation may take a few seconds. Please wait for a moment...done.

三、问题出现

这时候,我们来测一下连通性:

PC5:

PC>ping 192.168.10.10

Ping 192.168.10.10: 32 data bytes, Press Ctrl_C to break

From 192.168.10.30: Destination host unreachable

From 192.168.10.30: Destination host unreachable

From 192.168.10.30: Destination host unreachable

From 192.168.10.30: Destination host unreachable

From 192.168.10.30: Destination host unreachable

--- 192.168.10.10 ping statistics ---

5 packet(s) transmitted

0 packet(s) received

100.00% packet loss

PC>ping 192.168.10.20

Ping 192.168.10.20: 32 data bytes, Press Ctrl_C to break

From 192.168.10.30: Destination host unreachable

From 192.168.10.30: Destination host unreachable

From 192.168.10.30: Destination host unreachable

From 192.168.10.30: Destination host unreachable

From 192.168.10.30: Destination host unreachable

--- 192.168.10.20 ping statistics ---

5 packet(s) transmitted

0 packet(s) received

100.00% packet loss

PC1:

PC>ping 192.168.10.30

Ping 192.168.10.30: 32 data bytes, Press Ctrl_C to break

From 192.168.10.30: bytes=32 seq=1 ttl=128 time=63 ms

From 192.168.10.30: bytes=32 seq=2 ttl=128 time=62 ms

From 192.168.10.30: bytes=32 seq=3 ttl=128 time=63 ms

From 192.168.10.30: bytes=32 seq=4 ttl=128 time=62 ms

From 192.168.10.30: bytes=32 seq=5 ttl=128 time=62 ms

--- 192.168.10.30 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 62/62/63 ms

PC>ping 192.168.10.20

Ping 192.168.10.20: 32 data bytes, Press Ctrl_C to break

From 192.168.10.10: Destination host unreachable

From 192.168.10.10: Destination host unreachable

From 192.168.10.10: Destination host unreachable

From 192.168.10.10: Destination host unreachable

From 192.168.10.10: Destination host unreachable

--- 192.168.10.20 ping statistics ---

5 packet(s) transmitted

0 packet(s) received

100.00% packet loss

四、问题原因

这是为什么呢?

这时候,我小心翼翼的翻开了我珍藏已久的老笔记本,翻开当时记录的聚合链路知识点,这时候,我发现了聚合链路的一些配置之一问题:

配置注意事项

1、一个Eth-Trunk接口中的成员接口必须是以太网类型和速率相同的接口。

2、Eth-Trunk链路两端相连的物理接口的数量、速率、双工方式、流控配置必须一致。

3、如果本端设备接口加入了Eth-Trunk,与该接口直连的对端接口也必须加入Eth-Trunk,两端才能正常通信。

4、两台设备对接时需要保证两端设备上链路聚合的模式一致。

我发现了问题:b07430f1786fe098a3215de85b703d24.png

两个交换机之间的端口速率不一致。

五、总结

虽然我只出现了端口速率不一致,但是其他的像双工模式、流控配置等都得注意。

有时候题目虽然简单,但是却容易出现平时我们忽略的问题,越是简单的题目,越是容易发现问题的所在。

毕竟一个大的项目就是一个个小项目集合起来的,而小项目都是由这些更小的实验组合起来的,一旦出现我们忽略的问题,就很难排错,所以值得大家注意。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值