// DevOps
Network Troubleshooting for Beginners: Part 1 — Addresses, Gateway, ping and traceroute
Published on 2026-09-22
When “the internet is not working”, it’s convenient to check from the bottom up: first your own computer and local network, then connectivity to external nodes, then DNS, ports and applications. This part covers the first steps: the computer’s network settings, connection to the router, and the basic utilities ping and traceroute.
Computer network settings
The first thing to check is whether the computer received an address and knows the gateway.
Linux:
ip -br addr # interface addresses (brief)
ip route # routing table, the 'default' line is the gatewaymacOS:
ifconfig
netstat -rn # routing tableWindows:
ipconfigIn the output, look at three parameters:
- IP address of the computer, for example
192.168.1.10; - subnet mask (
255.255.255.0or/24) — determines which addresses are in the same local network; - default gateway (the line
default via 192.168.1.1on Linux,Default Gatewayin Windows) — the router through which traffic to external networks goes. Without a gateway, access to the internet is impossible.
Typical signs of a problem:
- an address like
169.254.x.x— the computer did not get an address from the DHCP server and assigned one to itself. The cause is usually the cable, Wi-Fi, or DHCP on the router; - no
defaultline or no gateway listed — the computer doesn’t know where to send packets outside the local network; - address from a different subnet — for example, the computer is in
192.168.0.0/24while the router is in192.168.1.0/24: there are no neighbors on the network.
Can the computer see the router: ARP
Inside the local network, packets are delivered by MAC addresses. The ARP protocol maps an IP address to a neighbor’s MAC address, and the results are stored in the neighbor table.
Linux:
ip neigh showWindows and macOS:
arp -aExample output on Linux:
192.168.1.1 dev eth0 lladdr 00:1a:2b:3c:4d:5e REACHABLEStates of entries:
- REACHABLE — the neighbor answered recently, connectivity exists;
- STALE — the entry is valid but hasn’t been confirmed for a long time; on the next access the kernel will check it again;
- INCOMPLETE — the address has not yet been resolved;
- FAILED — the neighbor did not respond to requests, there is no link-layer connectivity.
If there is no entry with a MAC address for the gateway or it is in the FAILED state, the problem is below IP: the cable, the switch port, Wi-Fi, or the router itself.
ping: is there connectivity to a host
ping sends ICMP echo requests to a host and shows whether replies arrived and how long they took.
ping -c 4 192.168.1.1 # Linux and macOS: 4 requests
ping 192.168.1.1 # Windows: 4 requests by defaultA useful order of checks:
pingthe gateway (192.168.1.1) — does the connection to the router work.pingan external address (8.8.8.8) — is there internet access. Use the numeric address so DNS does not take part in the check.pinga name (ping -c 4 google.com) — is name resolution working. If8.8.8.8replies but the name does not, the problem is DNS — which is covered in the next part.
In the output pay attention to packet loss and response time (time=… ms). No reply does not always mean the host is unreachable: many servers and firewalls do not respond to ICMP.
traceroute: where the path breaks
traceroute shows the chain of routers to a host and the response time of each of them.
traceroute 8.8.8.8 # Linux (traceroute package) and macOS
tracepath 8.8.8.8 # Linux, does not require root privileges
tracert 8.8.8.8 # WindowsHow to read the result:
- if the path breaks at the first hop — the problem is at the router or at the provider’s ingress;
- asterisks
* * *on an intermediate hop while subsequent hops are normal — usually not a problem: the router simply does not respond to such requests; - a sudden increase in latency at some hop that persists to the end of the route indicates an overloaded segment.
Continuous monitoring of a route with losses on every hop is provided by the mtr utility — it’s discussed in part four.
Summary
Lower-level troubleshooting boils down to three questions:
- Does the computer have the correct address and gateway (
ip -br addr,ip route,ipconfig)? - Can the computer see the router (
ip neigh,arp -a,pingthe gateway)? - Do packets get out to the external network (
ping 8.8.8.8,traceroute)?
If the answer to all three is “yes” but websites still don’t open, the next step is to check DNS.
Resources
// Reviews
Related reviews
Huge thanks to Mikhail for the work — I'm very pleased with the result. Special thanks for his recommendations during setup: from my rather muddled brief (I know little about servers), Mikhail, through clarifying questions and suggestions, formed a clear understanding of what the final build would accomplish and how best to organize everything. I recommend him!
Many thanks to Mikhail for the work, I am very pleased with the result. I especially thank him for the recommendations during the setup process — from my rather muddled brief (and I know little about servers) Mikhail, …
MikroTik hAP router setup. I'll set up a MikroTik Wi‑Fi router for you.
2025-07-21 · ★ 5/5
An excellent specialist, a savvy expert, and a wonderful person. In an hour he fixed what we'd been racking our brains over for days! I'm sure this won't be the last time we rely on his boundless professionalism.
An excellent specialist, a savvy expert, and a wonderful person. In an hour he fixed for us what we had been scratching our heads over for days! I'm sure this won't be the first time we make use of his boundless …
MikroTik hAP router setup. I'll configure a MikroTik Wi-Fi router for you.
2025-05-28 · ★ 5/5
A professional approach to the job!
Professional approach to the job!
MikroTik hAP router setup. I'll set up a MikroTik Wi-Fi router for you.
2025-03-31 · ★ 5/5
Knows their stuff, gets things done. Everything was prompt and to the point; I was satisfied with the collaboration.
Knows, can, does. Everything was prompt and to the point; I was satisfied with the collaboration.
MikroTik hAP router setup. I'll set up a MikroTik Wi‑Fi router for you.
2025-03-14 · ★ 5/5
Thanks! We set up the router according to my technical specification, with a full explanation of what we're doing.
Thank you! The router was configured according to my technical specification, with a full explanation of what we are doing
MikroTik hAP router setup. I'll configure a MikroTik Wi‑Fi router for you.
2025-03-09 · ★ 5/5
Everything's great! Thanks! I recommend it.
Everything's great! Thank you! I recommend it
// Contact
Need help?
Get in touch with me and I'll help solve the problem
I reply within one business day (03:00-13:00 GMT)
Или оставьте заявку здесь:
// Related