EtherChannel on Cisco

An LACP, PAgP or static link aggregation — with a mode check.
Plus commands for the other end: Cisco, MikroTik, Linux, Windows, ESXi.

EtherChannel on Cisco

Configuration of a link aggregation for a Cisco Catalyst switch: LACP, PAgP or static; a trunk, an access port or a routed port — plus the commands for the device on the other end: a Cisco switch, MikroTik, Linux, Windows Server or VMware ESXi.

Comma-separated or as a range: Gi1/0/1-2, Te1/1/1. All ports must have the same speed.
Usually 1 to 48; the two ends may use different numbers.
active and desirable start negotiation, passive and auto only answer. Everyone speaks LACP, PAgP is Cisco-only, and mode on does not check the other end.
For example 10,20,30-35. Empty means all VLANs, which is not safe.
Empty means VLAN 1. A separate unused VLAN is better.
src-dst-ip is usually best. It is a global command: it applies to every Port-channel of the switch.
LACP only. With fewer live ports the channel goes down — useful when there is a backup path.

The other end

Comma-separated. Empty means as in the placeholder.
Configuration of this switch

   
Commands for the other end

   
Check

   
Undo

   

The configuration is built in your browser and is not sent anywhere.

How to build an EtherChannel

EtherChannel bundles several physical ports into one logical port, a Port-channel. The bundle is faster than one cable and keeps working if a cable breaks. It is also easy to get wrong: modes that do not match, ports with different settings, or a static bundle on one side that creates a loop. The generator checks such mistakes and gives commands for both ends at once.

How to use it

  1. Enter the ports, the Port-channel number and the mode. The default is LACP active, which everyone understands.
  2. Choose the purpose: a trunk with a VLAN list, an access port or a routed port.
  3. Choose what is at the other end — the generator suggests commands for it too.
  4. Paste the configuration from the console or through a port outside the bundle, and check with the commands from the “Check” block.

LACP, PAgP or static

LACP (802.3ad) is an open standard supported by switches of any vendor, MikroTik, Linux, Windows and ESXi with a Distributed Switch. The ends exchange control packets and build the bundle only when both are ready, so a wiring mistake does not cause a loop. PAgP does the same but only for Cisco. Static mode (on) checks nothing; it is for places without protocols, such as a standard ESXi vSwitch. A trunk on a single port is configured on the “Cisco port configuration” page, and VLAN lists are easy to compare on “Cisco VLAN lists”.

Frequently asked questions

Why does the channel not come up?

Most often the modes do not match (passive with passive, auto with auto, on with LACP) or port settings differ: speed, duplex, VLANs. Look at show etherchannel summary: flag s means suspended, I means standalone; details are in show etherchannel detail and the log.

Will two 1 Gbit/s ports be twice as fast?

In total, yes, but a single connection uses one port: balancing spreads flows by address. Copying a file between two computers stays at 1 Gbit/s, while many users together get more.

Can I bundle links to two different switches?

Only if they act as one device: a stack (StackWise), VSS or StackWise Virtual at Cisco, MLAG at other vendors. With two independent switches LACP will not form, and a static bundle creates a loop.

Which load balancing should I choose?

src-dst-ip fits almost always. src-dst-mixed-ip-port on Catalyst 9000 also uses ports — better when traffic flows between two servers. src-dst-mac helps only for non-IP traffic.

More tools

Cisco

Cisco L2 security
DHCP snooping, DAI, IP Source Guard
Cisco SNMPv3
authPriv instead of communities, ACL, traps
Cisco config diff
Section by section, with draft commands
Cisco backups
A copy on every write memory and on a schedule
Cisco Type 7
Encode and decode password 7
Cisco config audit
Weak passwords, Telnet, SNMP and fixes
Hardened Cisco config
SSH, AAA, ACL, logging in one block
Cisco ACL generator
Ranges to wildcards, prefix lists, object groups