How to install and use Traceroute on Ubuntu, Debian, AlmaLinux, Rocky Linux & CentOS Cloud Servers

2020-08-26 By Mark 48423 Views linux traceroute networking
12 reviews

Traceroute is a network diagnostic tool that displays the route taken by packets across a network and measures any transit delays. It will show you each hop sequentially, and the total hops required, and then help you determine your connections whether it is good or not. It also shows you how systems are connected to each other, letting you see how your ISP connects to the Internet as well as how the target system is connected.


traceroutediagram


The general format of the traceroute command is as below:

traceroute "domain.com" or "IP address"


The below examples for command test:

traceroute 123.123.123.123
traceroute layerstack.com


By default, the traceroute client is not installed in any Linux distributions. This guide outlines the general steps to install traceroute command in Linux operating system.





AlmaLinux


  1. Execute the below command to install traceroute.

    # dnf install traceroute
    

    almalinuxtracert1

    almalinuxtracert2

  2. Verify that the command is installed successfully.

    almalinuxtracert3





Rocky Linux


  1. Execute the below command to install traceroute.

    # yum install traceroute -y
    

    rockylinuxtracert1

    rockylinuxtracert2

  2. Verify that the command is installed successfully.

    rockylinuxtracert3





Ubuntu & Debian

The traceroute command can be installed both in Ubuntu and Debian systems using the apt-get command.


  1. Execute the below command to install traceroute.

    # sudo apt-get install traceroute
    

    traceroutelinux4

  2. Verify that the command is installed successfully.

    traceroutelinux5





CentOS

Traceroute command can be installed using YUM in all CentOS distributions.


  1. Execute the below command to install traceroute.

    # yum install traceroute -y
    

    traceroutelinux1

    traceroutelinux2

  2. Verify that the command is installed successfully.

    traceroutelinux3


Related Tutorials


Other Information

What do you think about this article?

Rate this article
LayerStack Promotion
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.