HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

traceroute — Print the route packets trace to network host. See also: `mtr`. More information: <https://manned.or

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thetraceroutecommandroutetracecliprintpackets

Problem

How to use the traceroute command: Print the route packets trace to network host. See also: mtr. More information: <https://manned.org/traceroute>.

Solution

traceroute — Print the route packets trace to network host. See also: mtr. More information: <https://manned.org/traceroute>.

Traceroute to a host:
traceroute {{example.com}}


Disable IP address and host name mapping:
traceroute -n {{example.com}}


Specify wait time in seconds for response:
traceroute {{[-w|--wait]}} {{0.5}} {{example.com}}


Specify number of queries per hop:
traceroute {{[-q|--queries]}} {{5}} {{example.com}}


Specify size in bytes of probing packet:
traceroute {{example.com}} {{42}}


Determine the MTU to the destination:
traceroute --mtu {{example.com}}


Use ICMP instead of UDP for tracerouting:
traceroute {{[-I|--icmp]}} {{example.com}}

Code Snippets

Traceroute to a host

traceroute {{example.com}}

Disable IP address and host name mapping

traceroute -n {{example.com}}

Specify wait time in seconds for response

traceroute {{[-w|--wait]}} {{0.5}} {{example.com}}

Specify number of queries per hop

traceroute {{[-q|--queries]}} {{5}} {{example.com}}

Specify size in bytes of probing packet

traceroute {{example.com}} {{42}}

Context

tldr-pages: common/traceroute

Revisions (0)

No revisions yet.