Sub topic 7
What member ports must have in common
This chapter assumes you know how a port channel works at a high level: several physical links act as one logical link, and LACP negotiates the bundle. It also assumes you can read a trunk configuration (allowed VLANs, native VLAN) and recognize an STP port state. Here you learn which settings every member port must share, what a switch does when they differ, and how to spot a mismatch.
Why members must match
A port channel appears to the rest of the switch as one interface, such as Port-channel1. The switch applies one set of Layer 2 rules to that interface: one trunk or access mode, one VLAN list, one STP cost. The traffic is then spread over several physical ports, and any port can carry any frame of a flow's hash bucket.
If member ports had different rules, the same logical link would behave differently depending on which physical port a frame took. One member might drop VLAN 20 while another forwards it. A frame in that VLAN would vanish only for flows that hash to the wrong link. These faults are intermittent and hard to trace, so switches refuse to bundle ports that disagree.
The settings that must match
The exact list depends on the platform. The following list is typical of Cisco IOS style switches, and most vendors follow similar rules.
| Setting | Requirement | What a mismatch causes |
|---|---|---|
| Speed | All members run at the same speed | The odd port is not bundled or is suspended |
| Duplex | All members use the same duplex | The odd port is not bundled |
| Switchport mode | All access or all trunk | Port suspended, or channel misconfiguration error |
| Access VLAN | Same VLAN on every access member | Port suspended |
| Trunk allowed VLANs | Same list on every trunk member | Port suspended |
| Native VLAN | Same native VLAN on every trunk member | Port suspended, plus possible STP and CDP warnings |
| Trunk encapsulation | Same encapsulation, where the platform offers a choice | Port suspended |
| Layer | All members Layer 2, or all Layer 3 (routed) | Cannot join the channel |
| MTU | Same MTU on all members | Port not bundled, or oversize frames dropped on one link |
| STP settings | Same port-level STP settings, such as cost, PortFast, guards | Platform-dependent; may block the member |
| Port role | No SPAN destination, no dynamic-VLAN port, no 802.1X port on the member | Port cannot be added |
Two further requirements are easy to miss.
- One partner. With LACP, every active member must reach the same remote system and the same remote bundle. LACP identifies the partner by its system ID and operational key. If you cable two members to different switches that are not an MLAG pair, those members report different partner IDs. LACP then forms two separate aggregators instead of one, and only one can be active.
- One local switch. On a standalone switch, all members must live on the same device (or the same stack). Spreading members over two independent switches needs multi-chassis link aggregation, covered in a later chapter.
Configure on the port channel
When you create a bundle on a Cisco IOS style switch, the Port-channel interface is the master copy of the configuration. The switch copies settings you enter on the Port-channel interface to every member port. Settings you enter directly on a member port, after it joined, do not propagate. They can also push the member out of the bundle.
The safe order of work is:
- Put identical Layer 2 settings on all member ports.
- Add the ports to the channel group.
- Make later changes on the
Port-channelinterface, not on the members.
interface range GigabitEthernet0/1 - 2
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20
speed 1000
duplex full
channel-group 1 mode active
!
interface Port-channel1
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20Using interface range is deliberate. It applies each line to both ports in one pass, so they cannot drift apart through a typing error. If a member is already bundled and you must change its VLAN list, change it on Port-channel1. The switch pushes the change to all members at once.
Mode must also agree between the two ends
The two switches must also agree on how to bundle. The members themselves may be perfect, but the channel still fails if the ends disagree.
| Local mode | Remote mode | Result |
|---|---|---|
| `active` | `active` | Bundle forms (LACP) |
| `active` | `passive` | Bundle forms (LACP) |
| `passive` | `passive` | No bundle; neither side sends LACP first |
| `on` (static) | `on` (static) | Bundle forms with no negotiation |
| `on` | `active` or `passive` | No bundle; the LACP side gets no replies from the static side |
Static mode on never validates anything. If the members mismatch, a static bundle can still come up and then lose traffic. For that reason, prefer LACP where you can. LACP checks the partner and removes a member that disagrees.
Many switches also have an EtherChannel misconfiguration guard. It watches for a case in which one side bundles and the other does not. A common cause is the other end running static mode against your LACP. When the guard fires, it puts the ports in an error-disabled state to stop a loop. You then must fix the cause and re-enable the ports.
Mixed speeds and standby members
Not every difference is an error. Some platforms let you bundle members of different speeds, for example 1 Gbps and 10 Gbps. Even where this is allowed, the hash still spreads flows evenly across members, not in proportion to speed. A 1 Gbps link then becomes a bottleneck for its share of the flows. Avoid mixed-speed bundles in practice.
LACP also limits how many members are active at once. A typical IOS style switch carries up to 8 active members in a channel. LACP can hold up to 8 more as hot standby. Standby ports are fully compatible, but they carry no traffic until an active member fails. Port priority decides which ports are active and which are standby.
How the decision is made
The switch applies a series of checks to each port that asks to join. The diagram shows the order in simplified form.
Finding a mismatch
Start with the summary of the channel.
show etherchannel summaryThe flags beside each port tell you its state:
Pmeans the port is bundled in the port channel.smeans suspended, which usually points to a settings mismatch.Imeans stand-alone, so the port is not bundled and works as an ordinary port.Dmeans down.Hmeans hot standby.
A suspended port tells you something disagrees but not what. Compare the full configuration of a good member and the bad one.
show running-config interface GigabitEthernet0/2
show interfaces GigabitEthernet0/2 trunk
show lacp neighborThe show lacp neighbor output lists the partner system ID for each member. If two members show different partner IDs, the cabling is wrong. Do not hunt for a configuration error in that case.
A small consistency checker
You can automate the comparison. The following Python script takes the settings of each member as dictionaries and reports which keys differ. It uses only the standard library.
def find_mismatches(members):
"""Return {setting: {port: value}} for every setting that is not identical."""
ports = list(members)
settings = set()
for port in ports:
settings.update(members[port])
problems = {}
for key in sorted(settings):
values = {port: members[port].get(key) for port in ports}
if len(set(map(str, values.values()))) > 1:
problems[key] = values
return problems
members = {
"Gi0/1": {"speed": 1000, "duplex": "full", "mode": "trunk",
"native": 99, "allowed": "10,20"},
"Gi0/2": {"speed": 1000, "duplex": "full", "mode": "trunk",
"native": 1, "allowed": "10,20"},
}
for setting, values in find_mismatches(members).items():
print(setting, values)This prints native {'Gi0/1': 99, 'Gi0/2': 1}. That is a native VLAN mismatch, one of the most common reasons a second member is suspended.
Linux equivalent
A Linux bond in 802.3ad mode applies the same logic by itself. It groups slaves into aggregators by speed, duplex, and partner identity, then picks one aggregator to carry traffic. Members that differ in speed or duplex, or that connect to a different partner, land in an aggregator that is not selected. Read the /proc/net/bonding/bond0 file and compare the aggregator ID of each member. Members of one working bond share the same aggregator ID and the same partner MAC address.
Exercise
Two ports in a trunk channel are set to channel-group 1 mode active. show etherchannel summary shows Gi0/1 as P and Gi0/2 as s. Both have the same speed and duplex, and show lacp neighbor lists the same partner for each. Name two settings you would compare next and the command that shows them.
Show answer
Compare the native VLAN and the allowed VLAN list (also the switchport mode). Use show interfaces GigabitEthernet0/2 trunk and show running-config interface GigabitEthernet0/2, and compare each with Gi0/1 and with Port-channel1. A difference in either setting makes the switch suspend the member.
Exercise
One end of a link pair runs channel-group 1 mode on and the other end runs channel-group 1 mode active. Does a bundle form? What is the risk of leaving it that way?
Show answer
No bundle forms. The active side sends LACP frames, but the on side does not speak LACP and never replies. The risk is that the static side may treat its ports as bundled while the LACP side treats them as individual ports. That can create a loop or drop traffic, which is why the misconfiguration guard can put the ports in an error-disabled state.