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 cyberciti.biz
Output:
1 gateway-29.0.vsnl.net.in (202.54.29.1) 0.706 ms 0.887 ms 5.442 ms 2 203.197.33.200.static.vsnl.net.in (203.197.33.200) 1.123 ms 0.597 ms 0.566 ms 3 202.54.2.162 (202.54.2.162) 0.633 ms 1.109 ms 0.627 ms 4 nny-mum-6th-stm1.Bbone.vsnl.net.in (202.54.2.130) 211.014 ms 217.451 ms 210.244 ms 5 219.64.229.1.mpls-vpn-ny.static.vsnl.net.in (219.64.229.1) 213.922 ms 213.965 ms 213.777 ms 6 ge-0-0-9.p812.pat1.dce.yahoo.com (216.115.98.105) 229.726 ms 220.475 ms 219.694 ms 7 vlan240-msr1.re1.yahoo.com (216.115.96.169) 220.287 ms ge-3-1-0.p440-msr1.re1.yahoo.com (216.115.96.189) 230.317 ms * 9 p5w4.geo.re2.yahoo.com (68.142.234.47) 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:
tracert cyberciti.biz
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):
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Debian / Ubuntu Linux Install tracepath / traceroute6 / tracepath6 commands
- Red Hat Linux Static Routing Configuration
- What is the difference between UNIX and MAC OS X?
- How do I start Oracle service in UNIX?
- Run crontab Every 10 Minutes
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: firewall filters, internet host, ip protocol, isp network, miscreant gateway, mpls vpn, ms 4, ms 5, network admin, network hardware, network host, network path, re2, route one, route packets, security reason, stm1, stupid move, traceroute command




Recent Comments
Yesterday ~ 12 Comments
Yesterday ~ 7 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments
Yesterday ~ 3 Comments