A troubleshooting method

Don't guess

Changing things at random until it works wastes time, and often adds new faults. Use a cycle:

  1. Define the problem: who is affected, what exactly fails, since when, what changed?
  2. Gather facts: show commands, logs, pings, what the users see.
  3. Form a theory about the cause, and test it.
  4. Fix one thing at a time, and verify that the original problem is gone (and nothing else broke).
  5. Document the cause and the fix.

Choosing where to start

ApproachHowGood when
Bottom-upStart at layer 1 (cables, interfaces) and work upSeveral things fail, or a physical change was made
Top-downStart at the application and work downOne application fails while others work
Divide and conquerStart in the middle (ping), then go up or downYou have experience and no clear clue: the usual choice
Follow the pathCheck each device hop by hop from source to destinationYou know the path (traceroute helps)
CompareCompare with a working device or a saved configOne of many similar devices fails

Commands by layer

LayerAskCommands
1 PhysicalCable in, link up, no errors?show interfaces status, show interfaces (errors, CRC), show power inline
2 Data linkRight VLAN, trunk up, STP forwarding, channel bundled?show vlan brief, show interfaces trunk, show spanning-tree, show etherchannel summary, show mac address-table, show cdp neighbors
3 NetworkAddresses, gateway, routes, DHCP?ipconfig / ip addr, show ip interface brief, show ip route, show ip dhcp binding, ping, traceroute
4-7Application reachable, port open?Application tests, ACLs (later), DNS

Remember: Most LAN faults are at layers 1-3: a cable, a port that's down or in the wrong VLAN, a trunk that doesn't carry the VLAN, or a wrong address, mask or gateway.

HOME LABS COMMUNITY DASHBOARD