EtherChannel Mode On and PAgP Configuration on Cisco

Aisyah Aldina

Cartoon braided rope made from several colored strands for a Cisco EtherChannel mode on and PAgP guide

In this lab we set up EtherChannel in mode on (static) and with PAgP on Cisco switches in Cisco Packet Tracer. EtherChannel bundles several switch-to-switch cables into one logical link called a port-channel. You get more bandwidth, and if one cable dies, traffic keeps flowing over the others.

I already covered EtherChannel with LACP. This time we look at the other two options. Mode on forces the bundle with no negotiation at all, while PAgP is Cisco’s own negotiation protocol. The lab is also harder than the usual two-switch example: a multilayer switch in the core, two VLANs with inter-VLAN routing, a cable failure test, and a misconfiguration test with a result that surprised me. Everything was done in Cisco Packet Tracer 8.2.1.

Download the Packet Tracer lab file
Opens in Cisco Packet Tracer 8.2.1 or newer · 1 multilayer switch 3560, 2 switches 2960, 4 PCs · Po1 mode on and Po2 PAgP already working
Download .pkt

Lab Topology and Devices

At the top sits CORE, a 3560 multilayer switch. A multilayer switch can also route, so PCs in different VLANs can talk without a separate router. Below it are SW-A and SW-B, each connected to CORE with two cables.

SW-A’s two cables form Port-channel 1 in mode on. SW-B’s two cables form Port-channel 2 with PAgP. I made them different on purpose so we can compare how each one behaves in the same lab.

CORE 3560 on top, SW-A on the left, SW-B on the right

Topology with a CORE 3560 linked by two cables to SW-A and two to SW-B, plus four PCs, in Cisco Packet Tracer

Each pair of dashed lines is one EtherChannel.

Device          Ports                      Notes
CORE (3560)     Fa0/1, Fa0/2  -> SW-A      Port-channel 1, mode on
CORE (3560)     Fa0/3, Fa0/4  -> SW-B      Port-channel 2, PAgP desirable
SW-A (2960)     Fa0/23, Fa0/24 -> CORE     Port-channel 1, mode on
SW-B (2960)     Fa0/23, Fa0/24 -> CORE     Port-channel 2, PAgP auto

PC     Switch / Port    VLAN   IP               Gateway
PC0    SW-A Fa0/1       10     192.168.10.11    192.168.10.1
PC1    SW-A Fa0/2       20     192.168.20.11    192.168.20.1
PC2    SW-B Fa0/1       10     192.168.10.12    192.168.10.1
PC3    SW-B Fa0/2       20     192.168.20.12    192.168.20.1

The gateways 192.168.10.1 and 192.168.20.1 are VLAN interfaces (SVIs) on the CORE switch.

Two crossover cables between SW-A and CORE

Zoomed pair of parallel crossover cables between SW-A and CORE marked with a red box

All four switch-to-switch links use Copper Cross-Over. PCs connect to the switches with Copper Straight-Through. Every cable in one EtherChannel must be the same type and speed, and here they are all FastEthernet.

Setting IP Addresses and Gateways on the PCs

Each PC gets a static IP and a default gateway. The gateway is required because PC0 and PC1 are in different VLANs, so traffic between them has to be routed by CORE.

The steps are the same on every PC, so I only show PC1.

Open PC1

PC1 under SW-A circled in red

Click PC1 at the bottom left.

PC1 IP and gateway

PC1 IP Configuration 192.168.20.11 with gateway 192.168.20.1

Desktop tab, IP Configuration, Static, then 192.168.20.11, mask 255.255.255.0, gateway 192.168.20.1. Repeat on PC0, PC2, and PC3 using the table.

SW-A with EtherChannel Mode On

Mode on means the switch treats the cables as one bundle straight away, without asking the switch on the other end. It does not send a single negotiation packet.

That makes it simple and fast. The downside is that the switch cannot notice when the other side is set up wrong. We will prove that in the tests.

Open SW-A

SW-A switch on the left circled in red

Click Switch0 on the left, then the CLI tab. Answer no if the initial configuration dialog appears.

enable
configure terminal
hostname SW-A
vlan 10
 name STAFF
vlan 20
 name FINANCE
exit
interface fa0/1
 switchport mode access
 switchport access vlan 10
interface fa0/2
 switchport mode access
 switchport access vlan 20
interface range fa0/23 - 24
 channel-group 1 mode on
exit
interface port-channel 1
 switchport mode trunk
end
write memory

Port-channel1 comes up immediately

SW-A channel-group 1 mode on with Port-channel1 coming up immediately

Look at the message Port-channel1, changed state to up. The port-channel came up even though CORE had not been configured at all. Mode on does not wait for anyone’s agreement.

