Sub topic 9
Verifying the bundle
This chapter assumes you can configure an LACP port channel on a Cisco IOS style switch and that you know what a trunk and a VLAN are. Here you check that the bundle formed, that every member is active, and that traffic spreads across the members.
Check the bundle state
Start with the summary view. It shows every port channel and the state of each member.
show etherchannel summaryA healthy two-link LACP bundle looks like this:
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi0/1(P) Gi0/2(P)Read the flags in two places.
- The port channel flags in parentheses:
Smeans Layer 2, andUmeans in use.SUis the normal result for a switched port channel.SDmeans the port channel is down. - The member flags:
Pmeans bundled in the port channel. This is the state you want.
Other member flags point to a problem:
| Flag | Meaning | Usual cause |
|---|---|---|
| `I` | Stand-alone, acting as an individual port | No LACP partner answered, or the partner is not configured for the same group |
| `s` | Suspended | Member settings differ from the port channel, or the partner sent mismatched information |
| `D` | Down | The physical link is down |
| `H` | Hot standby | The bundle already has the maximum number of active members |
Check what the partner reports
The summary shows only the local view. LACP also tells you what the other end says, so use the neighbor command.
show lacp neighborFor each member port, this lists the partner's system ID, its port number, and its LACP flags. Two things to look for:
- Every member in one bundle must report the same partner system ID. If two members show different IDs, they are connected to different devices, and they cannot form one bundle unless those devices act as a single multi-chassis system.
- The partner must be in
activeorpassivemode. If the output is empty for a port, no LACP frames are arriving on it.
Check the load-balancing hash
A bundle that is up can still carry traffic unevenly. Find out which hash the switch uses.
show etherchannel load-balanceThe output names the fields the switch hashes, such as source and destination IP. Compare this with your traffic. If most traffic goes between a few hosts, a MAC-based hash may send everything to one member. Chapter "Choosing a load-balancing hash" covers how to pick one.
To see whether traffic really spreads out, compare the interface counters.
show interfaces GigabitEthernet0/1 | include rate
show interfaces GigabitEthernet0/2 | include rateSimilar rates suggest even spreading. One link near its limit while the other is idle suggests a poor hash for your traffic mix.
A verification sequence
Exercises
Exercise
In show etherchannel summary, the port channel shows Po1(SU), but one member shows Gi0/2(I). What does this tell you, and which command do you run next?
Show answer
The port channel is up through Gi0/1, but Gi0/2 is acting as a stand-alone port and is not part of the bundle. It usually means no LACP partner answered on that port. Run show lacp neighbor to see whether LACP frames arrive on Gi0/2 and what the partner reports.
Exercise
Both members show P, but Gi0/1 runs near line rate and Gi0/2 is almost idle. Which command do you use to find the likely cause?
Show answer
show etherchannel load-balance. It shows which fields the hash uses. If traffic is concentrated between a few addresses and the hash does not include enough fields (for example, it uses only MAC addresses), most flows map to one member.