2014-02-24 16:36:37 +00:00
|
|
|
# traceroute
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Print the route packets trace to network host.
|
2021-10-23 19:45:06 +01:00
|
|
|
> More information: <https://manned.org/traceroute>.
|
2014-02-24 16:36:37 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Traceroute to a host:
|
2014-02-24 16:36:37 +00:00
|
|
|
|
2023-07-14 04:39:26 +01:00
|
|
|
`traceroute {{example.com}}`
|
2014-02-24 16:36:37 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Disable IP address and host name mapping:
|
2014-02-24 16:36:37 +00:00
|
|
|
|
2023-07-14 04:39:26 +01:00
|
|
|
`traceroute -n {{example.com}}`
|
2014-02-24 16:36:37 +00:00
|
|
|
|
2023-07-14 04:39:26 +01:00
|
|
|
- Specify wait time in seconds for response:
|
2014-02-24 16:36:37 +00:00
|
|
|
|
2023-07-14 04:39:26 +01:00
|
|
|
`traceroute --wait={{0.5}} {{example.com}}`
|
2014-02-24 16:36:37 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Specify number of queries per hop:
|
2014-02-24 16:36:37 +00:00
|
|
|
|
2023-07-14 04:39:26 +01:00
|
|
|
`traceroute --queries={{5}} {{example.com}}`
|
2016-08-21 20:07:22 +01:00
|
|
|
|
|
|
|
- Specify size in bytes of probing packet:
|
|
|
|
|
2023-07-14 04:39:26 +01:00
|
|
|
`traceroute {{example.com}} {{42}}`
|
|
|
|
|
|
|
|
- Determine the MTU to the destination:
|
|
|
|
|
|
|
|
`traceroute --mtu {{example.com}}`
|
|
|
|
|
|
|
|
- Use ICMP instead of UDP for tracerouting:
|
|
|
|
|
|
|
|
`traceroute --icmp {{example.com}}`
|