Diagnose network path and packet loss with `mtr`

When a connection is slow or flaky, traceroute only shows a snapshot. mtr keeps pinging every hop and shows live loss and latency statistics per router along the path.

LinuxpingtraceroutemtrDiagnosticsLow risk
Run `mtr -rw example.com` to produce a full-report table of every hop with packet-loss and average latency, or plain `mtr example.com` for the interactive live view.

01Command

Command
$ mtr -rw example.com

02What it does

mtr sends packets to each hop between you and the destination continuously, so a router that drops packets shows a Loss% column right away — something a single `traceroute` run can easily miss. `-r` switches to report mode and `-w` to wide output, which is ideal for pasting into a bug report. Loss at intermediate hops can be normal (routers deprioritize ICMP), so trust the loss at the destination line most.

03Risk

RiskLow risk
RequirementsRequires mtr (apt install mtr / dnf install mtr)
!Warning: Requires root privileges to use raw sockets in some modes; run with sudo if you get 'failure to open sockets'.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-17 · Category: Network

06Related solutions