Sub topic 14
PAgP and How It Differs from LACP
This chapter assumes you know Ethernet switching basics (VLANs, trunks), have configured a port channel with LACP, and can read Cisco IOS style output. It covers the Port Aggregation Protocol (PAgP), the Cisco-proprietary predecessor to LACP. You need to recognize it because you will meet it on older Cisco gear, and mixing it up with LACP is a common cause of bundles that refuse to form.
What PAgP is
PAgP is a Cisco-proprietary protocol that negotiates an EtherChannel between two devices. Like LACP, it exchanges frames over each member link to confirm that both ends agree to bundle the same set of ports. If the exchange fails, the port does not join the bundle. That is the main advantage over static mode, where a miscabled or misconfigured port is bundled anyway.
PAgP predates the IEEE standard. LACP (IEEE 802.3ad, now 802.1AX) was designed to do the same job in a vendor-neutral way. Because PAgP is proprietary, it only works between Cisco devices (and a few vendors that chose to implement it). A Linux server, a typical hypervisor NIC team, or a non-Cisco switch will not speak PAgP.
PAgP modes
PAgP has two active negotiation modes, plus the same static option that every aggregation technology has.
| Mode | Behavior | Sends PAgP frames |
|---|---|---|
| `desirable` | Actively asks the neighbor to form a bundle | Yes |
| `auto` | Waits to be asked and replies if asked | Yes, but only in response |
| `on` | Static bundle, no negotiation | No |
These map closely to the LACP modes:
| PAgP mode | LACP equivalent | Role |
|---|---|---|
| `desirable` | `active` | Initiates negotiation |
| `auto` | `passive` | Responds only |
| `on` | `on` | Static, no protocol |
Which combinations form a bundle
Negotiation needs at least one side to initiate. The result is the same pattern as LACP.
| Side A | Side B | Bundle forms? |
|---|---|---|
| `desirable` | `desirable` | Yes |
| `desirable` | `auto` | Yes |
| `auto` | `auto` | No, neither side initiates |
| `on` | `on` | Yes, static |
| `on` | `desirable` or `auto` | No, the protocols do not match |
| `desirable` | LACP `active` | No, different protocols |
The last row is the important one. PAgP and LACP use different frame formats and different multicast destination addresses, so a PAgP port and an LACP port cannot negotiate with each other. Each side sees no valid partner and the port stays unbundled, or becomes suspended or stand-alone depending on the platform.
Configuring PAgP
The configuration differs from the LACP example in one keyword. The mode on the channel-group command selects the protocol.
interface range GigabitEthernet0/1 - 2
switchport mode trunk
switchport trunk allowed vlan 10,20
channel-group 1 mode desirable
!
interface Port-channel1
switchport mode trunk
switchport trunk allowed vlan 10,20On IOS, desirable and auto select PAgP. active and passive select LACP. IOS refuses to mix protocols inside one channel group. If you configure channel-group 1 mode active on one port and channel-group 1 mode desirable on another, the second command is rejected because the group already runs a different protocol.
You can also set the protocol explicitly on some platforms:
interface Port-channel1
channel-protocol pagpWhen you use channel-protocol, IOS rejects channel-group modes that belong to the other protocol. This is a useful guard against typos.
Verifying PAgP
The verification commands are the same ones you used for LACP, with a PAgP-specific neighbor view.
show etherchannel summary
show pagp neighbor
show pagp counters
show pagp internalshow etherchannel summarylists the group, its protocol (theProtocolcolumn readsPAgPorLACP), and the flags for each member.Pmeans bundled in the port channel.smeans suspended.Imeans stand-alone.show pagp neighborshows the partner device name, the partner port, and the partner's group capability.show pagp countersshows PAgP frames sent and received per port. If the sent counter rises and the received counter stays at zero, the neighbor is not answering PAgP. A common cause is that the other side runs LACP or static mode.
The equivalent LACP commands are show lacp neighbor and show lacp counters.
How PAgP differs from LACP internally
The goals are the same, but the mechanisms differ in several details that affect design and troubleshooting.
| Property | PAgP | LACP |
|---|---|---|
| Standard | Cisco proprietary | IEEE 802.3ad / 802.1AX |
| Multi-vendor support | Cisco and a few licensees | Nearly universal |
| Active mode name | `desirable` | `active` |
| Passive mode name | `auto` | `passive` |
| Maximum active members (typical IOS) | 8 | 8 active, plus up to 8 standby |
| Standby (hot-standby) members | No | Yes, on many platforms |
| Linux bonding support | No | Yes, mode 802.3ad |
| Default hello rate | 30 s | 30 s (slow) or 1 s (fast) |
| Multi-chassis (MLAG) support | Rare or none | Common |
Timers and failure detection
PAgP sends a hello every 30 seconds by default, with a fast option on some platforms. LACP offers a standard choice between a slow rate (30 seconds, with a 90-second timeout) and a fast rate (1 second, with a 3-second timeout). When a link stays physically up but stops passing frames, for example because of a failed transceiver on one direction or a fault in an intermediate device, the protocol timeout is what eventually removes the member from the bundle. LACP fast detects this in about 3 seconds. PAgP at its default rate takes much longer. If you rely on negotiation to detect one-way faults, this difference matters.
Standby members
LACP can hold extra ports in standby when more ports are configured than the platform allows in the bundle. If an active member fails, a standby member takes its place. PAgP has no equivalent. The extra ports beyond the platform limit are simply not bundled.
Port priority and system ID
LACP uses a system priority and a port priority to decide which end controls the choice of active members and which ports are active. PAgP uses a learn method and per-port priority, which controls which port is used to carry traffic that the switch cannot distribute, such as certain flooded frames, when the neighbor learns source addresses on a single port. In practice you will rarely tune these on modern designs.
Learn method
PAgP distinguishes devices that learn MAC addresses per physical port from devices that learn per aggregation group. Cisco calls these physical-port learners and aggregate-port learners. When one end is a physical-port learner, the other end should send a given source MAC address over a consistent member, or MAC tables flap. You can set this with pagp learn-method and pagp port-priority. Almost all current platforms learn per aggregate port, so this is mostly a legacy concern.
Choosing between PAgP and LACP
Use LACP unless you have a specific reason not to. The decision is simple:
- If any device in the bundle is not Cisco, you must use LACP.
- If either end is a Linux host, hypervisor, or storage appliance, use LACP.
- If you plan MLAG, vPC, or any multi-chassis design, use LACP. Those features are built around the standard protocol.
- If both ends are older Cisco switches and the existing config already uses PAgP, leave it unless you have a reason to change it.
- Use static
ononly when a device cannot speak either protocol, and accept the risk described in the static bundling chapter.
When you migrate a live link from PAgP to LACP, you cannot change the mode while the ports remain in the group. Remove the channel-group from the member ports, then add it back with the new mode. Plan this for a maintenance window, because the bundle drops while the ports are re-added. Change both ends close together so that neither side sits in a mismatched state for long.
Common PAgP problems
- Bundle will not form between a Cisco switch and a server. The server speaks LACP and the switch is set to
desirable. Change the switch toactive. - Both sides
auto. Neither side initiates. Set at least one side todesirable. - One side
on, the otherdesirable. The static side sends no PAgP frames. Set both toon, or both to a negotiating mode. - Ports show
s(suspended) orI(stand-alone). Checkshow pagp counters. Zero received frames points to a protocol or cabling mismatch. A nonzero count with a failed bundle points to mismatched member settings such as speed, duplex, or trunk allowed VLANs. channel-groupcommand rejected. The port channel already uses the other protocol. Remove the group and re-add it, or fix the mode.
Exercise
Switch A has channel-group 5 mode auto on its member ports. Switch B has channel-group 5 mode passive. Both are Cisco IOS switches with identical speed, duplex, and trunk settings. Will the bundle form? Give two separate reasons it fails and one change that fixes it with the least disruption.
Show answer
No. First, auto is PAgP and passive is LACP, so the two sides use different protocols and cannot negotiate. Second, both modes are passive, so even with matching protocols neither side would start the negotiation. The least disruptive fix is to choose one protocol and make at least one side active. For example, change switch A to channel-group 5 mode active after removing the old group, so both ends run LACP with A initiating. B can stay passive.
Exercise
A Linux server running bond mode 802.3ad connects to a Cisco switch. show pagp counters on the switch shows frames sent but zero received. What is the cause and what is the fix?
Show answer
The switch is set to a PAgP mode (desirable or auto), but the Linux bond speaks LACP only, so it never answers PAgP frames. Remove the channel group from the member ports and re-add it with mode active (or passive) so the switch uses LACP. Then confirm with show lacp neighbor and the Protocol column of show etherchannel summary.