The trunk setting goes on interface port-channel 1, not on Fa0/23 and Fa0/24. The physical member ports follow whatever the port-channel is set to.

SW-B with PAgP Auto

PAgP (Port Aggregation Protocol) is Cisco’s protocol for negotiating an EtherChannel. It has two modes. Desirable actively asks the other side to form a bundle, while auto only waits to be asked.

SW-B uses auto, and CORE will use desirable. An auto and auto pair never forms a bundle, because both sides just sit and wait.

Open SW-B

SW-B switch on the right circled in red

Click Switch1 on the right, then the CLI tab.

enable
configure terminal
hostname SW-B
vlan 10
 name STAFF
vlan 20
 name FINANCE
exit
interface fa0/1
 switchport mode access
 switchport access vlan 10
interface fa0/2
 switchport mode access
 switchport access vlan 20
interface range fa0/23 - 24
 channel-group 2 mode auto
exit
interface port-channel 2
 switchport mode trunk
end
write memory

The physical ports come up, the port-channel does not

SW-B channel-group 2 mode auto with only Fa0/23 and Fa0/24 coming up

This time there is no Port-channel2 up message. Only Fa0/23 and Fa0/24 come up as ordinary ports.

Po2 is still SD before CORE is configured

show etherchannel summary on SW-B with Po2 SD and stand-alone I ports
show etherchannel summary

Po2(SD) means Layer 2 but down. Fa0/23(I) and Fa0/24(I) are stand-alone, so each runs on its own and is not in the bundle yet. That is the big difference from mode on: PAgP waits for the other side to agree first.

CORE: Two Port-Channels and Inter-VLAN Routing

CORE has the most work to do. It terminates both EtherChannels and is also the gateway for VLAN 10 and VLAN 20.

The 3560 supports two trunk encapsulations, so you must pick dot1q by hand before enabling the trunk. A 2960 skips this step because dot1q is all it has.

Open CORE

CORE multilayer switch at the top circled in red

Click Multilayer Switch0 at the top, then the CLI tab. This switch shows the initial configuration dialog, so type no and press Enter.

enable
configure terminal
hostname CORE
ip routing
vlan 10
 name STAFF
vlan 20
 name FINANCE
exit
interface range fa0/1 - 2
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode on
interface range fa0/3 - 4
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode desirable
exit
interface vlan 10
 ip address 192.168.10.1 255.255.255.0
 no shutdown
interface vlan 20
 ip address 192.168.20.1 255.255.255.0
 no shutdown
end
write memory

SVIs for VLAN 10 and VLAN 20 are up

CORE bringing up interface vlan 10 and vlan 20 and saving with write memory

ip routing turns on the router function inside the switch. interface vlan 10 and vlan 20 are SVIs (Switch Virtual Interfaces), virtual interfaces that act as the gateway for each VLAN. Both go up once the port-channels to the access switches are active.

My experience: The first time I pasted the configuration into CORE, every command came back with Please answer yes or no. The 3560 was still waiting for an answer to the initial configuration dialog. Type no, press Enter a few times until you see Switch>, then enter the configuration.

Checking the EtherChannels and Trunks

With all three switches configured, we check that both bundles formed. The most useful EtherChannel command is show etherchannel summary.

Two sets of letters matter. The letters after the port-channel show the bundle’s state, and the letter after each port shows whether that port actually joined the bundle.

Po1 and Po2 are both SU

show etherchannel summary on CORE with Po1 SU and no protocol, Po2 SU PAgP
show etherchannel summary

Po1(SU) and Po2(SU) mean Layer 2 and in use. Every port shows (P), so they are all in their port-channel. The Protocol column for Po1 is a dash because mode on uses no protocol, while Po2 shows PAgP.

The trunk runs on the port-channels

show interfaces trunk on CORE with Po1 and Po2 trunking 802.1q
show interfaces trunk

The trunks listed are Po1 and Po2, not Fa0/1 to Fa0/4. VLANs 1, 10, and 20 are active on both port-channels.

Testing Inter-VLAN Traffic over EtherChannel

Now we prove the path actually works. PC0 in VLAN 10 pings PC1 in VLAN 20 (same switch), then PC3 in VLAN 20 (the other switch).

The ping to PC3 is the full test. The packet leaves over Po1, CORE routes it from VLAN 10 to VLAN 20, and it goes down Po2 to SW-B.

Open PC0

PC0 at the bottom left circled in red

Click PC0, open the Desktop tab, then Command Prompt.

Ping PC1 and PC3

