Two cables between two switches are a loop for spanning tree; one is blocked and lies idle. A port channel (link aggregation) bundles the cables into one logical link. Spanning tree only sees one port, both cables carry traffic, and if one fails everything runs over the other.
LACP
The Link Aggregation Control Protocol checks that both sides really belong together. The switches send LACPDUs with their system ID and a key; only ports with a matching partner join the bundle.
Mode
Behaviour
active
sends LACPDUs itself
passive
only answers
on
bundles without LACP (both sides must be “on”)
At least one side must be “active”. Ports with different VLAN or trunk settings stay out. Which frame takes which cable is decided by a hash over the addresses; a single connection therefore always uses the same cable.
Command line
Switch(config)# interface range port7-8
Switch(config-if)# channel-group 1 mode active
Switch(config)# interface port-channel 1
Switch(config-if)# switchport mode trunk
Switch# show etherchannel summary
How to do it in leyoNET
The same text as in the app’s help (F1 key).
Port-channel (link aggregation)
A port-channel bundles several cables between two switches into one logical link: more bandwidth and redundancy, without a loop. Spanning tree sees the channel as one port.
Put the same ports into a channel on both switches (tab Switching, column port-channel, or channel-group 1 mode active).
LACP (IEEE 802.1AX) negotiates the bundle: at least one side must be active, the other may be passive. On bundles without negotiation; if the other side is set up wrongly, a loop results.
All ports of a channel need the same VLAN or trunk setting; differing ports are suspended. interface port-channel 1 configures all of them at once.
If a port leads to a different switch or the other side has no channel, it stays suspended (no loop).
Each conversation takes one cable depending on the MAC addresses; if one fails, all continue over the rest.
show etherchannel summary shows the state (P bundled, s suspended). Several cables without a channel form a loop: see Spanning tree (STP).
See an example
Port-channel with LACP
Two cables between two switches are bundled into one link with LACP: double bandwidth, redundancy, no loop.
Filter «lacp»: both switches exchange LACPDUs every second. Then the office PC pings the lab PC through the channel. Spanning tree blocks neither of the two ports.
“Watch live” opens the network in leyoNET, the simulation runs in a loop. In the app you find it under File → Demo networks, with a step-by-step tour.
Practise
★★★★☆Extra 3: port channel between the floors· 3 goals · Worksheet (German)
In leyoNET under Tools → Exercise catalogue. Every exercise checks itself.
What leyoNET simplifies
Protocol
Layer
Simplification in the simulation
LACP
2
LACPDU (slow protocols, 0x8809) with actor/partner, short timers (1 s, partner expires after 3 s); no priorities, no marker protocol; distribution by hash of the MAC addresses
Standards
IEEE 802.1AX – Link Aggregation (current edition: IEEE 802.1AX-2020)
Read on
Spanning tree (STP)Redundant cables without a broadcast storm: root bridge, port roles, blocked ports and what happens without STP.
SwitchConnects devices in the same network, learns MAC addresses, separates networks with VLANs and prevents loops with spanning tree.