Why add a second path?
A single link or switch is a single point of failure. Real networks often give an access switch more than one uplink so traffic can use another path when a cable is cut. An access switch connects user devices. An uplink connects it towards the rest of the LAN. These extra paths are redundant links. Their value depends on the failure they protect against: two cables to the same switch do not keep that switch running if it loses power.
In our example, PC A at 192.168.10.10/24 connects to SW2. PC B at 192.168.10.20/24 connects to SW3. Both are in VLAN 10, a separate Layer 2 broadcast domain. SW1 connects to both switches, and SW2 also connects directly to SW3. PC A wants to send data to PC B. The same-subnet traffic does not need a router.
The figures focus on the switch paths, so individual cable ports are not labelled. When you build the optional lab below, record the actual local ports on your switch image. The priority numbers on the second figure help choose the Spanning Tree root; they are not IP addresses or link speeds.
Learn more: Why Is Spanning Tree Needed?
The catch: Ethernet frames have no TTL
PC A first needs PC B's MAC address, its Layer 2 destination. It sends an ARP request, a broadcast asking which device owns 192.168.10.20. A switch floods a broadcast: it copies the frame to eligible forwarding ports in that VLAN, except the port where it arrived. It also floods a unicast when its destination MAC is unknown.
Without a loop-prevention mechanism, all three paths can forward these copies back towards one another. Ethernet has no frame TTL, a hop counter that ends the loop. Even if the frame carries an IP packet, an ordinary Layer 2 switch does not reduce the IP TTL as a router would.
Device key: SW1, SW2, SW3 (switch) · PC A, PC B (computer)
Lines show the example’s network connections. The coloured path and envelope follow the current step; its text identifies the sender, receiver and traffic type.
- 1. One broadcast… PC A sends an ARP request.
- 2. …flooded both ways… SW2 sends a copy to each neighbour.
- 3. Copies return and are flooded again. Repeated flooding can create a storm, duplicate delivery and unstable source-MAC learning.
A broadcast storm is excessive broadcast traffic consuming link and device resources.MAC flapping means the switch repeatedly learns the same source MAC on different ports because copies arrive through different paths. The table becomes unstable, and a receiver may see duplicate frames. None of those symptoms is a reason to disable loop prevention.
Spanning Tree and EtherChannel have different jobs
Spanning Tree Protocol (STP) chooses a loop-free forwarding topology. Modern rapid variants use a discarding state for a port that must not forward user frames. EtherChannel combines compatible parallel links into one logical link, called a port-channel. STP can then treat that logical link as one port. EtherChannel does not remove a separate triangle elsewhere in the LAN.
| Question | Spanning Tree Protocol | EtherChannel |
|---|---|---|
| Idea | Block just enough ports to remove every loop | Bundle parallel links into one logical link |
| Data forwarding | Redundant ports can be blocked/discarding for this tree; control messages still matter | Active bundled members can share flows if the logical port is forwarding |
| Scope | A loop-free tree for a VLAN or spanning-tree instance | Compatible parallel links between the same logical endpoints |
| Learn more | Spanning Tree course | Next lesson |
Device key: SW1, SW2, SW3 (switch) · PC A, PC B (computer)
Lines show the example’s network connections. The coloured path and envelope follow the current step; its text identifies the sender, receiver and traffic type. Blocked: forwarding prevented by a port or policy. Down: failed link. Read the step for the cause.
- 1. With Spanning Tree: SW3's alternate port does not forward VLAN 10 user frames. After a suitable active-path failure, STP can move a remaining port into forwarding.
In practice they work together: EtherChannel bundles the links between each pair of switches, and Spanning Tree still guards the overall topology, now seeing each bundle as a single link.
Keep STP protecting the topology even when the switch-to-switch links are bundled. A single flow normally uses one EtherChannel member. Two 1 Gbps members offer aggregate capacity across suitable traffic; they do not turn one transfer into a guaranteed 2 Gbps transfer.
What happens after an active link fails?
If SW2's direct path to SW1 fails, the surviving SW2–SW3–SW1 path can become usable after Spanning Tree reacts. The recovery time depends on the protocol, link type and configuration; a diagram cannot promise instant failover. If SW3 itself fails, the PC attached only to SW3 still loses connectivity. Redundancy must cover the actual device and cable failures you care about.
A small observation lab
Use an isolated Cisco IOS XE switch lab with three switches in a triangle, working VLAN 10 trunks on all three inter-switch links and access ports for the two PCs. Use the full Spanning Tree course to configure the tree if this is new. Do not disable STP to reproduce the storm shown above.
show spanning-tree vlan 10
show interfaces trunk
show mac address-table dynamic vlan 10Privileged EXEC checks on each switch. Identify the root and port roles, verify VLAN 10 is carried on the intended trunks, then inspect learned source MAC locations after PC A pings PC B.
- Record the root switch and SW3's alternate/discarding port. A port may be discarding for VLAN 10 while forwarding another tree; read the intended VLAN.
- On SW2's lab-only uplink to SW1, enter interface configuration mode and apply
shutdown. Observe the new Spanning Tree roles and repeat the ping. A brief interruption may occur. - Restore that interface with
no shutdown. Wait for a stable tree, inspect the roles again and verify PC A and PC B still communicate.
Technical references: Cisco IOS XE Spanning Tree guidance and IEEE 802.1AX link aggregation. This is an authored teaching scenario, not a captured device test.
Loops and parallel links: a short quiz
What lets a switching loop continue indefinitely?
Two switches are joined by two cables. Without EtherChannel, what does Spanning Tree do?
Two 1 Gbps links form one forwarding EtherChannel, but one file transfer runs at less than 1 Gbps. What should you conclude first?