Sub topic 14
PAgP and how it differs from LACP
This chapter assumes you know what a port channel is, how frames are hashed across member links, and how LACP negotiates a bundle. It covers Port Aggregation Protocol (PAgP), the older Cisco-proprietary alternative, and helps you decide when to use it.
What PAgP is
PAgP is a Cisco-proprietary protocol that negotiates an EtherChannel between two switches. Like LACP, it checks that both ends agree before a link joins the bundle. This prevents the risks of static bundling, such as a mismatched or miscabled port silently carrying traffic. LACP (IEEE 802.3ad, now 802.1AX) is the open standard that later did the same job for all vendors.
PAgP runs only on Cisco devices, and only on some platforms. Many Cisco platforms, such as Nexus switches, support LACP and static mode but not PAgP. A Linux server, a firewall, or a switch from another vendor cannot negotiate PAgP at all.
PAgP modes
PAgP has two active modes, and the pair decides whether a bundle forms.
desirableactively sends PAgP packets and invites the neighbor to bundle.autoonly answers PAgP packets. It never starts negotiation.
LACP uses the names active and passive for the same two roles.
| Local mode | Remote mode | Bundle forms? |
|---|---|---|
| desirable | desirable | Yes |
| desirable | auto | Yes |
| auto | auto | No, neither side starts |
| on (static) | desirable or auto | No, a static port sends no negotiation |
The same rule applies to LACP: at least one side must be active. Never mix a negotiated mode with on, because the static side sends no negotiation packets.
Configuration
Configuration differs from LACP only in the channel-group keyword. This example uses desirable.
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,20Verify the bundle with show etherchannel summary. The protocol column shows PAgP instead of LACP. Use show pagp neighbor in place of show lacp neighbor to see the partner's device ID and port.
Differences from LACP
| Feature | PAgP | LACP |
|---|---|---|
| Standard | Cisco proprietary | IEEE 802.3ad / 802.1AX |
| Modes | desirable, auto | active, passive |
| Multivendor support | No | Yes |
| Maximum active links | Up to 8 | 8 active, plus up to 8 standby on many platforms |
| Hot-standby members | No | Yes |
| Linux and server support | No | Yes (802.3ad bonding) |
| Tunable timers | No | Fast or slow rate |
The practical differences are these. LACP can hold standby links and switch to them when an active member fails. It also supports a fast timer, which sends a packet every second instead of every 30 seconds, so a silent failure is detected sooner. Most importantly, LACP works with servers and other vendors.
When to choose PAgP
Choose LACP by default. It is a standard, it works across vendors, and it supports standby links and fast timers. Use PAgP only when a legacy Cisco device supports nothing else, or when an existing design already depends on it and you have no reason to change it. A Cisco-to-Cisco link that already runs PAgP works fine, but a new design gains nothing from it.
Exercise
Switch A has its ports set to channel-group 1 mode auto. Switch B has channel-group 1 mode auto on the facing ports. Will the port channel form? What is the smallest change that fixes it, and which mode would you pick if Switch B were later replaced by a Linux server?
Show answer
It will not form, because auto only responds and neither side sends PAgP packets. Change at least one side to desirable. If Switch B is replaced by a Linux server, PAgP is no longer possible because Linux cannot speak it. Switch A would need LACP, for example channel-group 1 mode active, with the server bonded in 802.3ad mode.