Skip to content
FALCON CORETECHNOLOGIES

// Lesson 22 of 49 · Switching and VLANs

EtherChannel

Bundling links with LACP, PAgP or static mode, load balancing, and the settings that must match.
2 min read#etherchannel#lacp

Two parallel links between switches would normally be reduced to one by Spanning Tree. EtherChannel bundles up to eight physical links into one logical port-channel, so STP sees a single link and all members carry traffic.

Benefits

  • More bandwidth between switches.
  • Redundancy: if a member fails, traffic moves to the others without an STP recalculation.
  • One logical interface to configure.

Negotiation modes

Protocol Modes Forms a bundle when
LACP (IEEE 802.3ad, open standard) active, passive at least one side is active
PAgP (Cisco proprietary) desirable, auto at least one side is desirable
Static on both sides are on (no negotiation)

passive+passive or auto+auto never forms a bundle. Prefer LACP active on both sides: it is a standard and it detects misconfiguration, while on can create loops if the other side is not bundled.

Configure (Layer 2 trunk bundle)

SW1(config)# interface range GigabitEthernet1/0/23 - 24
SW1(config-if-range)# channel-group 1 mode active
SW1(config-if-range)# exit
SW1(config)# interface port-channel 1
SW1(config-if)# switchport mode trunk
SW1(config-if)# switchport trunk allowed vlan 10,20,30

Configure the port-channel interface afterwards; settings are pushed to the members.

Everything must match

All member ports (and both ends) need the same speed, duplex, switchport mode, access VLAN or trunk allowed VLANs and native VLAN. A mismatched member is suspended (s in the output).

Load balancing

Traffic is not spread packet by packet. The switch hashes fields such as source/destination MAC or IP and sends each flow down one member, so one big flow uses one link only.

SW1(config)# port-channel load-balance src-dst-ip
SW1# show etherchannel load-balance

Verify

SW1# show etherchannel summary
Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        S - Layer2      R - Layer3      U - in use
Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1      Po1(SU)         LACP      Gi1/0/23(P)    Gi1/0/24(P)

SU = Layer 2, in use. (P) on each member = bundled. (I) or (s) means a problem.

Layer 3 EtherChannel

On Layer 3 switches the port-channel can be a routed interface: no switchport on the members and the port-channel, then an IP address on the port-channel.

Key points

  • EtherChannel = up to 8 links as one logical link; STP sees one link.
  • LACP active/passive; PAgP desirable/auto; static on.
  • Member settings must match or ports are suspended.
  • Load balancing is per flow, based on a hash.

Sign in to save your lesson progress across devices. You can read every published lesson without an account.