Sub topic 10
A step-by-step connectivity troubleshooting workflow
This chapter assumes you can read ipconfig output, run ping and tracert, and know what a default gateway and a DNS server do. The goal is to combine those tools into one repeatable method. Each step tests one layer of the path, so the first step that fails tells you where to look.
The idea: test from the inside out
A connection depends on several things in sequence: your network stack, your configuration, your link to the gateway, the path beyond it, and name resolution. Start with the closest component and move outward. A pass means everything up to that point works. A failure means the fault is at that step or in the layer it checks.
Step 1: Read your configuration
Run ipconfig /all first. Check four things:
- The IPv4 address is plausible. An address starting with
169.254is an automatic private address. It means the DHCP server did not answer. - The subnet mask matches the network you expect.
- The default gateway is present and in the same subnet as your address.
- DNS servers are listed.
ipconfig /allStep 2: Ping in layers
Run the pings in order and stop at the first failure.
ping 127.0.0.1
ping 192.168.1.1
ping 8.8.8.8
ping example.comReplace 192.168.1.1 with the gateway you found in step 1. Also ping your own address if the loopback test passes and the gateway test fails.
| Test | Failure suggests |
|---|---|
| Loopback `127.0.0.1` | The TCP/IP stack is broken or blocked locally |
| Own IP address | The adapter is disabled or misconfigured |
| Default gateway | The local link is down or the gateway is unreachable |
| Remote IP `8.8.8.8` | The problem is beyond the gateway: router, ISP, or a firewall |
| Remote name | DNS resolution is failing |
The last two tests are the most informative pair. If ping 8.8.8.8 works and ping example.com fails with "could not find host", routing is fine and name resolution is the problem. Check the DNS servers from step 1.
Step 3: Locate a break with tracert
If the remote IP fails but the gateway works, trace the path.
tracert -d 8.8.8.8The last hop that answers is the nearest point where the path is known to work. If the trace stops right after your gateway, the fault is probably at your router's uplink or the ISP. If it stops several hops out, the fault is at or just past the last responding hop.
Step 4: Apply the fix and retest
Match the fix to the failing layer:
- No valid address: renew the lease with
ipconfig /releasethenipconfig /renew. - Name lookups fail or return stale answers: run
ipconfig /flushdns, then check the DNS server setting. - Gateway unreachable: check the cable, Wi-Fi association, and the gateway device.
- Failure beyond the gateway: report the last responding hop to your ISP or network team.
After each fix, repeat the ping sequence from the failing step.
Worked example
A user cannot open websites. ipconfig /all shows address 192.168.1.40, gateway 192.168.1.1, and DNS 192.168.1.1. Pings to 127.0.0.1, 192.168.1.1, and 8.8.8.8 all succeed. ping example.com reports it could not find the host. The path works, so only DNS fails. The user flushes the cache, then sets a working DNS server, and the name resolves.
Exercise
ping 127.0.0.1 and ping 192.168.1.1 (your gateway) succeed, but ping 8.8.8.8 times out and tracert -d 8.8.8.8 shows only hop 1 (the gateway) and then asterisks. Where do you look first, and what must you rule out before blaming the ISP?
Show answer
Look at the gateway's connection to the outside: its uplink, WAN configuration, or the ISP link, because the trace dies right after the first hop. Before blaming the ISP, rule out ICMP filtering by testing something that does not use ICMP, such as opening a website by IP address in a browser. If that works, the path is fine and only ICMP is blocked.