Find the network path / route that is being used to reach a particular host on internet

Q. How do I find out the network path and/or router that is being used to reach a particular host on the internet?

A. You need to use traceroute command, which display the route packets take to network host on the Internet. It traces a packet from your computer to an Internet host, showing how many hops the packet requires to reach the host and how long each hop takes. Very useful to troubleshot network problem.

As you may be aware that the Internet is a large and complex aggregation of network hardware, connected together by gateways. Tracking the route one’s packets follow (or finding the miscreant gateway that’s discarding your packets) can be difficult.

Tracing routes under Linux/UNIX

Use traceroute command as follows:
$ traceroute

1 (  0.706 ms  0.887 ms  5.442 ms
2 (  1.123 ms  0.597 ms  0.566 ms
3 (  0.633 ms  1.109 ms  0.627 ms
4 (  211.014 ms  217.451 ms  210.244 ms
5 (  213.922 ms  213.965 ms  213.777 ms
6 (  229.726 ms  220.475 ms  219.694 ms
7 (  220.287 ms (  230.317 ms *
9 (  346.741 ms  346.824 ms  346.111 ms

Tracing routes under MS-Windows NT/XP/2000/2003/Vista

Use tracert command. Click on Start > Run and type following command:
Please note that traceroute utilizes the IP protocol time to live field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to some host. For security reason some ISP / network admin (stupid move IMPO) may block access to traceroute. You can bypass this restriction with tcptraceroute command for most common firewall filters.

You can also try out online traceroute from leading Indian ISP (Internet/broadband service provider’s web site):

  1. Net4India Ltd, Delhi
  2. Software Technology Parks of India, Lucknow

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts