Lab 5 — EtherChannel
Two switches, six links, three bundles.
Turn parallel links into single logical links with LACP, PAgP, and a static bundle — and watch what happens when the two ends disagree. Work through it in order — check steps off, copy the commands, and finish with the show commands that prove the bundles formed.
Interactive lab — play with it
A simulated CLI for this lab. Click a switch, type the commands, and watch the bundles form only when both ends agree on a protocol.
A simulated CLI for this lab — click a switch, type the commands, and watch the bundles form only when both ends agree on a protocol. This models Lab 5’s commands only, not real switches: unsupported commands say so instead of faking it. Type ? for help and use Tab to complete a command.
Lab 1 simulator — simulated IOS 15.0(2)SE. Type ? for help.
Only this lab's commands are simulated; unsupported commands say so.
Up/down arrows recall commands. The full command list is in the walkthrough below.
Interactive lab
Lab 5 — EtherChannel
Two switches, six links, three bundles. Turn parallel links into single logical links with LACP, PAgP, and a static bundle — and watch what happens when the two ends disagree.
Click a device to open its console, type the real commands, and check your work when you think it’s done. The lab checks each step as you go.
Walkthrough — commands in order
Two switches, six links, three bundles. Turn parallel links into single logical links with LACP, PAgP, and a static bundle — and watch what happens when the two ends disagree.
PC-A ── SW1 ═══ Po1 (LACP, Gi0/1-2) ═══ SW2 ── PC-C VLAN 10 Sales
PC-B ── SW1 ═══ Po2 (PAgP, Fa0/1-2) ═══ SW2 ── PC-D VLAN 20 Engineering
═══ Po3 (static, Fa0/3-4) ═══
Management VLAN 99 — native on the Po1 trunkWhere this shows up in the data center
The data-center version of this is the bonded uplinks on a top-of-rack switch — same idea, more links, and usually LACP. I check a bundle the same way I check a single link: LLDP neighbor first, optics second, then the port-channel state — and when a bundle won’t form, the first thing I check is whether the two ends actually agree on the mode.
SW1(config)# vlan 10 SW1(config-vlan)# name Sales SW1(config-vlan)# vlan 20 SW1(config-vlan)# name Engineering SW1(config-vlan)# vlan 99 SW1(config-vlan)# name Management
Do this on both switches.
SW1(config)# interface range gi0/1 - 2 SW1(config-if-range)# channel-group 1 mode active SW1(config)# interface port-channel 1 SW1(config-if)# description Link to SW2 SW1(config-if)# switchport mode trunk SW1(config-if)# switchport trunk allowed vlan 10,20,99 SW1(config-if)# switchport trunk native vlan 99
Repeat on SW2 with description Link to SW1. The trunk config goes on the port-channel interface, not the member ports.
SW1(config)# interface range fa0/1 - 2 SW1(config-if-range)# channel-group 2 mode desirable SW1(config)# interface port-channel 2 SW1(config-if)# description Link to SW2 PAgP
SW2 uses mode auto for this bundle. In the real world, prefer LACP — PAgP only exists on Cisco gear.
SW1(config)# interface range fa0/3 - 4 SW1(config-if-range)# channel-group 3 mode on SW1(config)# interface port-channel 3 SW1(config-if)# description Link to SW2 static
Repeat on SW2 with mode on and description Link to SW1 static.
SW1# show etherchannel summary SW1# show interfaces port-channel 1
Verify it worked
Don’t trust the config until a show command proves it. These are the outputs you should see — if yours differ, that’s the troubleshooting.
SW1# show etherchannel summary
Flags: D - down P - bundled 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
M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 3
Number of aggregators: 3
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi0/1(P) Gi0/2(P)
2 Po2(SU) PAgP Fa0/1(P) Fa0/2(P)
3 Po3(SU) - Fa0/3(P) Fa0/4(P)SW1# show interfaces port-channel 1
Port-channel1 is up, line protocol is up
Hardware is EtherChannel, address is 0001.42aa.0001 (bia 0001.42aa.0001)
Description: Link to SW2
MTU 1500 bytes, BW 2000000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 2000Mb/s, media type is EtherChannel
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped outCheck yourself
Three questions from the exam angle. Tap to reveal the answer — say it out loud first.
Q1. Both sides are configured passive. Does the bundle form?
Q2. Do the channel-group numbers have to match on both ends?
Q3. Why bundle links instead of letting spanning tree block the extras?
Next labs:
Keep going: Lab 6 — Port Security locks each access port to the MACs it should see, or go back to Lab 4 — Inter-VLAN Routing. All labs are on the labs hub.