2014-05-30 19:27:55 +01:00
|
|
|
# mtr
|
|
|
|
|
2016-09-29 12:30:52 +01:00
|
|
|
> Matt's Traceroute: combined traceroute and ping tool.
|
2023-07-14 05:08:35 +01:00
|
|
|
> More information: <https://www.bitwizard.nl/mtr/>.
|
2014-05-30 19:27:55 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Traceroute to a host and continuously ping all intermediary hops:
|
2014-05-30 19:27:55 +01:00
|
|
|
|
2023-07-14 05:08:35 +01:00
|
|
|
`mtr {{example.com}}`
|
2014-05-30 19:27:55 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Disable IP address and host name mapping:
|
2014-05-30 19:27:55 +01:00
|
|
|
|
2023-07-14 05:08:35 +01:00
|
|
|
`mtr --no-dns {{example.com}}`
|
2014-05-30 19:27:55 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Generate output after pinging each hop 10 times:
|
2014-05-30 19:27:55 +01:00
|
|
|
|
2023-07-14 05:08:35 +01:00
|
|
|
`mtr --report-wide {{example.com}}`
|
2014-05-30 19:27:55 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Force IP IPv4 or IPV6:
|
2014-05-30 19:27:55 +01:00
|
|
|
|
2023-07-14 05:08:35 +01:00
|
|
|
`mtr -4 {{example.com}}`
|
2018-02-04 17:57:11 +00:00
|
|
|
|
2018-02-06 12:41:44 +00:00
|
|
|
- Wait for a given time (in seconds) before sending another packet to the same hop:
|
2018-02-04 17:57:11 +00:00
|
|
|
|
2023-07-14 05:08:35 +01:00
|
|
|
`mtr --interval {{10}} {{example.com}}`
|
2022-04-16 03:35:32 +01:00
|
|
|
|
|
|
|
- Display the Autonomous System Number (ASN) for each hop:
|
|
|
|
|
2023-07-14 05:08:35 +01:00
|
|
|
`mtr --aslookup {{example.com}}`
|
|
|
|
|
|
|
|
- Display both IP address and reverse DNS name:
|
|
|
|
|
|
|
|
`mtr --show-ips {{example.com}}`
|