PC0 pinging 192.168.20.11 and 192.168.20.12 successfully with TTL 127
ping 192.168.20.11
ping 192.168.20.12

Both work with TTL=127. The TTL dropped by one from 128, which shows the packet crossed one routing device, CORE. The first timeout is ordinary ARP.

Cable Failure Test on Port-Channel 1

Redundancy is one of the main reasons to use EtherChannel. If one cable dies, the bundle stays up as long as another member is alive.

To simulate a broken cable I shut down Fa0/1 on CORE. The effect is the same as pulling the cable, but it is easier to undo.

Fa0/1 is down, Po1 is still SU

Fa0/1 shown as D while Po1 stays SU
configure terminal
interface fa0/1
 shutdown
end
show etherchannel summary

Fa0/1 changes to (D) for down, but Po1 is still (SU) because Fa0/2 is still (P).

The ping still shows 0% loss

PC0 pinging PC3 with 0% loss while one Po1 cable is down

From PC0 I pinged PC3 again and got 4 replies, 0% loss. Users would not notice anything even though one uplink is dead. Afterwards I brought Fa0/1 back with no shutdown.

The Hard Test: Mode On Meets LACP

This happens when two people configure the two ends separately. CORE stays in mode on, while SW-A is changed to LACP (mode active).

If both sides used a protocol, a mistake like this would be caught at once and no bundle would form. The problem is that mode on never sends negotiation packets, so CORE has no idea the other side changed.

Change SW-A to mode active

SW-A in mode active showing Po1 SD LACP with stand-alone I ports
configure terminal
interface range fa0/23 - 24
 no channel-group 1
 channel-group 1 mode active
end
show etherchannel summary

After 30 seconds SW-A shows Po1(SD) with protocol LACP, and Fa0/23 and Fa0/24 are (I) stand-alone. On SW-A the bundle failed, but CORE, still in mode on, believes Po1 is fine.

The ping works, but with a duplicate reply

PC0 pinging the gateway with Sent 4 Received 5 because of a duplicate reply

I pinged the gateway from PC0. The result was odd: Sent = 4, Received = 5. One reply arrived twice. On SW-A the two cables run as separate ports, while CORE treats them as one bundle, so frames can get duplicated.

My experience: On a real network this can get much worse: duplicate packets, MAC addresses flapping between ports, even a loop. That is why Cisco recommends LACP or PAgP on both ends, and mode on only when you control both switches yourself.

Put SW-A back in mode on

SW-A back to mode on with Po1 SU and Fa0/23 and Fa0/24 as P
configure terminal
interface range fa0/23 - 24
 no channel-group 1
 channel-group 1 mode on
exit
interface port-channel 1
 switchport mode trunk
end
write memory
show etherchannel summary

Po1 is back to (SU) with Fa0/23 and Fa0/24 as (P). After no channel-group the trunk setting on the port-channel is gone too, so switchport mode trunk has to go back on.

Which EtherChannel Mode Pairs Work

Every EtherChannel has two ends, and not every pair of modes forms a bundle. This table sums up the lab results and Cisco’s rules.

The two things to remember: mode on only matches on, and two passive modes (auto with auto, passive with passive) never form a bundle.

Side A        Side B        Result
on            on            Bundle forms (no negotiation)
on            active/auto   Mismatch, duplicates or loops possible
desirable     auto          PAgP bundle forms
desirable     desirable     PAgP bundle forms
auto          auto          No bundle
active        passive       LACP bundle forms
active        active        LACP bundle forms
passive       passive       No bundle
PAgP          LACP          No bundle

Common Problems and Fixes

Most EtherChannel problems come from settings that differ between bundle members or between the two ends of the link. A switch will refuse to bundle a port whose settings do not match.

Make a habit of checking show etherchannel summary on both switches, not just one.

The port-channel is SD and the ports show (I)

The modes on the two ends do not match, for example auto with auto. Change one side to desirable.

switchport mode trunk is rejected on the 3560

A multilayer switch needs switchport trunk encapsulation dot1q before mode trunk.

Ports show (s) suspended

The member ports have different settings, such as VLAN or speed. Make all members identical and set the trunk on the port-channel interface.

PCs in different VLANs cannot ping

ip routing is not on in CORE, or a PC has the wrong gateway. Check show ip route on CORE.

We now have mode on and PAgP EtherChannels in one topology, proof that the backup cable works, and a first-hand look at the risk of a mode that never negotiates. To compare with LACP, read EtherChannel LACP configuration in Cisco Packet Tracer. If parallel cables are not bundled with EtherChannel, STP blocks one of them. How to choose which one stays active is covered in STP port priority and port cost configuration. If something breaks while you follow along, leave a comment below.

Leave a Comment