Jeremy’s IT Lab lecture video:

Day 23 - EtherChannel


Commands


EtherChannel Information

EtherChannel is a technology that groups multiple physical interfaces together to act as a single logical interface.

  • Traffic using the EtherChannel will be load balanced among the physical interfaces in the group through an algorithm.
  • STP will treat EtherChannel groups as ONE single interface, rather than applying STP rules on each interface individually

Other names for EtherChannel

  • Port Channel
  • LAG (Link Aggregation Group)

Example: STP functionality and EtherChannels

Without EtherChannels:

  • If you connect two switches together with multiple links, all except one will be disabled by spanning tree.
  • If all of ASW1’s interfaces were forwarding, Layer 2 loops would form between both switches, leading to broadcast storms.
  • The alternate ports will remain unused and in a discarding/blocking state, unless the current active link fails.

With EtherChannels

  • EtherChannel groups these physical interfaces together to act as one single logical interface.
  • STP will also treat this group as a single interface.

EtherChannel Load-Balancing

EtherChannel load balances based on ‘flows

  • A flow is a communication between two nodes in the network.
  • Frames in the same flow will be forwarded using the same physical interface.
  • If frames in the same flow were forwarded out of different physical interfaces, some of the frames could arrive at the destination out of order, which can cause problems.

You can change the method of the load-balancing / interface selection calculation to one of these 6 modes through the port-channel load-balance METHOD command:

  1. Source MAC (src-mac)
  2. Destination MAC (dst-mac)
  3. Source AND Destination MAC (src-dst-mac)
  4. Source IP (src-ip)
  5. Destination IP (dst-ip)
  6. Source AND Destination IP (src-dst-ip)

EtherChannel Protocols

There are three EtherChannel protocols on Cisco switches.

  1. PAgP (Port Aggregation Protocol)
    • Cisco proprietary protocol.
    • Dynamically negotiates the creation and maintenance of the EtherChannel. (like DTP)
  2. LACP (Link Aggregation Control Protocol) (802.3ad)
    • Industry standard protocol.
    • Dynamically negotiates the creation and maintenance of the EtherChannel. (like DTP)
  3. Static EtherChannel
    • A protocol isn’t used to determine if an EtherChannel should be formed.
    • Interfaces are statically configured to form an EtherChannel.

EtherChannel Protocol Modes

  1. PAgP: Desirable and Auto
    • Auto + Auto = ==No== EtherChannel
    • Desirable + Auto = EtherChannel
    • Desirable + Desirable = EtherChannel
  2. LACP: Active and Passive
    • Passive + Passive = ==No== EtherChannel
    • Active + Passive = EtherChannel
    • Active + Active = EtherChannel
  3. On/Static: on
    • On mode only works with on mode and is not compatible with LACP or PAgP.

Maximum group size for EtherChannels

  • Up to 8 interfaces can be formed into a single EtherChannel
  • LACP allows up to 16, but only 8 will be active, while the other 8 will be in standby mode, ready to take over when an active interface fails.

EtherChannel Configurations

EtherChannels can be created with the interface port-channel GROUP-NUMBER command or interface poNUMBER command.
Then, they can be assigned to interfaces with the channel-group GROUP-NUMBER mode MODE command.
You can also limit the usable EtherChannel modes to the ones of a specific protocol (ie. PAgP) with the channel-protocol PROTOCOL command.

  • Member interfaces in the same EtherChannel need to have the same configurations as each other, otherwise, they will be excluded from the EtherChannel group.
  • These configurations are:
    • Same speed
    • Same duplex (full/half)
    • Same switchport mode (access/trunk)
    • Same allowed VLANs/native VLAN (for trunk interfaces)

channel-protocol command

  • Using the channel-protocol PROTOCOL command will limit the usable EtherChannel modes to the ones of that protocol.
  • For example, using LACP will limit you to Active and Passive modes only. Even static/on EtherChannel will not be a usable mode on the EtherChannel interfaces.

channel-group numbers matching

  • In the channel-group GROUP-NUMBER mode MODE command, the channel-group group-number has to match for the member interfaces on the same switch.
  • However, it doesn't have to match the channel-group group-number on the other switch.
    (channel-group 1 on ASW1 can form an EtherChannel with channel-group 2 on DSW1)