2.4 Configure and verify LACP EtherChannels at Layer 2 and Layer 3

CCNA 200-301 v1.1 · 2.0 Network Access

An EtherChannel bundles two to eight physical links into one logical link, a port-channel. Spanning tree sees one link, so all members forward instead of all but one being blocked, and the bundle survives the loss of a member. For the CCNA you build it with LACP at Layer 2 and Layer 3 and read show etherchannel summary.

What you must know

Why bundle links

Two parallel links between switches form a loop, so spanning tree blocks one of them: you pay for two links and use one. In an EtherChannel the members are one logical interface, Port-channel1. STP runs on the port-channel, every member forwards, and losing a member only lowers the bandwidth.

Negotiation: LACP, PAgP or on

LACP (IEEE 802.3ad, now 802.1AX) is the open standard and the CCNA's focus. PAgP is Cisco's own protocol. Mode on builds the bundle with no negotiation at all.

SW1SW2Channel?
activeactive or passiveYes (LACP)
passivepassiveNo: both wait
desirabledesirable or autoYes (PAgP)
autoautoNo
ononYes, without checks
onactive or desirableNo: one side does not negotiate

Every member must match: speed and duplex, access or trunk mode, access VLAN or allowed and native VLANs. A port that differs is suspended (s) instead of joining.

Layer 2 and Layer 3 EtherChannels

interface range GigabitEthernet0/1 - 2
 channel-group 1 mode active
!
interface Port-channel1
 switchport mode trunk
 switchport trunk allowed vlan 10,20
interface range GigabitEthernet0/1 - 2
 no switchport
 channel-group 1 mode active
!
interface Port-channel1
 ip address 10.0.12.1 255.255.255.252

Load balancing

The switch picks a member by hashing fields of each frame, so all frames of one conversation take the same link and arrive in order. One flow never goes faster than one member. Hashing on source and destination IP spreads traffic better than on MAC addresses when most traffic goes to one router.

port-channel load-balance src-dst-ip
!
SW1# show etherchannel load-balance

Commands

show etherchannel summaryEach group with its port-channel and members. Flags: SU Layer 2 in use, RU Layer 3 in use, P bundled, s suspended, I stand-alone, D down.
show etherchannel port-channelDetails of each port-channel, including the protocol and how long members have been bundled.
show lacp neighborThe LACP partner of each member, its system ID and port state.
show interfaces Port-channel1Bandwidth (the sum of the members) and counters of the logical link.
show etherchannel load-balanceThe hash method in use.

Exam traps

Check yourself

SW1 uses channel-group 1 mode passive and SW2 mode passive. Does the bundle form?
No. Passive ports answer LACP but never start it. At least one side must be active.
show etherchannel summary shows Gi0/2(s). What does it mean, and what do you look for?
The member is suspended. Its configuration differs from the other members, typically the trunk or VLAN settings, speed or duplex.
What must you add before channel-group to build a Layer 3 EtherChannel?
no switchport on the members, so they become routed ports. The address then goes on the port-channel.
Why does STP not block one of the two links in a bundle?
STP sees the bundle as a single logical interface, the port-channel, so there is no loop to break between its members.

Labs

Try it live: EtherChannel with LACP

More topics in 2.0 Network Access