Network Troubleshooting

Troubleshooting Computer Systems and Networks

A practical guide to troubleshooting computer systems and networks: a repeatable method, the basic Windows and Linux checks, and when to escalate.

On this page
  1. What troubleshooting a computer system or network involves
  2. A repeatable method
  3. Working from the bottom up or the top down
  4. First checks on Windows
  5. First checks on Linux
  6. Hardware and cable checks
  7. Keeping notes so problems do not repeat
  8. When to escalate or call in help
  9. Related questions

What troubleshooting a computer system or network involves

Troubleshooting is the process of finding out why a computer or network is not behaving as it should, fixing the fault, and confirming that it stays fixed. It is less about knowing one trick and more about working in a sensible order: describe the problem, guess at the likely causes, test them one at a time, and record what happened.

The same approach works for a laptop that cannot reach a website, a Windows server that has lost a file share, or a Linux machine whose service will not start. The tools differ, but the method stays much the same.

A repeatable method

  1. Identify the problem. Write down what is happening, what should happen instead, and any error message. Note who or what is affected and when it started.
  2. Find a probable cause. Start with the simplest explanations, such as a loose cable, a device that needs a restart, or a recent change. Keep a short list.
  3. Test one cause at a time. Change one thing, check the result, and undo it if it made no difference. Changing several things at once makes it hard to tell what helped.
  4. Fix it. Apply the change that addresses the cause, and plan how you would reverse it if it causes new problems.
  5. Verify and record. Confirm the original problem is gone and nothing else broke. Write down the cause and the fix so the next person, or you in six months, does not start from zero.

Working from the bottom up or the top down

Networks are often described as layers, and admins usually pick one of two directions:

  • Bottom up starts with the physical link: the cable, the port and its link light, then the IP address, then name lookup, then the application. It suits a device that seems to have no connection at all.
  • Top down starts with the application, such as a web browser, and works down. It suits a single program failing while other things work.

Either way, each check answers a narrow question. Is there a link? Is there an address? Can the device reach the gateway? Can it reach an address outside the local network? Does the name resolve?

First checks on Windows

Open Command Prompt or PowerShell and try these:

  • ipconfig /all shows the IP address, subnet mask, default gateway, and DNS servers the computer is using.
  • ping 127.0.0.1 tests the computer’s own network stack. If this fails, the problem is local.
  • Pinging the default gateway, which is usually the router, tests the connection to the local network.
  • ping 8.8.8.8 tests reaching an address outside your network without involving name lookup. Some networks block ping, so a failure here is a clue rather than proof.
  • tracert example.com shows the route and where replies stop.
  • nslookup example.com checks whether names resolve.

If name lookup fails but the IP address works, DNS is a likely suspect. ipconfig /flushdns clears the local DNS cache. On a connection that gets its address automatically, ipconfig /release followed by ipconfig /renew asks for a fresh address.

For a deeper look, Event Viewer records driver and network errors with timestamps under Windows Logs, then System. That helps tie a fault to a time when something changed.

First checks on Linux

Most of the same questions can be answered on Linux:

  • ip addr show lists the interfaces and their addresses. ip route show shows the default route, which should point to your gateway.
  • ping -c 4 127.0.0.1, a ping to the gateway, and ping -c 4 8.8.8.8 run the same local, LAN, and internet tests. The -c 4 option stops after four replies.
  • traceroute example.com, or tracepath example.com, shows the path. You may need to install the traceroute package first.
  • dig example.com or resolvectl query example.com checks name lookup. Which one is available depends on the distribution and how DNS is set up.
  • ss -tulpn lists listening TCP and UDP ports and the programs using them.
  • journalctl -u NetworkManager on systems that use NetworkManager, and dmesg, show logged driver and network messages.
  • systemctl status <service> shows whether a service is running and why it stopped.

Command names and available tools vary between distributions, so check the documentation for your version before relying on one.

Hardware and cable checks

Many faults that look complicated come from something physical:

  • Check the link lights on the network port and on the switch or router. A missing link light usually points to the cable, the port, or the device rather than the software.
  • Try a different cable and a different port on the switch. This is quick and rules out a damaged cable or port.
  • Restart the modem and then the router, if your setup uses both, and wait for them to finish starting before testing again.
  • For wireless devices, check whether the device is close enough to the access point and whether it has joined the right network name.

Keeping notes so problems do not repeat

A short log saves time. For each fault, record the date, the symptom, the checks you ran and what they showed, the fix, and whether it held. A plain text file in a shared folder is enough. Over time the log shows patterns, such as a cable that fails every few months or a driver that causes trouble after updates. Routine checks, such as a periodic computer network system health check, can catch some faults before users report them.

When to escalate or call in help

Escalate when the fault affects several people or services, when the fix needs access you do not have, when the risk of making things worse is high, or when you have tested the likely causes and none of them explains the symptoms. Pass on your notes so the next person does not repeat the same checks.

If you are not sure what the work involves, start with the explanation of what it means to troubleshoot a network. Readers who search for “what are the 10 common network problems” usually want a checklist of typical faults, each with a first check. For a structured method, compare “what are the 5 basic troubleshooting steps for a computer” with the longer seven-step version. The wider set of tests is covered in the guide on how to test a computer network. On Linux, a stuck network service is often the next thing to check after the logs, and the commands for that are covered in how to restart network services in Linux. If you need the adapter names on a Linux machine, the answer to “how do I list all network interfaces on Linux” is the ip command shown above.

Keep exploring

Guides from other topics

All topics →