Sub topic 12
Troubleshooting Common Port Channel Problems
This chapter assumes you know Ethernet switching, VLANs and trunks, and why spanning tree exists. It also assumes you have read the earlier chapters on LACP, member port requirements, hash policies, and the configuration and verification commands. Here you will use those pieces to find faults.
A method for diagnosing port channels
Most port channel faults fall into one of three groups. Work through them in this order.
- The bundle does not form. A member shows as stand-alone, suspended, or down.
- The bundle forms but traffic is uneven. One member is busy and the others are idle.
- The bundle forms but the network misbehaves. You see MAC flapping, spanning tree changes, or a sudden outage after a change.
Start with the state of the bundle, because the later groups only make sense once the bundle is stable.
Reading the summary flags
The command show etherchannel summary gives a one-letter flag for each member and for the port channel itself. Learn the common ones.
| Flag | Meaning | What it usually tells you |
|---|---|---|
| P | Bundled in port channel | Healthy member |
| I | Stand-alone | Member is up but not bundling. The partner is not sending LACP, or is not agreeing |
| s | Suspended | LACP is running, but the member's settings do not fit the bundle, or the partner is not compatible |
| D | Down | No link at the physical layer |
| H | Hot-standby | The bundle already has the maximum number of active members |
| w | Waiting to be aggregated | Negotiation in progress |
| U | Port channel in use (Layer 2) | The logical interface is up |
| S | Layer 2 port channel | The logical interface is switched, not routed |
The flag SU on Po1 means a working Layer 2 bundle. The flag SD means the logical interface is down, usually because no member is bundled.
Members that will not bundle
Physical problems
A member flagged D has no link. Check the cable, the transceiver type, and whether the far port is shut down. Then compare speed and duplex on both ends. A member that negotiated 100 Mb/s while its siblings run at 1 Gb/s cannot join, because all members must run at the same speed and duplex.
Mismatched member settings
Every member must carry the same switching configuration. The usual offenders are:
- Different trunk allowed VLAN lists.
- One member in access mode and another in trunk mode.
- Different native VLANs.
- Different speed, duplex, or MTU values.
- A member that was configured before it was added to the group and still holds an old setting.
When a member differs, the switch may log a message such as %EC-5-CANNOT_BUNDLE2 and suspend the port. Compare the running configuration of each member and of Port-channel1. On many platforms, settings applied to the port channel interface are pushed to the members, but settings applied to a single member before bundling are not always cleaned up.
A tidy way to repair this is to remove the members from the group, make them identical, and add them back.
interface range GigabitEthernet0/1 - 2
no channel-group
default interface range GigabitEthernet0/1 - 2After the defaults are restored, reapply the configuration from the earlier chapter. The default interface command is available on IOS style platforms, but check that your platform supports it before use.
Mode mismatch
The mode on each side decides whether a bundle can form.
| Local mode | Remote mode | Result |
|---|---|---|
| active | active | Bundle forms |
| active | passive | Bundle forms |
| passive | passive | No bundle. Neither side starts negotiation |
| on | on | Static bundle forms, with no negotiation |
| on | active or passive | No bundle. The LACP side gets no replies |
| LACP mode | PAgP mode | No bundle. The protocols do not interoperate |
The passive and passive pairing is a classic mistake. Both ends wait for the other to speak first, so the members sit as stand-alone ports. Setting at least one side to active fixes it.
The on mode is the more dangerous case. With a static bundle, the switch does not check that the other end agrees. If one side is on and the other has no bundle at all, the on side treats the links as one logical link while the far side treats them as separate ports. This can cause MAC address flapping and loops. Prefer LACP so that the protocol can detect the problem.
Reading the LACP partner
When members are stand-alone or suspended, ask the switch what the partner is saying.
show lacp neighbor
show lacp internal
show etherchannel detailIf show lacp neighbor is empty for a port, no LACP frames are arriving. Possible causes are the far end running static mode, the far end not configured at all, or a device in the path that drops the slow-protocol frames sent to the multicast address 01-80-C2-00-00-02. A partner whose system ID or key changes between members indicates that the members are cabled to different devices, or that one far-end port belongs to a different bundle.
Another hint is the LACP timer. With lacp_rate fast on one side and slow on the other, the bundle still works, but detection of a dead partner takes up to 90 seconds on the slow side and about 3 seconds on the fast side. A mismatch in timers is not a fault, but it explains slow failure detection.
Uneven traffic across members
A bundle can be healthy and still use one link far more than the others. This is almost always a hash issue, not a fault. Recall that every packet of one flow takes the same member, so one flow cannot exceed one link's speed.
Common causes:
- Few distinct flows. A backup job between two hosts is one flow, or a few. A hash cannot split a single TCP connection.
- A hash input that does not vary. If the policy uses only source and destination MAC addresses, and all traffic crosses a router, every frame has the router's MAC as one address. Traffic then collapses onto few members. Move to an IP-based or Layer 4 policy.
- Member count. Many hash implementations work best with 2, 4 or 8 members. With three members, the distribution can be uneven on some platforms.
- Traffic type. Tunnelled or encapsulated traffic hides the inner addresses, so the outer headers are the same for many flows.
Check the current policy and test it.
show etherchannel load-balance
test etherchannel load-balance interface Port-channel1 ip 10.0.0.5 10.0.1.9The test etherchannel command exists on many Cisco platforms. It reports which member a given address pair would use. Where it is missing, use the counters in show interfaces for each member and compare the output rates over a minute.
The same reasoning applies on the far end. The hash on each side is chosen independently, so the switch's choice controls only traffic leaving the switch. If a server sends uneven traffic into the switch, change the hash on the server, for example with xmit_hash_policy in Linux bonding.
Spanning tree and unstable bundles
Spanning tree treats the port channel as one port. Problems tend to appear in these forms.
- Members suspended and then returned. Each time a member joins or leaves, the port channel may recalculate its cost. A flapping member can therefore cause repeated topology changes.
- Inconsistent port types. A bundle with PortFast or BPDU guard settings that differ across ends can be put into an error-disabled state.
- Loop from a one-sided static bundle. As described above, an
onbundle facing unbundled ports can loop, and spanning tree may block or flap the wrong port.
Use show spanning-tree interface Port-channel1 to see its role and state. Use show mac address-table repeatedly. If the same MAC address appears on different ports within seconds, you have a loop or a one-sided bundle, so look at the far end first.
Link failure and minimum links
When a member fails, the switch removes it from the hash and moves its flows to the remaining members. Brief loss for those flows is normal. The problems come from capacity.
- If a bundle of four 1 Gb/s links carries 3 Gb/s and one link fails, the remaining 3 Gb/s is at the edge. Two failures cause drops.
- If you set a minimum links value, the whole bundle goes down when too few members remain. This is intentional: it pushes traffic to a backup path rather than keeping a bundle that cannot carry the load. If a port channel goes down after a single member fault, check whether
port-channel min-linksis set to a value that this failure violated.
Troubleshooting checklist
- Run
show etherchannel summaryand read the flags. - For
D, fix the physical layer. - For
Iors, compare member settings and then the modes. - Run
show lacp neighborto confirm the partner sends LACP and is the same device on all members. - For uneven load, run
show etherchannel load-balanceand match the hash to the real traffic. - For instability, check spanning tree and MAC flaps, then the far end's mode.
- After any fix, verify again with the summary and with member counters.
Exercise
Two switches are cabled with two links. On Switch A both members show flag I in show etherchannel summary, and show lacp neighbor is empty. Switch A is set to channel-group 1 mode passive. List two configuration changes on Switch B that would each explain the symptom, and say how you would confirm each.
Show answer
First, Switch B may be set to passive too. Neither side starts LACP, so confirm with show running-config on B and change B (or A) to active. Second, Switch B may be using mode on, a static bundle that sends no LACP frames, or have no channel-group at all. Confirm with show etherchannel summary on B, which would show a protocol of - or no LACP, and change B to active.
Exercise
A four-member bundle between a router and a switch shows all members bundled, but one member carries nearly all traffic. The hash is src-dst-mac. Explain why, and give a fix.
Show answer
Traffic from many hosts behind the router arrives with the router's MAC address as the source, and traffic to the router has it as the destination. The MAC pair barely varies, so the hash picks the same member. Change the hash to src-dst-ip (or one that includes Layer 4 ports) with port-channel load-balance, then check the member counters.