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
- Bundle ports with LACP and predict which mode pairs form a channel.
- List the settings every member must share.
- Build a Layer 2 (switchport) and a Layer 3 (routed) EtherChannel.
- Explain per-flow load balancing and why one flow never uses two links.
- Read the flags in
show etherchannel summary.
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.
| SW1 | SW2 | Channel? |
|---|---|---|
| active | active or passive | Yes (LACP) |
| passive | passive | No: both wait |
| desirable | desirable or auto | Yes (PAgP) |
| auto | auto | No |
| on | on | Yes, without checks |
| on | active or desirable | No: 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,20interface range GigabitEthernet0/1 - 2
no switchport
channel-group 1 mode active
!
interface Port-channel1
ip address 10.0.12.1 255.255.255.252Load 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-balanceCommands
show etherchannel summary | Each 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-channel | Details of each port-channel, including the protocol and how long members have been bundled. |
show lacp neighbor | The LACP partner of each member, its system ID and port state. |
show interfaces Port-channel1 | Bandwidth (the sum of the members) and counters of the logical link. |
show etherchannel load-balance | The hash method in use. |
Exam traps
- passive + passive and auto + auto never form a channel.
- Mode
onagainstactivedoes not form a channel:onsends no LACP. - A member whose VLAN, trunk or speed settings differ is suspended (
s); fix the member, not the port-channel. - A single file transfer uses one member. Two 1 Gbps links give 2 Gbps in total, not 2 Gbps per flow.
- LACP allows up to 16 ports per group, with 8 active and up to 8 in hot standby.
Check yourself
- SW1 uses
channel-group 1 mode passiveand SW2mode passive. Does the bundle form? - No. Passive ports answer LACP but never start it. At least one side must be active.
show etherchannel summaryshowsGi0/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-groupto build a Layer 3 EtherChannel? no switchporton 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
- 2.1 Configure and verify VLANs that span several switches
- 2.2 Configure and verify links between switches
- 2.6 Describe how Cisco wireless is architected and what each AP mode does
- 2.7 Describe how APs, WLCs and switch ports are physically connected, including LAG
- 2.8 Describe ways to manage network devices: console, Telnet, SSH, HTTP(S), TACACS+/RADIUS, cloud
- 2.9 Interpret the WLC GUI settings that control client connectivity: WLANs, security, QoS, advanced