View Real-time Traceroute Report Using the MTR Command in Linux Mint 20.3 - How to ?

Traceroute is a concept that is used very extensively in networking for knowing the possible paths from a source to a destination. It also helps in calculating the total time required by the data to travel from one end to another over the network. In Linux, the "mtr" also known as the "My Traceroute" command is used for serving this purpose. 

MTR (Matt's traceroute) is a program with a command-line interface that serves for network diagnostic and troubleshooting. 

Here at LinuxAPT, we shall look into the different methods of viewing the real-time traceroute report using the MTR command in Linux Mint 20.3.


Different ways of Viewing the Real-time Traceroute Report using the MTR Command in Linux Mint 20.3

To view the traceroute report in real-time using the MTR command in Linux Mint 20.3, you can choose any of the following three ways.


1. Traceroute Report with Hostnames

Using this method, you can print the hostnames of the hops within your traceroute report. The command to use for example host linuxreels.com is given below:

$ mtr linuxreels.com

Here, you can replace "linuxreels.com" with the name or IP address of any server whose traceroute you want to carry out.

The real-time traceroute report for "Linuxreels" with the hostnames of the hops will be displayed.

You can end this traceroute at any time by pressing the "q" key.


2. Traceroute Report with IP Addresses

With this method, you can print the IP addresses of the hops within your traceroute report. The command to use is given below:

$ mtr –n linuxreels.com

Where you can replace linuxreels.com with the name or IP address of any server whose real-time traceroute report you want to view.

The real-time traceroute report for Linuxreels with the IP addresses of the hops will be displayed in the output. You can end this traceroute at any time by pressing the "q" key.


3. Traceroute Report with both Hostnames and IP Addresses

Using this method, you can print the hostnames as well as the IP addresses of the hops within your traceroute report. 

The command to use is given below:

$ mtr –b linuxreels.com

You can also use the name or IP address of any server other than "linuxreels.com" according to your needs.

The real-time traceroute report for Linuxreels with both the hostnames and IP addresses of the hops will be displayed. You can end this traceroute at any time by pressing the "q" key.


[Need help in fixing Linux Mint issues ? We can help you. ]

This article covers the different ways you can easily perform the traceroute from a particular source to a destination by making use of the MTR command in Linux Mint 20.3. In fact, you want to print the names/ IP address of the hops or both of them within your traceroute report.

Related Posts