Sub topic 3
How Spanning Tree Sees a Port Channel
Assume you know Ethernet switching, VLAN trunks, Spanning Tree Protocol (STP), and basic switch commands.
One logical STP path
A port channel is a logical interface made from several physical member links. STP normally sees the entire bundle as one connection between two switches. It calculates one path cost and places the port channel in one STP state.
This prevents STP from blocking individual member links as if they were separate parallel paths.
All member ports must have compatible settings, including speed, duplex, VLAN mode, allowed VLANs, and native VLAN. A mismatch can leave a member suspended or create forwarding behavior that STP cannot safely model.
Failure, rehashing, and minimum links
When one member fails, the bundle usually stays up. The switch removes that member from its forwarding set and rehashes affected flows across the remaining links. A flow normally remains on one member, so one flow cannot exceed one member link's speed.
A minimum-links setting can declare the whole port channel down unless enough members remain. This protects applications that need a known amount of capacity.
Troubleshooting common problems
Check both ends and inspect individual members:
show etherchannel summary
show lacp neighbor
show interfaces countersLook for suspended or standalone members, different trunk settings, mismatched LACP modes, and unexpected hash distribution. Verify that the two devices connect to the intended peers.
Linux server bonding
Linux can use 802.3ad bonding, which is LACP:
ip link add bond0 type bond mode 802.3ad miimon 100 xmit_hash_policy layer3+4
ip link set eth0 master bond0
ip link set eth1 master bond0
cat /proc/net/bonding/bond0The switch ports connected to eth0 and eth1 must join the same LACP bundle.
PAgP and LACP
PAgP is Cisco proprietary. LACP is the open IEEE standard and interoperates across many vendors. Prefer LACP unless a legacy Cisco-only device requires PAgP.
Multi-chassis aggregation
Multi-chassis link aggregation lets one device form a bundle to two cooperating switches. MLAG implementations synchronize state between the switches, so the downstream device sees one logical bundle. The peer link and keepalive path must be designed carefully.
Design limits
| Concern | Design rule |
|---|---|
| Capacity | Plan for one-flow and member-failure limits |
| Hashing | Use Layer 3 or Layer 4 fields when many flows exist |
| Failure | Set minimum links when reduced capacity is unsafe |
Exercise
Why does STP usually see two bundled Ethernet cables as one path?
Show answer
The cables form one logical port channel, so STP calculates and manages one logical connection instead of treating the members as separate parallel paths.