Usage of MTR
The mtr command is easy to use. There are many options for using mtr, but these are the most useful for my environment. Feel free to explore all of mtr’s options. You cannot damage your system or anyone else’s system with this command. The mtr command does not create security problems for you, so use it freely.
1. IPv4
My favorite way to use mtr is with the ‘IPv4 only’ option (-4). The output will only show IPv4 addresses. This option does not stop DNS lookups. In other words, if the host has a name, you will probably see the DNS name rather than just the IPv4 address. Since mtr updates in real-time, the following video shows better how it works.
Command :
mtr -4 w3wiki.org
Output :
2. IPv6
On my system it looks like the IPv6 is the normal option which I do not want. So I always choose the IPv4 instead of IPv6.
Command :
mtr w3wiki.org
Output :
MTR Command in Linux
As someone who manages Linux systems, you know that the common belief is to blame all problems on the infrastructure, which is your area of responsibility. Network engineers, who you playfully call your “enemies”, often tell you, “It’s not a network problem.” Hearing those words can be frustrating because it means the focus shifts to you, your operating systems, and your hardware. Instead of relying on the word of the network engineers, you can proactively check the network yourself.
The mtr tool allows you to do this without bothering anyone else or getting involved in a troubleshooting meeting. The mtr command is a simple but useful tool for analyzing and troubleshooting networks. This brief explanation will help you get started.
MTR Command in Linux
- Why MTR command?
- Benefits of MTR
- Installation of MTR
- Usage of MTR
- 1. IPv4
- 2. IPv6
Contact Us