这是 network/lacp-link-aggregation.md 的每次改动内容,按时间从新到旧。其他文章一起提交的部分不会出现在这里。
#1
2026-10-18
+82
−0
docs: 新增 23 篇网络/ Linux / Windows / 服务器文章
be5956e
new file mode 100644
@@ -0,0 +1,82 @@
+---
+tags: [链路聚合, LACP, Eth-Trunk]
+order: 40
+---
+
+# 链路聚合(LACP)配置
+
+## 场景
+
+两台交换机之间一根线不够用,或者想做个冗余:两条千兆绑成一条逻辑链路。
+
+## 前置条件
+
+- 两端都支持 LACP,型号/端口速率一致
+- 两端的聚合组编号、模式、允许的 VLAN 必须一致
+- 成员口不能是接入口,聚合后按 trunk 配
+
+## 配置
+
+### H3C
+
+```text
+system-view
+interface Bridge-Aggregation1
+ link-aggregation mode dynamic
+ port link-type trunk
+ port trunk permit vlan 10 20
+ quit
+
+interface GigabitEthernet1/0/23
+ port link-aggregation group 1
+ quit
+interface GigabitEthernet1/0/24
+ port link-aggregation group 1
+ quit
+```
+
+### 华为
+
+```text
+system-view
+interface Eth-Trunk 1
+ mode lacp-static
+ port link-type trunk
+ port trunk allow-pass vlan 10 20
+ quit
+
+interface GigabitEthernet0/0/23
+ eth-trunk 1
+ quit
+interface GigabitEthernet0/0/24
+ eth-trunk 1
+ quit
+```
+
+## 验证
+
+```text
+display link-aggregation verbose
+display link-aggregation summary
+```
+
+H3C 看 `Selected` 端口数;华为用 `display eth-trunk 1`,看 `Selected` / `Unselect`。
+
+## 回滚
+
+```text
+interface GigabitEthernet1/0/23
+ undo port link-aggregation group 1
+ quit
+undo interface Bridge-Aggregation1
+```
+
+先拆成员口再删聚合组,顺序反了会报错。
+
+## 坑
+
+- 两端模式不一致(一边 static 一边 dynamic)会协商不起来,端口一直 Unselect。
+- 成员口速率/双工不一致,LACP 会只选中一部分。
+- 聚合后带宽不是简单相加:单条 TCP 流还是走一个成员口。
+- 跨设备聚合(M-LAG / 堆叠)另说,别按单机聚合配。
+- 拆聚合前先确认没在用,`undo` 的瞬间链路会断。