ping
and traceroute
to monitor network performance and detect issues like latency or packet loss.
sudo apt install mtr
(Debian/Ubuntu) or sudo yum install mtr
(CentOS).
-r -c <n>
: Generate a report after n
tests (e.g., mtr -r -c 10 example.com
).
-n
: Skip DNS resolution, show IPs only.
--tcp
or -u
: Use TCP/UDP instead of ICMP.
--max-ttl <n>
: Limit hops to n
.