Several physical links can work as one logical connection. EtherChannel adds bandwidth and resilience while giving spanning tree a single logical port to manage.
Connecting parallel switch links without bundling them creates a Layer 2 loop. Spanning tree normally blocks redundant paths, so the extra bandwidth sits idle. An EtherChannel groups compatible physical interfaces into one logical port-channel.
Sends LACP messages and will form a channel with an active or passive peer.
Responds to LACP but does not initiate. Passive plus passive will not form.
Forces a channel without negotiation. Both ends must be configured consistently.
Interfaces in the same channel need compatible settings. Check speed and duplex, and for Layer 2 bundles check access or trunk mode, allowed VLANs and native VLAN. For Layer 3 bundles, member ports must be routed ports.
| Bundle type | Member configuration | Logical configuration |
|---|---|---|
| Layer 2 access | Switchports with matching access VLAN | Access settings on Port-channel |
| Layer 2 trunk | Switchports with compatible trunk settings | Trunk settings on Port-channel |
| Layer 3 | no switchport | IP address on Port-channel |
SW1(config)# interface range gigabitEthernet 0/1 - 2
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,99Use a matching channel group on the peer. The local group number does not have to match the remote number, but using the same number makes the topology easier to read.
R1(config)# interface range gigabitEthernet 0/1 - 2
R1(config-if-range)# no switchport
R1(config-if-range)# channel-group 10 mode active
R1(config)# interface port-channel 10
R1(config-if)# ip address 10.0.12.1 255.255.255.252
R1(config-if)# no shutdownSW1# show etherchannel summary
Group Port-channel Protocol Ports
------+-------------+---------+-------------------------
1 Po1(SU) LACP Gi0/1(P) Gi0/2(P)S means Layer 2, U means the port-channel is in use, and P means the member is bundled. Also use show interfaces port-channel 1 and show lacp neighbor.
See how Rapid PVST+ prevents loops, elects the root bridge and protects the topology.