Ping and Traceroute with single command – mtr

In general we do use traceroute to print the route packets take to network host, and ping to send ICMP ECHO_REQUEST to network hosts as independent command.

There is a command called mtr (Matt’s Traceoute) which is combination of ping and tracerout commands.

Functionally mtr command works as both functionalities ping and tracerout.

mtr is an application you can use to do a repeated traceroute in real time; it dynamically shows the round-trip time to reach each hop along the traceroute path.

Example:

To view repeated traceroute:

$ mtr www.example.com

To get report  the route and connection quality of traffic to the destination host example.com use following command:

$ mtr --report www.example.com

We can also use ip address to get report:

$ mtr --report 192.168.1.100 

Use your ip address instead of 192.168.2.100 to get report.

-Sany

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s