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

mtr — Matt's Traceroute: combined traceroute and ping tool. More information: <https://manned.org/mtr>.

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

Problem

How to use the mtr command: Matt's Traceroute: combined traceroute and ping tool. More information: <https://manned.org/mtr>.

Solution

mtr — Matt's Traceroute: combined traceroute and ping tool. More information: <https://manned.org/mtr>.

Traceroute to a host and continuously ping all intermediary hops:
mtr {{example.com}}


Disable IP address and host name mapping:
mtr {{[-n|--no-dns]}} {{example.com}}


Generate output after pinging each hop 10 times:
mtr {{[-w|--report-wide]}} {{example.com}}


Force IPv4 or IPv6:
mtr -4 {{example.com}}


Wait for a given time (in seconds) before sending another packet to the same hop:
mtr {{[-i|--interval]}} {{10}} {{example.com}}


Display the Autonomous System Number (ASN) for each hop:
mtr {{[-z|--aslookup]}} {{example.com}}


Display both IP address and reverse DNS name:
mtr {{[-b|--show-ips]}} {{example.com}}

Code Snippets

Traceroute to a host and continuously ping all intermediary hops

mtr {{example.com}}

Disable IP address and host name mapping

mtr {{[-n|--no-dns]}} {{example.com}}

Generate output after pinging each hop 10 times

mtr {{[-w|--report-wide]}} {{example.com}}

Force IPv4 or IPv6

mtr -4 {{example.com}}

Wait for a given time (in seconds) before sending another packet to the same hop

mtr {{[-i|--interval]}} {{10}} {{example.com}}

Context

tldr-pages: common/mtr

Revisions (0)

No revisions yet.