Network Troubleshooting: A Structured Method with Real Commands
What is network troubleshooting?
Network troubleshooting is the process of finding and fixing the cause of a connectivity or performance problem in a repeatable way. A structured method gathers facts, forms a theory, tests it, applies a fix, verifies the result and records what happened. Working layer by layer through the OSI model keeps the search ordered and stops guesswork.
A seven-step troubleshooting method
The method below is widely taught, including in the CompTIA Network+ objectives. Its value is discipline: every change is deliberate and every result is checked.
- Identify the problem. Ask what exactly fails, for whom, since when, and what changed. Reproduce it yourself if you can.
- Establish a theory of probable cause. Start with the simple and likely causes, such as a cable, a DHCP lease or a recent change.
- Test the theory. Run a command that proves or rules it out. If it is ruled out, form a new theory.
- Plan the fix and consider its side effects, such as an outage for other users.
- Implement the fix or escalate if it is outside your access or authority.
- Verify full functionality from the user point of view and, where relevant, add a preventive measure.
- Document the symptoms, cause, fix and outcome.
Working bottom-up through the OSI layers
The bottom-up approach starts at the physical layer and moves upward. Each layer depends on the ones below it, so there is no point checking DNS if the cable is unplugged. The OSI model guide describes each layer in detail.
| Layer | What to check | Useful tools |
|---|---|---|
| 1 Physical | Link lights, cable, Wi-Fi signal, interface up | ip link, adapter status, switch port status |
| 2 Data link | Correct VLAN, MAC learned on the switch, ARP entries | arp -a, ip neigh |
| 3 Network | IP address, mask, gateway, routes | ipconfig, ip addr, ping, tracert |
| 4 Transport | Is the TCP or UDP port open and reachable | Test-NetConnection, nc -zv, ss |
| 7 Application | DNS, TLS certificate, HTTP status, credentials | nslookup, dig, curl -v |
Two other approaches are useful. Top-down starts at the application and suits faults where one program fails but others work. Divide and conquer starts in the middle, usually with a ping to the gateway, and moves up or down depending on the result. The commands themselves are listed in our network commands reference.
Questions to ask before touching anything
- Is it one user, one floor, one site or everyone?
- Is it one application or website, or all traffic?
- Is it wired, wireless or both?
- Did it ever work? What changed: a patch, a new device, a firewall rule, a password?
- Is it constant or intermittent, and at what times?
The scope often points straight to the layer. One user on one PC suggests that machine; a whole floor suggests a switch or VLAN; everyone at once suggests the internet link, DNS or a core device.
Common scenarios and the commands that solve them
Scenario 1: no network at all and a 169.254 address
An address in 169.254.0.0/16 means the device received no reply from a DHCP server. Check the link first, then the DHCP service and the switch port VLAN. The DHCP guide explains the lease process.
ipconfig /all :: look for 169.254.x.x and "DHCP Enabled"
ipconfig /release && ipconfig /renewScenario 2: IP addresses work but names do not
If ping 1.1.1.1 succeeds but ping example.com reports that the host could not be found, the fault is name resolution. Check the configured DNS servers, query another resolver directly and look for stale hosts file entries.
nslookup example.com # uses the configured resolver
nslookup example.com 1.1.1.1 # bypasses it
resolvectl status # Linux with systemd-resolvedScenario 3: one website or service fails
Test the specific port. A timeout suggests a firewall drop or routing problem; a refused connection means the host replied but nothing listens on that port; a TLS error points to a certificate or time problem.
Test-NetConnection intranet.example.com -Port 443
curl -v https://intranet.example.comScenario 4: slow or intermittent connection
Measure before guessing. Run mtr or pathping for a few minutes to see where loss or delay begins. On the local side, check interface error counters with ip -s link and look for duplex mismatches or a weak Wi-Fi signal.
Documenting faults and fixes
Good notes save the next engineer hours, and often that engineer is you. Record each incident in the ticketing system or a shared log with the same fields every time.
- Date, time and who reported the problem.
- Symptoms and scope, in the user words and in technical terms.
- Tests run, with the commands and key output.
- Root cause, the fix applied and any configuration changed.
- How the fix was verified and any follow-up action.
Keep up-to-date network diagrams, IP address plans and a baseline of normal latency and traffic, because you cannot spot abnormal behaviour without knowing what normal looks like. Security incidents follow a separate process described in incident response.
Practical exercise: break and fix a lab network
Work with a partner, or alone with two virtual machines you own. One person introduces a fault; the other finds it using the seven steps.
- Set a wrong default gateway on one machine.
- Set an unreachable DNS server.
- Block TCP port 80 with a host firewall rule while ping still works.
- Give two machines the same IP address.
- Disable the network interface.
For each fault, write a short ticket with the symptom, the first theory, the commands used, the cause and the fix. You are done when all five are solved and documented without guessing. Guided labs of this kind are part of the Networking Foundation course.
Common mistakes
- Jumping to a complex theory before checking the cable, the IP configuration and recent changes.
- Changing several settings at once, so the real cause is never known.
- Trusting a failed ping as proof of an outage when ICMP is filtered.
- Forgetting to verify from the user point of view after applying a fix.
- Skipping documentation, so the same fault takes just as long next time.
Frequently asked questions
When should I use top-down instead of bottom-up?
Use top-down when one application fails while others on the same machine work, because the lower layers are clearly working. Use bottom-up when nothing works or when the symptoms are vague.
What is a baseline and why does it matter?
A baseline is a record of normal behaviour, such as typical latency, bandwidth use and error counts. When users report slowness, you compare current measurements with the baseline to see what actually changed.
How do I find a duplicate IP address?
Windows usually warns about an address conflict. On any system, check the ARP cache with arp -a or ip neigh; the same IP address showing different MAC addresses at different times points to a duplicate. The MAC address guide explains how to trace the device.