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

2020-08-26 By Mark 601 Views linux traceroute networking
0 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 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.


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, traceroute client is not installed in any Linux distributions. This guide outlines the general steps to install traceroute command in Linux operating system.


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


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


Related Tutorials

What do you think about this article?

Rate this article