Get a VPS server with a 15% discount
Sale ends in
00Days
:
00Hours
:
00Minutes
:
00Seconds

How to Collect a Traceroute?

Traceroute is most often useful when diagnosing various issues related to the operation of a particular network.

Linux [Traceroute]

First, you need to install this utility if it is not yet present on your server:

apt install mtr

 

For CentOS:

yum install mtr

 

Command usage structure:
mtr "arguments" "address"

List of available arguments:

  • -h — display a brief help message.
  • -v — show the utility version.
  • --udp — use UDP packets instead of standard ICMP.
  • --tcp — use TCP packets instead of standard ICMP.
  • -4 — use the IPv4 protocol.
  • -6 — use the IPv6 protocol.
  • -c — number of packets to send.
  • -r — collect traceroute in the background and print a report when it is finished.
  • -w — performs the same function as -r, but in a more detailed format.
  • -s — specify the size of the packets to send.
  • -f — set the initial TTL value.
  • -e — display MPLS data.
  • -n — do not resolve hostnames; show only IP addresses.
  • -o — display only specific data categories.
  • -p — print output in a line-by-line format.
  • -l — print information in an unformatted form.
  • -a — specify the address of the interface from which packets will be sent during the traceroute.

 

Let’s try to collect a traceroute in the standard way:

For example, if you want to send 7 TCP packets during the traceroute to the host wiki.spacecore.pro and get information about the hops in IP address format, you can use the following command:


mtr --tcp -c 7 -n wiki.spacecore.pro

The result will look like this:

 

Windows [WinMTR]

Install the WinMTR utility. It is available at this link. Run the version of the program that matches the architecture of your operating system.

In the Host field, specify the target server for which you want to collect a traceroute, then click the Start button.

 

 

Wait until at least 1000 packets have been sent. This is usually sufficient.

 

 

To export the traceroute result as a text document, use the Export TEXT button and save the file.

 

 

If you collected the traceroute to help diagnose an issue at the request of a technical support specialist in a ticket, please make sure to also attach the address from which the traceroute was performed, in addition to the traceroute itself.