When one uplink between two switches is not enough, adding a second cable does not help by itself: Spanning Tree blocks it. EtherChannel sol...
When one uplink between two switches is not enough, adding a second cable does not help by itself: Spanning Tree blocks it. EtherChannel solves this by bundling several physical links into one logical link that STP treats as a single port. In this lab you will build two EtherChannels in Packet Tracer, one with LACP and one with PAgP, carry VLAN trunks over them, and verify everything with the right show commands.
What EtherChannel gives you
- More bandwidth: two FastEthernet ports form a 200 Mbps logical link; up to eight active ports per bundle.
- Redundancy: if one member link fails, traffic continues on the others without waiting for STP to reconverge.
- Simpler STP: the bundle (a
Port-channelinterface) is one STP port, so nothing is blocked inside it.
Keep one thing in mind: EtherChannel does not split a single conversation across links. A hash of addresses picks one member link per flow. Many flows spread across the bundle; one big file copy still uses one link.
LACP vs PAgP vs static
There are three ways to form a bundle. LACP is an IEEE standard (originally 802.3ad, now 802.1AX) and works with any vendor. PAgP is Cisco proprietary. Mode on forces a bundle without any negotiation.
| Protocol | Modes | Standard | Use when |
|---|---|---|---|
| LACP | active, passive | IEEE 802.1AX | Default choice; mixed vendors, servers, firewalls |
| PAgP | desirable, auto | Cisco proprietary | Older all-Cisco networks |
| Static | on | None (no protocol) | Devices that cannot negotiate; use with care |
Which mode combinations form a channel:
| Side A | Side B | Channel forms? |
|---|---|---|
| active | active | Yes |
| active | passive | Yes |
| passive | passive | No (nobody starts negotiation) |
| desirable | desirable | Yes |
| desirable | auto | Yes |
| auto | auto | No |
| on | on | Yes |
| on | active / desirable | No |
| LACP mode | PAgP mode | No |
Lab topology
SW1 is the distribution switch. SW2 and SW3 are access switches. All three are 2960s. VLAN 10 (Staff) and VLAN 20 (Guest) exist on all switches.
| Link | SW1 ports | Remote ports | Bundle | Protocol |
|---|---|---|---|---|
| SW1 – SW2 | Fa0/21, Fa0/22 | SW2 Fa0/21, Fa0/22 | Port-channel 1 | LACP (active / passive) |
| SW1 – SW3 | Fa0/23, Fa0/24 | SW3 Fa0/23, Fa0/24 | Port-channel 2 | PAgP (desirable / auto) |
| Device | Port | VLAN | IP address |
|---|---|---|---|
| PC-A | SW2 Fa0/1 | 10 | 192.168.10.11/24 |
| PC-B | SW2 Fa0/2 | 20 | 192.168.20.11/24 |
| PC-C | SW3 Fa0/1 | 10 | 192.168.10.12/24 |
| PC-D | SW3 Fa0/2 | 20 | 192.168.20.12/24 |
Create the VLANs on every switch and assign the PC ports:
SW1(config)# vlan 10
SW1(config-vlan)# name Staff
SW1(config-vlan)# vlan 20
SW1(config-vlan)# name Guest
SW1(config-vlan)# exit
SW2(config)# interface fastEthernet0/1
SW2(config-if)# switchport mode access
SW2(config-if)# switchport access vlan 10
SW2(config-if)# interface fastEthernet0/2
SW2(config-if)# switchport mode access
SW2(config-if)# switchport access vlan 20
Repeat the VLAN creation on SW2 and SW3, and the access port configuration on SW3.
Step 1: LACP between SW1 and SW2
Configure the physical member ports first, all at once with interface range, so they have identical settings. I shut them down while I work, so that a half-configured bundle does not trigger STP or EtherChannel misconfiguration errors.
SW1(config)# interface range fastEthernet0/21 - 22
SW1(config-if-range)# shutdown
SW1(config-if-range)# switchport mode trunk
SW1(config-if-range)# channel-group 1 mode active
Creating a port-channel interface Port-channel 1
SW1(config-if-range)# no shutdown
SW1(config-if-range)# exit
SW1(config)# interface port-channel 1
SW1(config-if)# switchport mode trunk
SW1(config-if)# switchport trunk allowed vlan 10,20
channel-group 1 mode activeadds the ports to bundle number 1 and makes them actively send LACP packets. The group number is locally significant, but using the same number on both sides keeps things readable.- IOS creates
interface Port-channel1automatically. Settings you apply to the port-channel (trunk mode, allowed VLANs) are pushed down to the member ports. - You can add
channel-protocol lacpbefore the channel-group command, but the mode keyword already selects the protocol.
On SW2, use passive mode so it waits for SW1 to start negotiation:
SW2(config)# interface range fastEthernet0/21 - 22
SW2(config-if-range)# shutdown
SW2(config-if-range)# switchport mode trunk
SW2(config-if-range)# channel-group 1 mode passive
Creating a port-channel interface Port-channel 1
SW2(config-if-range)# no shutdown
SW2(config-if-range)# exit
SW2(config)# interface port-channel 1
SW2(config-if)# switchport mode trunk
SW2(config-if)# switchport trunk allowed vlan 10,20
In production I normally use active on both sides. Passive here is just to show that active/passive works.
Step 2: PAgP between SW1 and SW3
SW1(config)# interface range fastEthernet0/23 - 24
SW1(config-if-range)# shutdown
SW1(config-if-range)# switchport mode trunk
SW1(config-if-range)# channel-group 2 mode desirable
Creating a port-channel interface Port-channel 2
SW1(config-if-range)# no shutdown
SW1(config-if-range)# exit
SW1(config)# interface port-channel 2
SW1(config-if)# switchport mode trunk
SW1(config-if)# switchport trunk allowed vlan 10,20
SW3(config)# interface range fastEthernet0/23 - 24
SW3(config-if-range)# shutdown
SW3(config-if-range)# switchport mode trunk
SW3(config-if-range)# channel-group 2 mode auto
Creating a port-channel interface Port-channel 2
SW3(config-if-range)# no shutdown
SW3(config-if-range)# exit
SW3(config)# interface port-channel 2
SW3(config-if)# switchport mode trunk
SW3(config-if)# switchport trunk allowed vlan 10,20
desirable actively sends PAgP packets; auto only responds. The 2960 does not need (or accept) switchport trunk encapsulation dot1q, because it only supports 802.1Q. On a 3560 in Packet Tracer, which also supports ISL, add that command before switchport mode trunk.
Verification
show etherchannel summary
This is the one command to remember. Give it 30 to 60 seconds after no shutdown, then run it on SW1:
SW1# show etherchannel summary
Flags: D - down P - 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
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 2
Number of aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+----------------------------------------------
1 Po1(SU) LACP Fa0/21(P) Fa0/22(P)
2 Po2(SU) PAgP Fa0/23(P) Fa0/24(P)
What you want to see:
- Po1(SU): S = Layer 2, U = in use. If you see (SD), the port-channel is down.
- (P) after each member: bundled in the port-channel. (I) means stand-alone (negotiation failed), (s) means suspended (usually a configuration mismatch), (D) means the physical port is down.
- The Protocol column confirms LACP for group 1 and PAgP for group 2. A dash means mode
on.
Check the trunks
SW1# show interfaces trunk
Port Mode Encapsulation Status Native vlan
Po1 on 802.1q trunking 1
Po2 on 802.1q trunking 1
Port Vlans allowed on trunk
Po1 10,20
Po2 10,20
Port Vlans allowed and active in management domain
Po1 10,20
Po2 10,20
Port Vlans in spanning tree forwarding state and not pruned
Po1 10,20
Po2 10,20
Notice the trunks are listed as Po1 and Po2, not as the individual Fa ports. That is the logical link at work.
Check STP
SW1# show spanning-tree vlan 10
...output trimmed...
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Po1 Desg FWD 12 128.27 P2p
Po2 Desg FWD 12 128.28 P2p
STP sees one port per bundle with a cost of 12 (the cost for a 200 Mbps aggregate), instead of two FastEthernet ports with cost 19 where one would be blocked. The Prio.Nbr and Type columns may look slightly different on your switch; the role and state are what matter. Role depends on which switch is root in your lab.
Other useful commands
| Command | Purpose |
|---|---|
show etherchannel port-channel | Details per port-channel, including protocol and member ports |
show interfaces port-channel 1 | Bandwidth (BW 200000 Kbit/sec for two FastEthernet links) and counters |
show lacp neighbor | LACP partner details per port |
show pagp neighbor | PAgP partner device and port |
show etherchannel load-balance | Current hashing method |
Test redundancy and load balancing
Start a continuous ping from PC-A to PC-C (ping -t 192.168.10.12), then delete one of the cables between SW1 and SW3. You may lose one reply at most; traffic moves to the remaining member, and show etherchannel summary shows the missing port as (D) while Po2 stays (SU).
The default hashing method on a 2960 is based on source MAC address. For links that carry traffic from many hosts to a few gateways, source-and-destination hashing spreads traffic better:
SW1(config)# port-channel load-balance src-dst-ip
SW1# show etherchannel load-balance
This is a global command and applies to every port-channel on the switch.
Prefer video? Watch more hands-on labs on the Technical Hakim YouTube channel.
Common mistakes
- passive/passive or auto/auto. Neither side starts negotiation, so the ports stay as (I) stand-alone. One side must be active or desirable.
- Mixing LACP on one switch and PAgP on the other. They are different protocols and will never agree.
- Mismatched member settings. Speed, duplex, trunk/access mode, native VLAN and allowed VLAN list must match on all members and both ends. A mismatched port shows (s) suspended or is not bundled.
- Configuring member ports individually after bundling. Make trunk and VLAN changes on the port-channel interface; IOS pushes them to the members. Changing one member alone can pull it out of the bundle.
- Using mode
onon one side and a negotiating mode on the other. The negotiating side never bundles, while theonside forwards as if it had. The result can be a loop or err-disabled ports (EtherChannel guard). - Expecting 200 Mbps for a single download. One flow uses one member link. The extra bandwidth is shared across many flows.
- Checking too early. In Packet Tracer, negotiation and STP need time. Wait until the links turn green before troubleshooting.
Summary
You bundled two pairs of FastEthernet links into Port-channel 1 using LACP (active/passive) and Port-channel 2 using PAgP (desirable/auto), configured the trunks on the port-channel interfaces, and verified with show etherchannel summary, show interfaces trunk and show spanning-tree. In new designs, use LACP in active mode on both ends; it is standard, works across vendors, and fails safely when something is misconfigured.
Related tutorials
- Trunking and 802.1Q on Cisco Switches: Configs and Common Errors
- Spanning Tree Protocol Basics: Root Bridge Election in a Lab
- Configuring Static VLANs on a Cisco Switch (Packet Tracer Lab)
- Inter-VLAN Routing with Router-on-a-Stick (Packet Tracer Lab)
Sources
- IEEE 802.1AX – Link Aggregation
- Cisco Catalyst 2960 Switch Software Configuration Guide – Configuring EtherChannels and Link-State Tracking
- Cisco Catalyst 2960 Switch Command Reference – channel-group, port-channel load-balance
- Cisco Catalyst 2960 Switch Software Configuration Guide – Configuring STP (port costs)
No comments