traceroute
Linux · Network · reference only
What it does
Shows the path of hops (routers) that packets follow to a destination, with each one's response time.
Syntax
traceroute [opciones] destino
Options and parameters
-nDoes not resolve names: shows only IP addresses, faster.
-m saltosMaximum number of hops; 30 by default.
-q NNumber of probes per hop; 3 by default.
-w segundosWait time for each response.
-IUses ICMP packets instead of UDP (usually requires root).
-TUses TCP SYN packets, useful if a firewall blocks UDP and ICMP.
-p puertoDestination port of the probes.
Usage examples
traceroute example.comShows the hops to example.com.
traceroute -n 8.8.8.8Traces the route without resolving names.
traceroute -m 15 example.comLimits the trace to 15 hops.
sudo traceroute -T -p 443 example.comTraces the route using TCP to port 443.
Notes and common mistakes
- An asterisk (*) on a hop means that router did not answer, which is common and not always a fault.
- On Debian you must install it: sudo apt install traceroute. tracepath is an alternative.