LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2015, 06:43 AM   #1
Rudifn2007
LQ Newbie
 
Registered: Nov 2015
Posts: 6

Rep: Reputation: Disabled
Question Traceroute Hop Count?


I'm a bit confused about how many hops this shows ...

[root@host-2-129 ~]# traceroute -I 10.200.0.1

traceroute to 10.200.0.1 (10.200.0.1), 30 hops max, 60 byte packets
1 host-2-134.linuxzoo.net (10.0.2.134) 0.218 ms 0.195 ms 0.151 ms
2 hub1-gw.linuxzoo.net (10.200.0.1) 0.562 ms 0.418 ms 0.479 ms
[root@host-2-129 ~]#


I thought it was 2?

I am doing a tutorial on Linuxzoo, asking how many hops does it take to get to the last network node which is 10.200.0.1.
 
Old 12-05-2015, 07:40 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Looks like two for that particular path. host-2-134 is connected to both systems (host-2-129, and hub1-gw).

It depends on your network - your network mask is not the default for the 10. net (which would be 255.0.0.0), which would eliminate the hop. But that depends on your networks physical topology. Physical (or logical) partitioning of the net would add hops.
 
Old 12-07-2015, 06:21 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,300

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
The msg '30 hops max' means it will only send up to 30 hops away ie any system further away will be deemed 'unreachable'.
This num is configurable - see the man page and https://en.wikipedia.org/wiki/Traceroute
 
Old 12-08-2015, 03:12 AM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,152

Rep: Reputation: 192Reputation: 192
I think its 2 hops, but it would be better to do a traceroute like 8.8.8.8

traceroute -I 8.8.8.8 you will be able to see quite a few hops.

check out link below it might help:
http://kb.netgear.com/app/answers/de...ere-are-to-the
 
Old 12-08-2015, 03:25 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Quote:
Originally Posted by JJJCR View Post
I think its 2 hops, but it would be better to do a traceroute like 8.8.8.8

traceroute -I 8.8.8.8 you will be able to see quite a few hops.

check out link below it might help:
http://kb.netgear.com/app/answers/de...ere-are-to-the
That depends on the ISP. A number of them are no longer passing ICMP - used by default to count hops. These show up as "* * *" entries.

Last edited by jpollard; 12-08-2015 at 03:26 AM.
 
Old 12-08-2015, 07:05 PM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,152

Rep: Reputation: 192Reputation: 192
Cool

Quote:
Originally Posted by jpollard View Post
That depends on the ISP. A number of them are no longer passing ICMP - used by default to count hops. These show up as "* * *" entries.
yup, I understand some routers may not respond to ICMP due to security issues. Thanks for the heads up.
 
Old 12-08-2015, 08:26 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,300

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
In those cases, try http://linux.die.net/man/1/tcptraceroute
 
  


Reply

Tags
linux, traceroute


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
traceroute for directly connected node (next hop itself is destination) madhavb Linux - Networking 1 03-20-2013 12:15 PM
Interpreting Zenmap results: Network distance and Traceroute hop values gigachan Linux - Security 5 04-20-2011 12:34 AM
Is there a Layer 2 analog implementation of "hop count"?? jjinno Linux - Networking 1 12-14-2009 12:01 PM
Hop on traceroute lo-kəy Linux - Networking 1 11-11-2008 04:13 AM
Traceroute command not showing hostnames for each hop, only * * * jon_k Linux - Software 3 06-17-2005 10:33 PM


All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration