Sub topic 6
LACP: Negotiating a Bundle
This chapter explains how the Link Aggregation Control Protocol (LACP) decides which ports join a bundle. It assumes you know what a LAG (link aggregation group, also called a port channel) is, how frames are hashed across members, and the basic switch CLI. Configuration commands come in the next chapter. Here the focus is the protocol's working model.
What LACP adds to a static bundle
A static bundle (mode on on Cisco switches) forms as soon as you configure it. Neither side checks the other. If a cable goes to the wrong switch, or the far end is not bundled, the local switch still sends frames into the bundle, and loops or MAC flapping can follow.
LACP is defined in IEEE 802.3ad, now part of 802.1AX. It adds a conversation between the two ends. A port joins the bundle only after the partner confirms that it can aggregate the same links. LACP also detects a member that stays link-up but stops passing LACP frames. A static bundle cannot detect that failure.
LACPDUs
LACP runs between directly connected devices, which the standard calls systems. Each end sends LACP data units (LACPDUs) out every member port.
- Destination MAC:
01-80-C2-00-00-02, the Slow Protocols multicast address. Bridges do not forward it. - EtherType:
0x8809(Slow Protocols), subtype 1. - Never tagged or forwarded across the bundle: a LACPDU describes one physical link, not the whole path.
Each LACPDU carries two blocks of information. The actor block describes the sender. The partner block is what the sender currently believes about the other end, taken from the last LACPDU it received.
| Field | Meaning |
|---|---|
| System priority and system ID | Identifies the device. The ID is a MAC address. A lower priority wins ties. |
| Key | A number that says which ports on this device could aggregate together. It is derived from speed, duplex, and administrative settings. |
| Port priority and port number | Identify the port. Port priority decides which ports are used when more ports exist than can be active. |
| State flags | Activity, Timeout, Aggregation, Synchronization, Collecting, Distributing, Defaulted, Expired |
How a bundle forms
Two ports are eligible to share a bundle when both are true:
- On the local device, they share the same key.
- On the partner, every one of those ports reports the same partner system ID and the same partner key.
The second condition is why LACP catches miscabling. If Gi0/1 connects to Switch B and Gi0/2 connects to Switch C, they report different partner system IDs. They cannot join the same bundle, even though both ports are configured identically.
Once ports qualify, each moves through the states the flags describe:
- Each port sends LACPDUs and learns the partner's values.
- When the partner's view of this port matches reality, the Synchronization flag is set. The port is in sync and attached to an aggregator.
- The port sets Collecting, so it accepts incoming frames from the bundle.
- After the partner also reports Collecting, the port sets Distributing and starts sending frames.
Collecting is enabled before Distributing so that the far end never sends frames to a port that is not yet ready to receive them.
The key is only locally meaningful. Switch A's key 1 and Switch B's key 5 do not need to match. Each side checks that the partner's key is consistent across its own member ports.
Active and passive modes
An LACP port runs in one of two modes:
- Active sends LACPDUs on its own initiative.
- Passive stays silent until it receives a LACPDU, then replies.
| Local mode | Remote mode | Result |
|---|---|---|
| active | active | Bundle forms |
| active | passive | Bundle forms |
| passive | passive | No bundle. Neither side starts the conversation. |
| active or passive | static `on` | No bundle. The static side sends no LACPDUs. |
Use active on both ends unless you have a reason not to. A passive-passive pair fails quietly: the ports stay up but remain individual links, and spanning tree may block one of them.
Timers
LACPDUs are sent periodically, at a rate set by the receiving side's request:
- Fast: one LACPDU per second. The partner declares the port expired after 3 seconds without one.
- Slow: one per 30 seconds. Expiry takes 90 seconds.
The fast rate shortens detection of a one-way failure, such as a unidirectional fiber break where the link light stays on. The cost is slightly more control traffic, and on some platforms fast timers interact badly with software upgrades. Treat these as platform-specific and check the vendor's guidance before using fast rates on devices that support in-service upgrades. Many networks run the slow default, and some use fast on critical links.
More ports than the bundle can use
A bundle has a maximum number of active members, commonly 8. Some platforms let you configure up to 16 candidate ports, with the extra 8 as hot standby. LACP chooses which ports are active in this order:
- The device with the lower system priority (then lower system ID) makes the decision. The other end follows.
- On that device, ports with the lower port priority value are preferred, with the lower port number breaking ties.
You can influence both choices:
! Make this switch the decision-maker (lower value wins, default 32768)
lacp system-priority 100
!
interface GigabitEthernet0/1
lacp port-priority 100
!
interface GigabitEthernet0/3
lacp port-priority 200On some platforms you can also cap the active members with lacp max-bundle N. Command names and availability differ by vendor and software version.
Hot-standby ports are in sync but not distributing. If an active member fails, the highest-priority standby takes its place.
What happens when a member fails
LACP reacts to two kinds of failure:
- Link down. The port leaves the bundle immediately. The hash redistributes flows across the remaining members.
- LACPDUs stop arriving. The partner entry expires after 3 or 90 seconds, depending on the timer. The port is removed from the bundle even though the physical link looks up.
If every LACPDU stops, a port may revert to the Defaulted state. Some platforms then run it as an individual, non-bundled link. Others suspend it. Behavior varies by vendor and configuration.
Reading LACP state
The show lacp neighbor command (named in the topic's verification set) displays the partner information the local switch has learned. Typical output:
Flags: S - Device is requesting Slow LACPDUs
F - Device is requesting Fast LACPDUs
A - Device is in Active mode P - Device is in Passive mode
Channel group 1 neighbors
Partner's information:
LACP port Admin Oper Port Port
Port Flags Priority Dev ID Age key Key Number State
Gi0/1 SA 32768 0011.2233.4455 14s 0x0 0x5 0x102 0x3D
Gi0/2 SA 32768 0011.2233.4455 15s 0x0 0x5 0x103 0x3DCheck three things:
- Both ports show the same
Dev IDand the sameOper Key. If either differs, the ports are cabled to different devices or configured differently on the far end. - The
Agecolumn is small and keeps resetting. A growing age means LACPDUs have stopped arriving. - The state value
0x3Dis a bitmask of the flags above. In this case it means Activity, Aggregation, Synchronization, Collecting and Distributing are set, which is a healthy member. A value without Synchronization means the port is not in the bundle.
Common mistakes
- Passive on both ends. The bundle never forms. Set at least one side to active.
- Mixing
onand LACP. One side sends no LACPDUs, so the LACP side never sees a partner. Use the same protocol at both ends. - Different speeds or duplex on members. The keys differ, so the ports cannot aggregate. The next chapter covers the full list of member requirements.
- Assuming the key must match across devices. It is local to each device. Only the partner's reported key must be consistent across the local members.
Exercise
Switch A has Gi0/1 and Gi0/2 in LACP active mode. Gi0/1 is cabled to Switch B and Gi0/2 is cabled to Switch C, and both B and C are also LACP active with matching settings. Will Gi0/1 and Gi0/2 form one bundle on Switch A? Explain using the LACP fields.
Show answer
No. Gi0/1 and Gi0/2 report different partner system IDs, one for B and one for C. LACP only bundles ports whose partner system ID and partner key are the same, so the ports cannot aggregate together. A static bundle would have formed regardless, and the miscabling would have caused traffic problems.
Exercise
Switch A is set to LACP passive and Switch B is set to LACP passive. Interface settings are identical. Why does no bundle form, and what is the smallest change that fixes it?
Show answer
A passive port only replies to LACPDUs and never sends the first one. With both ends passive, no LACPDUs are exchanged, so neither side learns a partner. Changing one end (or both) to active fixes it.