mtr is a network diagnostic tool that can diagnose network problems. It is used to replace the ping and traceroute commands. In terms of performance, the mtr command is faster.
The common options of the mtr command are as follows. Under normal circumstances, no additional options are required, followed by the hostname or IP address directly:
Options
Description
-4
# Use IPv4 only
-6
# Use IPv6 only
-c COUNT
# Number of pings sent
-n
# Do not resolve the hostname
-z
# Display AS number
-b
# Display ip and hostname
-w
# Output a wide range of reports
The information exchanged by the terminal is as follows: