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
15% discount on new VPS
Hurry up to order a server in any location
Choose a VPS

Other articles

02.01.2023
20 914
Knowledge base / Instructions - THE.Hosting
Using MTR for Network Diagnostics in Windows
02.01.2023
6 865
Knowledge base / Instructions
How to install Firefox from the official site