Methods of payment Abuse

Using MTR for Linux network troubleshooting

02.01.2023, 21:31

Diagnosing the network in Linux

In case mtr is not installed, install it in Linux. You can use your own default package manager to do this:

#Debian/Ubuntu
apt-get install mtr
#CentOS
yum install mtr

Once the utility is installed, it is invoked with the command mtr: you need to specify the domain of the site or the IP of the server where you want to test access.

For example:

mtr google.com

To display true IP addresses instead of hostnames adjacency -n:

mtr -n google.com

Alternatively, use TCP SYN packets or UDP datagrams instead of standard ICMP requests:

mtr --tcp google.com mtr --udp google.com

If the -r and -c 100 keys are used, you can output the final result in a convenient form with the specified number of packets using the following command:

mtr -rn -c 100 google.com