The network troubleshooting toolbox: the ip/ss/ping combination (an OL 10.2 case)
What you will learn
Section titled “What you will learn”A layered network troubleshooting flow: link → address/route → DNS → service listening. Each layer gives the measured command and what normal output looks like.
The layered flow
Section titled “The layered flow”Layer 1: link and address (ip -br)
Section titled “Layer 1: link and address (ip -br)”ip -br addr# lo UNKNOWN 127.0.0.1/8 ::1/128# ens18 UP 192.168.50.187/24 fe80::.../64-br (brief) shows the global picture at a glance: UP with no address = a DHCP problem; DOWN = a link/driver problem. For the MAC layer, check ip -br link.
Layer 2: routes
Section titled “Layer 2: routes”ip route show# default via 192.168.50.1 dev ens18 proto dhcp src 192.168.50.187 metric 100# 192.168.50.0/24 dev ens18 proto kernel scope link src ...No default entry = the gateway was never acquired (DHCP half-dead / static config missing the gateway).
Layer 3: DNS and layered pings
Section titled “Layer 3: DNS and layered pings”ping -c1 -W2 223.5.5.5 # reachable → layers below are fine; the problem is DNS/applicationping -c1 223.5.5.5 # measured rtt 7ms, 0% lossThe decision tree: IP unreachable → link/routing; IP reachable, DNS not → resolv.conf / NM dns config; both reachable but the app cannot connect → layer 4.
Layer 4: service listening (ss)
Section titled “Layer 4: service listening (ss)”ss -tulpnudp UNCONN 127.0.0.1:323 users:(("chronyd",pid=975,fd=4))tcp LISTEN 0.0.0.0:22 users:(("sshd",pid=919,fd=7))Measured: a minimal install has exactly these two listeners. The three high-frequency causes of “the service is up but unreachable” all reveal themselves here: not listening (service not started/crashed), listening on 127.0.0.1 (local only, external connections refused), listening but blocked by the firewall (check firewalld next).
Naming firewalld as the suspect
Section titled “Naming firewalld as the suspect”firewall-cmd --list-all # check whether services/ports allow the target port(firewalld’s detailed usage is on the firewalld page.)
Quick reference
Section titled “Quick reference”| Symptom | First command | Common causes |
|---|---|---|
| The IP vanished | ip -br addr | DHCP failure / profile not activated |
| Cannot ping out | ip route show | missing default route |
| Domain names fail | cat /etc/resolv.conf | DNS configured in NM, not this file (it drifts on reboot) |
| Port unreachable | ss -tulpn | not listening / 127.0.0.1 only / firewall |
| Intermittently slow | ip -s link show ens18 | growing drop/error counters |
Evidence and limits on this page
Section titled “Evidence and limits on this page”- Measured: the full four-layer toolchain executed on a minimal install and archived (E3);
- Not measured: tcpdump capture (needs a package install; see later extensions) and bond-scenario troubleshooting;
- Sources:
ip(8),ss(8), OL10 networking documentation.