Skip to content
Search Oracle Linux

    Browse this documentation

    The network troubleshooting toolbox: the ip/ss/ping combination (an OL 10.2 case)

    A layered network troubleshooting flow: link → address/route → DNS → service listening. Each layer gives the measured command and what normal output looks like.

    Terminal window
    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.

    Terminal window
    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).

    Terminal window
    ping -c1 -W2 223.5.5.5 # reachable → layers below are fine; the problem is DNS/application
    ping -c1 223.5.5.5 # measured rtt 7ms, 0% loss

    The decision tree: IP unreachable → link/routing; IP reachable, DNS not → resolv.conf / NM dns config; both reachable but the app cannot connect → layer 4.

    Terminal window
    ss -tulpn
    udp 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).

    Terminal window
    firewall-cmd --list-all # check whether services/ports allow the target port

    (firewalld’s detailed usage is on the firewalld page.)

    SymptomFirst commandCommon causes
    The IP vanishedip -br addrDHCP failure / profile not activated
    Cannot ping outip route showmissing default route
    Domain names failcat /etc/resolv.confDNS configured in NM, not this file (it drifts on reboot)
    Port unreachabless -tulpnnot listening / 127.0.0.1 only / firewall
    Intermittently slowip -s link show ens18growing drop/error counters
    • 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.