Switching and Network Access · Topic 2 of 6

EtherChannel and LACP

Bundle links with LACP into Layer 2 and Layer 3 port channels, learn which modes form a bundle, and read show etherchannel summary flags to find faults.

  • 5 min
In a nutshell
  • EtherChannel merges physical links into one logical link, so Spanning Tree does not block them.
  • LACP is the open standard. Modes are active and passive. PAgP is Cisco only.
  • Active with active or passive forms a bundle. Passive with passive does not.

What it is

EtherChannel bundles several physical links into one logical link, so Spanning Tree does not block any of them.

Two switches joined by two cables would normally have one cable blocked. With a bundle, Spanning Tree sees a single link, and traffic uses every member. The bundle also survives the loss of one member.

The bundle is a port channel, shown on Cisco devices as Port-channel1. LACP (Link Aggregation Control Protocol) is the open standard, IEEE 802.3ad, later 802.1AX. It negotiates the bundle so a mistake at one end is caught.

Two cableswithout a bundleSpanning Tree blocks oneOne link usedhalf the capacityTwo cablesone port channelseen as one linkAll links usedmore bandwidth and redundancy

How it works

Members join the bundle through LACP, and every member must match.

LACP modes

ModeMeaning
activeSends LACP messages and asks the neighbor to bundle
passiveReplies to LACP messages but does not start them
onNo negotiation, the ports are forced into the bundle

A bundle forms with active and active, or active and passive. Passive with passive does not form, because neither side asks. on forms a bundle only with another on. PAgP, with the modes desirable and auto, is the Cisco proprietary alternative. LACP and PAgP cannot negotiate with each other.

Rules for member ports

All members need the same speed, duplex, switchport mode, access VLAN or trunk settings, and native VLAN. A port that does not match is suspended or left out. On most Catalyst switches up to eight ports are active in a bundle. LACP can also keep extra members as hot-standby (flag H), up to a platform limit, commonly 16 members in all.

Layer 2 port channel

A Layer 2 port channel is a switchport bundle. It is usually a trunk between switches.

interface range GigabitEthernet0/1 - 2
 channel-group 1 mode active
interface Port-channel1
 switchport mode trunk
 switchport trunk allowed vlan 10,20

channel-group 1 creates Port-channel1 automatically. Put shared settings on the port channel interface, so they apply to all members.

Layer 3 port channel

A Layer 3 port channel is a routed link. The port channel carries the IP address, and the members have no switchport function.

interface Port-channel2
 no switchport
 ip address 10.1.1.1 255.255.255.252
interface range GigabitEthernet0/3 - 4
 no switchport
 channel-group 2 mode active

The other end needs the same design, a routed port channel with an address in the same subnet.

Load balancing

The device hashes addresses, and sometimes port numbers, to pick a member for each conversation. One conversation always uses the same member, so packets stay in order and one transfer never exceeds one link's speed. port-channel load-balance src-dst-ip changes the hash input.

Reading the result

SW1# show etherchannel summary
Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator

Number of channel-groups in use: 2
Number of aggregators:           2

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1      Po1(SU)         LACP      Gi0/1(P)    Gi0/2(P)
2      Po2(RU)         LACP      Gi0/3(P)    Gi0/4(P)

SU is a healthy Layer 2 bundle and RU is a healthy Layer 3 bundle. P beside a member means it is bundled.

Now the faults.

1      Po1(SD)         LACP      Gi0/1(I)    Gi0/2(I)
1      Po1(SU)         LACP      Gi0/1(P)    Gi0/2(s)

The first line shows SD with stand-alone members. The port channel is down because no LACP partner answered, for example passive on both ends. The second shows one member suspended because its settings differ from the other members. Compare the two ports with show running-config interface and fix the difference.

Bundle downSD and I flagscheckModesactive or passive each endMember suspendeds flagcheckSettingsspeed, duplex, mode, VLANs
Exam tip

On a port channel, S means Layer 2 and R means Layer 3. The second letter U means in use and D means down.

Common mistakes

Passive on both sides. Neither end sends LACP messages, so members stay stand-alone.

Mixing LACP and PAgP. The two protocols cannot form a bundle with each other.

One end on, the other end negotiating. The static end sends no LACP messages, so the bundle fails.

One member that differs. A different speed, duplex or trunk setting suspends that member, and the bundle loses capacity. A %EC-5-CANNOT_BUNDLE2 message is logged.

Putting the IP address on a member. In a Layer 3 bundle the address goes on the port channel interface, not on the members.

Watch out

Apply trunk and VLAN settings to the port channel interface. Changing only one member makes it incompatible with the rest.

What to remember for the exam

  • EtherChannel merges physical links into one logical link, so Spanning Tree does not block them.
  • LACP is the open standard. Modes are active and passive. PAgP is Cisco only.
  • Active with active or passive forms a bundle. Passive with passive does not.
  • Members must match in speed, duplex, switchport mode and VLAN settings.
  • channel-group NUMBER mode active creates the port channel.
  • A Layer 3 port channel needs no switchport and an IP address on the port channel.
  • show etherchannel summary shows SU or RU for the bundle and P for bundled members.
  • s means suspended, I means stand-alone and D means down.

Check yourself

  • Why does Spanning Tree not block the member links of an EtherChannel?

    It sees the whole bundle as one logical link, the port channel, so no loop is present.

  • Both ends of a new LACP bundle are set to passive. What does show etherchannel summary show?

    The port channel shows SD, and the members show I for stand-alone, because neither end starts LACP negotiation.

  • What do the flags RU and P mean together?

    RU on the port channel means it is a Layer 3 bundle in use, and P on a member means that port is bundled.

Topic 2 of 6 in Switching and Network Access

Test yourself on Switching and Network Access

The full Cisco CCNA 200-301 v2.0 question bank has 1,242 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Cisco. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.