Back to the command reference

traceroute

NetworkFundamentalsReference only

Show the route packets take to a host

Name: traceroute: trace the route

This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.

Description

traceroute shows each router hop between you and a host, with delays, revealing where the network slows or breaks. A * hop just means that router didn't answer, not necessarily a fault.

Syntax

traceroute [OPTION]... HOST

Common options

-nDon't resolve names; faster
-m MAX_TTLMaximum hops
-IUse ICMP (like ping) instead of UDP
-TUse TCP SYN (port 80 by default; gets through more firewalls)
-p PORTThe destination port
-w WAITSeconds to wait at each hop
-q NQUERIESProbes per hop (3 by default)

Examples

  • $ traceroute example.com

    Find where the network slows down

    Explain

Related