匹配 lacp 状态的标准

网络工程 交换 IEEE-802.1ax
2022-02-23 17:17:23

我进行了研究,发现以下是启动 LACP 的最低要求。

  1. 一侧应该是活动的。
  2. 所有端口速度应该相同。
  3. 双工设置必须相同。

我也发现了一些其他的东西。

A. The media would need to be same. As in 1G Ethernet and 1G Fiber are not allowed. 
B. VLAN passed on both the sides should match.

我不明白为什么需要 A 点和 B 点才能使 LACP 启动。如果我错了,谁能解释这里的逻辑或纠正我。

2个回答

A. 媒体需要相同。不允许使用 1G 以太网和 1G 光纤。

这在许多实现中实际上并不是必需的,但一些供应商确实限制了这一点。它可能有技术原因(-T、-X 或 -R 的不同 PCS 子层变体,因此可能使用不同的编码引擎/芯片),或者只是实施者过于顺从。许多实现不介意不同的媒体。

802.1AX不关心介质,没有提到这样的要求。(AX 甚至不禁止不同的链接速度,但明确排除了在这种 LAG 上的流量分配,请参阅 IEEE 802.1AX 条款 6.1.1)。

B. 两边通过的 VLAN 应该匹配。

当然,跨 LAG 中继的 VLAN 关联需要统一。由于大多数(全部?)实现将 LAG 中继视为单个逻辑接口并忽略/删除以前的物理接口配置,因此这不是问题。

Etherchannels(链路聚合)的大多数问题都是由于配置错误造成的。请记住,所有物理接口的配置必须匹配。下面是一些需要在两端匹配以确保 LACP 链路正常运行的常用参数。

We can see that device1 has been configured for LACP and device 2 for PAgP, it will don't work because both sides should be LACP or both side should be pAgP

LACP is configured for passive or active mode. Interfaces in active mode will “actively” try to form an etherchannel. Interfaces in passive mode will only respond to LACP requests. So you can configure active and passive on each side to make link to come up

Must be configured both as trunk ports should be same mode of Port

Must be same matching bandwidth on either side to make LACP come up