LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2018, 01:10 AM   #1
Xpicolo
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Rep: Reputation: Disabled
traceroute showing only 2 hops


Hi,

traceroute or mtr showing only my router and final destination.
No other hops.
Why?

traceroute to yahoo.com (98.137.246.7), 30 hops max, 60 byte packets
1 192.168.0.1 (192.168.0.1) 1.005 ms 1.329 ms 1.620 ms
2 media-router-fp1.prod1.media.vip.gq1.yahoo.com (98.137.246.7) 180.807 ms 190.120 ms 190.305 ms

or:

traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 192.168.0.1 (192.168.0.1) 1.155 ms 1.491 ms 1.786 ms
2 google-public-dns-a.google.com (8.8.8.8) 19.509 ms 19.702 ms 20.754 ms

or any other destination IP that answer to traceroute.
Only 2 hops.

the network working ok.

thanks.
 
Old 11-15-2018, 09:09 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The next router upstream has for some reason been configured to override the TTL (Time To Live) in the packet and substitute some new, default number. traceroute operates by setting a low TTL value (starting with 1) and successively incrementing that, thus causing each intermediate router to return a "TTL equals 0" ICMP response. That can't work if some router along the chain overrides that TTL.

If that next router is not under your control, there is nothing you can do.
 
Old 11-16-2018, 12:19 AM   #3
Xpicolo
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks rknichols.

But, which is the reason for such action (TTL modification) ?
 
Old 11-16-2018, 04:11 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I've read of it being implemented so that a router isn't explicitly identified eg avoiding ddos attacks.
 
Old 11-16-2018, 09:00 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by Xpicolo View Post
Thanks rknichols.

But, which is the reason for such action (TTL modification) ?
Quote:
Originally Posted by ferrari View Post
I've read of it being implemented so that a router isn't explicitly identified eg avoiding ddos attacks.
Indeed. I have one router that I wish to have invisible in my own network, but I do that by having it increment TTL by 1. That prevents that router from ever seeing TTL==0, but allows traceroute to see the rest of the hops. You are apparently behind an internal network that someone wants to keep entirely hidden.
 
1 members found this post helpful.
  


Reply



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 command showing only 2 hops on Ubuntu 16.04 (VirtualBox); tracert works on host OS (Win10) ¯\_(ツ)_/¯ Linux - Networking 9 05-30-2017 06:36 PM
traceroute doesn't find all hops - tracert does hua Linux - Networking 10 01-15-2015 06:10 AM
split routing - traceroute not displaying unrouted hops fragtion Linux - Networking 8 01-21-2011 12:37 AM
Traceroute command not showing hostnames for each hop, only * * * jon_k Linux - Software 3 06-17-2005 10:33 PM
Hops counter in JAVA(urgent) nedian123 Programming 1 08-01-2004 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:02 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
Open Source Consulting | Domain Registration