# LACP

在IEEE标准中，链路聚合控制协议（Link Aggregation Control Protocol, LACP）提供了一种控制多个物理接口聚合成一个单一逻辑通道的方式。LACP通过发送LACP数据包给对端（直接连接的设备也实现LACP）允许网络设备协商出一个自动聚合的链路。

LACP功能和案例：

* 端口通道允许的最大聚合端口数：数值通常是1到8。一些设备的取值范围是1到4。（如Cisco 10000系列路由器）
* LACP数据包是在多播组MAC地址`01:80:c2:00:00:02`（`01-80-c2-00-00-02`）上发送
* 在LACP检测时：
  * LACP数据包每秒发送一次
  * 对于链路成员保持存活到机制（默认：慢速=30s，快速=1s）
* LACP可以具有端口负载均衡模式：
  * 链路(`link-id`)整数是在负载均衡中标记链路成员所使用的，取值范围是1到8
* LACP模式：
  * 主动端口：必须无条件激活LACP
  * 被动端口：在监测到LACP设备时必须激活LACP(这是默认状态)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/network/link_aggregation/lacp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
