Case File: The Loop
At 10 a.m. an office network collapses: everything is slow, then nothing works, and the switch's CPU is pinned. Read the switch's log and neighbour tables to find the two ports that are looping frames, the device on both ends of the loop and how many hosts are caught in it. The log is generated for you alone.
Eko Metro Fibre Β· Episode 4
The Loop
An entire office floor is offline in the middle of a working morning
Ifeoma Field technician Β· Phone call
Ifeoma here, I am on site and it is chaos. The whole floor went from βa bit slowβ to nothing in about a minute. The switch lights are all blinking together and everything is dead. I did plug something in earlier, a little desk switch for a manager, but I am sure that was fine!
Can you look at the switchβs log and tell me what is happening? I do not want to unplug things at random.
The brief
You have the access switchβs log from the moment things went wrong, and its neighbour tables (show cdp neighbors and show lldp neighbors detail).
Look for the repeating MACFLAP messages, and note which two ports the hosts keep flapping between. Then check which device is attached to both of those ports. Ignore the single one-off flap on other ports: that is a harmless move, not part of the storm.
The flag: the description of the device on the loop contains a reference. Find it and submit it at the bottom of the page.
Preparing your evidenceβ¦
Ifeoma, a little later: βFound it. It was my desk switch, I had put in two cables instead of one, and I feel awful. The manager says it has βnever done this beforeβ. How do I explain to him why one extra cable can take down a whole floor, and what can we do so it cannot happen again?β
π The debrief unlocks when you close the case. Finish the lab above.
The debrief
Ifeoma: βThank you. I unplugged one cable and everything came back in seconds. At least now I can explain it properly.β
What a senior engineer would do next. Confirm service is back, then look for protection that would have contained this: BPDU guard on edge ports so an unexpected switch is shut down, storm control to limit broadcast traffic, and loop detection. They would also record the cause in the ticket and add a line to the siteβs install checklist: one cable from a desk switch, to one port, and never back into the same switch.
The ideas to keep.
- A layer 2 loop is a failure of the whole segment. Frames circle forever, so a tiny mistake has a huge effect.
- MAC flapping between the same two ports is the fingerprint. Find the ports, then find what connects them.
- Fix fast, then fix the cause. Break the loop first, then add the guards that stop the next one.
Next episode: the backup link.
Write the incident note
Say what you saw, which ports and device were involved, how you recognised a loop, and how to prevent a repeat.
π§ͺ Want to practise this on your own computer? See how to set up your lab →