Sub topic 9
Verifying the bundle
A port channel can look healthy in the running configuration and still be broken. A member may sit stand-alone, the partner may not be answering LACP, or all traffic may be hashing onto one link. This chapter covers the commands that show the real state of a bundle and how to read their output.
It assumes you have configured an LACP port channel as in the previous chapter. It also assumes you know what the Cisco IOS style channel-group command does and what a hash policy is.
Verification in layers
Check a bundle in three layers, in this order:
- Aggregation state. Are the members bundled, and is the logical interface up?
- Negotiation state. Does the partner answer LACP, and does it agree the links belong together?
- Traffic distribution. Is traffic spread over the members, as far as the traffic mix allows?
Each layer depends on the one before it. Do not look at traffic counters until the bundle state is correct.
Layer 1: the summary
show etherchannel summaryTypical healthy output:
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi0/1(P) Gi0/2(P)Read the line in two parts.
- The port channel flags in parentheses after
Po1.Smeans Layer 2 andUmeans in use.SUis what you want on a trunk.SDmeans the logical interface is down, usually because no member is bundled.RUis a routed port channel. - The flag after each member.
Pmeans the member is bundled. Anything else needs an explanation.
| Member flag | Meaning | Usual cause |
|---|---|---|
| `P` | Bundled in the port channel | Healthy |
| `I` | Stand-alone, working as an ordinary port | No LACP frames received from the partner |
| `s` | Suspended | Settings differ from the port channel or from other members |
| `w` | Waiting to be aggregated | Negotiation still in progress, or partner not ready |
| `D` | Down | Physical link is down |
| `H` | Hot-standby | LACP only. More members than the hardware limit, so this one is held in reserve |
| `M` | Not in use, minimum links not met | Fewer members are up than the `port-channel min-links` setting |
The I and s flags are the ones you will see most often. They mean different things. I points at the partner or the cable. s points at your own configuration, because the switch compared this member against the others and found a mismatch.
The Protocol column also matters. It shows LACP, PAgP, or - for a static bundle. If you meant to build an LACP bundle and see -, the members were configured with mode on.
Layer 2: what the partner says
show lacp neighborExample output for a working bundle:
Flags: S - Device is requesting Slow LACPDUs
F - Device is requesting Fast LACPDUs
A - Device is in Active mode P - Device is in Passive mode
Channel group 1 neighbors
Partner's information:
LACP port Admin Oper Port Port
Port Flags Priority Dev ID Age key Key Number State
Gi0/1 SA 32768 0011.2233.4455 12s 0x0 0x1 0x102 0x3D
Gi0/2 SA 32768 0011.2233.4455 9s 0x0 0x1 0x103 0x3DCheck these fields:
- Dev ID. This is the partner's system ID. Both members must show the same value. Two different values mean the members are cabled to two different devices, which a single bundle cannot span unless the pair works as one logical switch (see the multi-chassis chapter).
- Oper Key. Both members must show the same key, since the partner uses it to decide which ports can aggregate together.
- Age. This counts the seconds since the last LACPDU arrived. With fast timers the value stays low. A number that keeps growing means frames have stopped arriving.
- Port State. This is a bit field.
0x3Dis binary111101, which means: - Activity: set.
- Timeout: clear, so the long timeout is in use.
- Aggregation: set.
- Synchronization: set.
- Collecting: set.
- Distributing: set.
A member that carries traffic should show synchronization, collecting, and distributing all set. If the state is 0x05, the partner is willing to aggregate but has not placed the port in the bundle.
If show lacp neighbor prints nothing for a port, no LACPDUs have been received on it. The partner may be in on mode, may be passive while you are also passive, or may not be speaking LACP at all.
Compare this with the local view from show lacp internal. Together they give you both sides of the negotiation from one box.
Layer 3: traffic distribution
A bundle can be correctly formed and still carry all traffic on one member. First look at which hash the switch uses:
show etherchannel load-balanceThen look at what each member actually carries:
show interfaces port-channel 1
show interfaces GigabitEthernet0/1 | include rate
show interfaces GigabitEthernet0/2 | include rateThe input and output rate lines tell you how the members compare. Some imbalance is normal, because hashing spreads flows rather than bytes. A few large flows can land on the same member. Be alarmed when one member carries nearly everything and the others are idle, and ask what the hash is using as input. If the traffic goes through a router, every frame may have the same source and destination MAC. A src-dst-mac hash then sends all of it to one link.
Many Catalyst platforms can also predict the member for a given flow:
test etherchannel load-balance interface port-channel 1 ip 10.0.0.5 10.0.1.9This prints which member link that source and destination pair would use. Use it to confirm that a specific pair of hosts will not collide on the same link. The command and its options vary by platform.
Verifying a Linux bond
On a Linux host, the kernel reports the same three layers in one file:
cat /proc/net/bonding/bond0Key fields in the output:
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer3+4 (1)
MII Status: up
802.3ad info
LACP active: on
LACP rate: fast
Active Aggregator Info:
Aggregator ID: 1
Number of ports: 2
Partner Mac Address: 00:11:22:33:44:55
Slave Interface: eth0
MII Status: up
Aggregator ID: 1
Slave Interface: eth1
MII Status: up
Aggregator ID: 1Compare this with the switch output:
- Aggregator ID per member. Every member should show the same ID. If
eth1shows a different ID frometh0, the two members negotiated with different partners or different keys, and only one aggregator carries traffic. - Number of ports. This should equal the number of cabled members.
- Partner Mac Address. It should match the
Dev IDon the switch. A value of00:00:00:00:00:00means no partner has answered. - MII Status. This is link state at the physical layer. A member can be
uphere and still be outside the aggregator.
A quick checklist
show etherchannel summaryshowsSUon the port channel andPon every intended member.show lacp neighborlists every member with the same partner Dev ID and Oper Key, and state0x3D.- Interface counters show traffic on more than one member, to the degree the traffic mix allows.
- Both ends use a hash that suits the traffic.
- The Linux
/proc/net/bonding/bond0file shows matching Aggregator IDs and the right partner MAC.
Exercise
A summary shows Po1(SD) with members Gi0/1(I) and Gi0/2(I), and show lacp neighbor prints no partner entries. Which layer has the fault, and what are two likely causes?
Show answer
The fault is in the negotiation layer. The I flag means each member works stand-alone because no LACPDUs arrive from the partner, so no bundle forms and the port channel is down (SD). Likely causes: the partner ports are not configured for LACP (for example, they use mode on or are not in a channel group), or both ends are passive. A cabling or physical problem on the partner side is another possibility.
Exercise
Both members show P, and show lacp neighbor looks correct, but Gi0/1 carries 900 Mb/s and Gi0/2 carries almost nothing. Name two things to check.
Show answer
First, which hash show etherchannel load-balance reports. If the hash uses only MAC addresses and the traffic passes through a router, all frames share one source and destination MAC and land on one member. Second, the traffic mix: a single large flow, such as one bulk transfer, always uses one member. The test etherchannel load-balance command can confirm which member a given flow maps to.