Port Channels
A port channel (EtherChannel) bundles up to eight physical links into one logical interface. STP sees a single link, so all members forward instead of all but one being blocked. Traffic is spread per flow, not per packet: a single connection never gets more than one member’s bandwidth.
flowchart LR
subgraph po1 [Port-channel 1]
direction TB
g1[Gi0/1 ⇄ Gi0/1]
g2[Gi0/2 ⇄ Gi0/2]
end
sw1[SW1] --- po1 --- sw2[SW2]
Configuration
Section titled “Configuration”Configure the members; the Port-channel interface is created automatically. Settings applied to the port channel
afterwards are copied to all members.
SW1# configure terminalSW1(config)# interface range GigabitEthernet0/1 - 2SW1(config-if-range)# channel-group 1 mode activeSW1(config-if-range)# exitSW1(config)# interface Port-channel 1SW1(config-if)# description uplink to SW2SW1(config-if)# switchport mode trunkSW1(config-if)# endSW1# write memory| Mode | Protocol | Behavior |
|---|---|---|
active |
LACP (802.3ad) | Sends LACP packets and negotiates. |
passive |
LACP | Only answers LACP packets. |
desirable |
PAgP (Cisco) | Sends PAgP packets and negotiates. |
auto |
PAgP | Only answers PAgP packets. |
on |
none | Forces the bundle without any negotiation. |
Which combinations form a channel:
active |
passive |
desirable |
auto |
on |
|
|---|---|---|---|---|---|
| active | ✅ | ✅ | |||
| passive | ✅ | ||||
| desirable | ✅ | ✅ | |||
| auto | ✅ | ||||
| on | ✅ |
Verification
Section titled “Verification”| Command | Shows |
|---|---|
show etherchannel summary |
Each bundle with its members and flags (P bundled, s suspended). |
show interfaces Port-channel 1 |
Bandwidth (sum of members) and counters of the logical interface. |
show lacp neighbor |
The LACP partner of every member port. |
show etherchannel load-balance |
Which header fields choose the member link. |
port-channel load-balance src-dst-ip |
(global config) Hash on source and destination IP instead. |