A Network Troubleshooting Method That Works
Follow a repeatable method to isolate network faults, test one layer at a time and verify fixes.
Key takeaways
- Start by writing down the exact symptom, who is affected and when it began.
- Compare a working case with a broken one to find what differs.
- Check layers in order: link, address, gateway, internet path, names, then the application.
- Change one thing at a time and be ready to undo it.
- Verify the fix with the original test and record what you found.
A reliable way to troubleshoot a network is to describe the problem precisely, find out how far it reaches, test from the bottom of the stack upward, change one thing at a time, and confirm that the original symptom is gone. It works for a home printer that won't print and for an office that can't reach a server.
The method matters more than any particular command. It stops you from rebooting things at random, which sometimes helps and rarely teaches you anything.
Define the problem
"The internet is broken" can mean a dead cable, one slow website or a forgotten password. Turn it into a statement you can test, such as "this laptop can't load any website over Wi-Fi since this morning; the phone next to it can."
Ask a few questions:
- What exactly happens? Copy the error message word for word.
- What did you expect to happen?
- When did it last work?
- What changed since then: updates, new equipment, a move, a setting?
- Is it constant or intermittent?
Don't accept a theory as a description. "The DNS is down" may be right, but "names fail to resolve on two computers" is something you can check.
Find the scope
Scope is the fastest clue you have. If one device fails and others work, look at that device. If every device on Wi-Fi fails but wired ones work, look at the wireless network. If everything fails, look at the router, modem or provider. If only one website or service fails for everyone, the problem is likely on its side or along the path to it.
Get a second opinion cheaply: try another device, another network such as a phone's mobile data, or another browser.
Test in layers
Networking is built in layers, and each one depends on those beneath it. Testing upward means you never debug DNS while a cable is unplugged.
Start at the bottom of this picture and move up. In practice:
- Link. Is the adapter enabled? Are cable lights on? Is Wi-Fi connected to the intended network?
- Address. Run the commands in reading your network setup. A
169.254address or a missing gateway ends the search here. - Gateway.
pingyour router's address. - Beyond.
pinga public IP address. If ping is filtered, try a connection to a service you trust. - Names.
nslookup example.com. If this fails while addresses work, see fixing DNS server errors. - Port. Test the port the service uses.
- Application. Request the real thing, for instance with
curl -v https://example.com/.
The first layer that fails is where to work. Higher failures are usually just consequences.
Divide and conquer
Going strictly from the bottom isn't always fastest. A single test in the middle can cut the problem in half. If a web page loads, the link, address, gateway and routing are clearly fine, so skip straight to the failing application. If you can't ping your gateway, nothing above matters yet.
The same idea works along a path. Connect a computer directly to the modem. If the fault disappears, it's in the router or beyond it toward your devices. If it remains, it's the modem, the line or the provider. After swapping equipment on some connections, you may need to restart the modem so it recognizes the new device.
Form a theory and test it
Once you've located the layer, state a likely cause and a test that could prove it wrong. "If the DNS server is the problem, then querying a different resolver directly should succeed":
nslookup example.com
nslookup example.com 192.0.2.53 Replace the second address with a resolver you're allowed to use. If both fail, your theory is weaker, and that's useful information. Start with causes that are common and cheap to check: loose cables, wrong network, expired sign-in on a guest portal, a recently changed setting.
Change one thing at a time
If you replace the cable, change the DNS server and update the router together, and the problem vanishes, you don't know which did it, or whether you created a new issue. Make one change, test, and either keep it or revert it.
Before altering a router or server, note the current settings or export the configuration. Think about whether the change could lock you out, especially when you're working remotely. Avoid factory resets until you've saved what you'd need to rebuild; they erase evidence along with settings.
Compare with something that works
When theory runs out, comparison often finds the answer. Take a device that works and one that doesn't, on the same network, and line them up: address and prefix, gateway, DNS servers, Wi-Fi band and network name, VPN or proxy settings, security software and system time. Whatever differs is a candidate.
The same applies across time. A saved copy of a working configuration, a diagram showing which cable goes where, and a note of normal ping times turn a vague "something's off" into a specific difference. Collect these on a quiet day; you can't take a baseline once things are already broken.
Don't overlook the clock. A computer with a badly wrong date can reject every certificate, which looks like a network fault in the browser although packets flow perfectly. Captive portals on guest networks cause similar confusion: the Wi-Fi connects, but nothing loads until you accept terms or sign in on the portal page.
A worked example
Say a small office reports that the shared file server is unreachable from one meeting room. Define it: two laptops in that room fail, desks elsewhere work, and it started on Monday. Scope: one location, one service at first glance, but you check and find the room has no internet either.
Layers: both laptops show Wi-Fi connected. Their addresses are in 192.168.0.x, while desks use 192.168.10.x. The gateway differs too. That is the finding. The laptops are joined to a different network, perhaps a spare access point or router someone plugged in over the weekend with a similar name.
The theory predicts that forgetting that network and joining the correct one will restore access. It does. You then deal with the cause: locate the stray device, remove it or reconfigure it, and tell staff which network name to use. You note it, with the date and how you confirmed it. No reboot of the file server was ever needed, although it was the first suggestion in the room.
Intermittent faults
The hardest problems come and go. Rather than waiting to catch one by hand, record it. Run a long ping to the gateway and another to an outside address, with timestamps. On Linux:
ping -D 192.168.1.1 | tee gateway.log The -D option on common Linux versions prints a timestamp on each line. If the gateway log shows gaps too, the fault is local. If only the outside log does, look beyond your router. MTR can then show where loss begins.
Check your router's log for restarts or lost connections at matching times, and look for patterns: a certain hour, a microwave running, a large backup, a warm closet.
Slow rather than broken
For speed complaints, measure before adjusting. Test on a wired connection and then on Wi-Fi from the usual spot, following a fair speed test. If wired is fine and wireless is poor, the plan isn't the issue. If both are slow only at busy hours, capacity or congestion is likelier. Watch for a device quietly uploading in the background.
When the fault is on the other side
Sometimes every local test passes. Your link, address, gateway and names are fine, other sites load, and one service fails. Check whether the provider of that service publishes a status page, try from a second network, and capture the exact error and time. A status code such as 502 or 503 means you reached a server that couldn't complete the request, so further changes on your equipment are unlikely to help.
If it fails from your network but works from a mobile connection, the difference lies between: your provider's routing, a filter on your network, or the service blocking your address. Gather the evidence and send it to whoever controls that segment.
Verify, then write it down
Repeat the exact test that failed at the start. Ask the person who reported it to confirm. Watch intermittent problems for long enough to be confident.
Then record the symptom, the cause, the fix and how you proved it. A few lines in a shared note save hours next time. If you can prevent a repeat with a label on a cable, a DHCP reservation or a monitoring check, do it now.
When to escalate
Hand the problem on when it lies in equipment you don't control, when you lack access, or when continued experiments risk making it worse. A good handover includes the symptom, scope, timeline, what you tested with results, and what you changed. That spares the next person from starting over, and it usually gets a faster answer from a provider's support line.
Common mistakes
- Assuming the cause is the last thing you read about.
- Trusting a cached result; test with a fresh request.
- Ignoring the time on clocks and logs, which makes events impossible to match.
- Treating a reboot as a diagnosis. It can restore service, but capture the error and logs first if the fault keeps returning.