Sub topic 6
LACP: negotiating a bundle
This chapter assumes you know VLANs and trunks, what a LAG (link aggregation group, also called a port channel) is, and how to move around a switch CLI. It covers how LACP forms a bundle and what to check when one does not form.
What LACP does
LACP is the Link Aggregation Control Protocol, defined in IEEE 802.3ad and now maintained in 802.1AX. Each end sends small control frames called LACPDUs to the slow-protocols multicast address 01-80-C2-00-00-02. A LACPDU announces the sender's system ID, port, and key. The key identifies which ports could be bundled together.
A port joins the bundle only after both sides agree. Static mode (on) has no such check. A cabling or configuration mistake can therefore create a loop or black-hole traffic. LACP catches those mistakes before the port carries data.
The negotiation
A passive port never starts the exchange. It only answers LACPDUs it receives. An active port sends them whether or not it hears anything back.
| Side A | Side B | Result |
|---|---|---|
| active | active | Bundle forms |
| active | passive | Bundle forms |
| passive | passive | No bundle, because neither side sends first |
| active | on (static) | No bundle, because the static side sends no LACPDUs |
Use active on both ends unless you have a reason not to.
Timers and priorities
LACP has two transmission rates:
- Slow: one LACPDU every 30 seconds, with a 90-second timeout.
- Fast: one LACPDU every second, with a 3-second timeout.
Fast detects a silent partner sooner. This matters when a failure leaves the link up at the physical layer, for example behind a media converter. The two ends do not have to use the same rate. Each side sends at the rate its partner requests.
The system priority decides which switch controls the selection of active members. A lower number wins, and the MAC address breaks ties. The port priority then decides which members are active when more ports are bundled than the platform allows. Classic IOS allows 8 active members and up to 8 more in standby.
Configuration
interface range GigabitEthernet0/1 - 2
switchport mode trunk
switchport trunk allowed vlan 10,20
channel-group 1 mode active
!
interface Port-channel1
switchport mode trunk
switchport trunk allowed vlan 10,20Run the matching configuration on the other switch. Then check the partner details:
show lacp neighbor
show etherchannel summaryIn the summary, (P) means a port is bundled in the port channel. (s) means suspended, and (I) means stand-alone.
Common errors
- Both sides are
passive. Both ports show(I)and no LACPDUs are exchanged. Change one side toactive. - One side uses
onand the otheractive. The LACP side sees no partner and keeps its ports unbundled, while the static side may forward traffic. Use the same protocol on both ends. - Members differ in speed, duplex, or trunk settings. The switch suspends the odd port. Fix the mismatch on the physical port, not only on
Port-channel1. - Members connect to two different neighbors. The partner system IDs differ, so only ports to one partner bundle. This is expected unless you use MLAG.
Exercise
Switch A has channel-group 1 mode passive and Switch B has channel-group 1 mode passive. Both ports are up, but show etherchannel summary shows (I). Why, and what is the smallest fix?
Show answer
A passive port only replies to LACPDUs and never sends the first one. With both ends passive, no LACPDUs are exchanged and no bundle forms. Change one end (preferably both) to mode active.