If you did not know this tool, today we will talk about MTR (Matt's TraceRoute). It is a multiplatform command line tool (available for Linux), written in C, free, and with which you can monitor certain aspects of your network and also diagnose connection problems. It combines the functions of two other well-known network tools, such as traceroute and ping.
That is, as if you had those two tools in one, only with MTR you will still see more information than with traceroute. In fact, you will be able to see the path to a remote machine, but also the response percentages (ping), and times in each of the network lakes in the route drawn between the remote system and the local one.
When MTR is run, will test the network connection from local to the remote host you specified. It will first set the address of each network hop (bridges, routers, gateways, etc.), and then ping, that is, send a sequence of ICMP ECHO requests to each of those hops to determine the response time . While this is happening, it will generate useful statistics about each machine and they will be updated in real time, showing interesting information on the screen.
MTR is in the repos of the most popular distros, therefore, you can use the mtr name of the package with your favorite package manager to install it. Once you have it installed, its execution is simple. You can use it with machine domain names (google.es, linuxadictos.com, ...) or with IPs. In addition, it has many options to modify its output and get just what you are looking for.
By example, here are some sample commands so you can see how easy it is to use:
mtr google.es mtr -n linuxadictos.com mtr -m 35 184.108.40.206 mtr -r -c 5 test.com > informe.txt Recuerda que<strong> para salir del modo interactivo</strong> puedes pulsar la tecla Q o Ctrl+C. Y para <strong>más información</strong> sobre opciones: man mtr
More information - MTR