LinuxQuestions.org
Review your favorite Linux distribution.
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 09-19-2008, 03:34 AM   #1
yafrank
LQ Newbie
 
Registered: Nov 2004
Posts: 23

Rep: Reputation: 16
ping with even number ttl always return "Time to live exceeded"


Hi,
I've been plagued with the unstable connection to the server in a private network connected to our router, a H3C Quidway AR28-31, recently. When there is connection, I can ping the remote server 10.16.1.6 but not the gateway. It says "Time to live exceeded"
frank@yad:~$ traceroute -n 10.16.1.6
traceroute to 10.16.1.6 (10.16.1.6), 30 hops max, 40 byte packets
1 168.8.8.1 2.967 ms 2.932 ms 2.929 ms
2 192.168.1.1 2.096 ms 2.187 ms 2.335 ms
3 10.16.109.1 14.621 ms 23.025 ms 28.440 ms
4 10.16.255.29 30.425 ms 36.452 ms 40.361 ms
5 10.16.1.6 46.371 ms 50.395 ms 54.468 ms

frank@yad:~$ ping 10.16.1.6
PING 10.16.1.6 (10.16.1.6) 56(84) bytes of data.
64 bytes from 10.16.1.6: icmp_seq=1 ttl=124 time=14.8 ms
64 bytes from 10.16.1.6: icmp_seq=2 ttl=124 time=12.4 ms

frank@yad:~$ ping 10.16.109.1
PING 10.16.109.1 (10.16.109.1) 56(84) bytes of data.
From 10.16.255.29 icmp_seq=1 Time to live exceeded
From 10.16.255.29 icmp_seq=2 Time to live exceeded

I can't explain why the return package is from the next hop 10.16.255.29, and the ttl exceeded stuff. A little Google search says it might be route loop, but traceroute seems ok. Interestingly, if I set the ping ttl to an odd number above 3, then it works, but any even number will raise the same ttl exceeded response.
frank@yad:~$ ping -t 3 10.16.109.1
PING 10.16.109.1 (10.16.109.1) 56(84) bytes of data.
64 bytes from 10.16.109.1: icmp_seq=1 ttl=253 time=14.4 ms
64 bytes from 10.16.109.1: icmp_seq=2 ttl=253 time=14.1 ms

frank@yad:~$ ping -t 4 10.16.109.1
PING 10.16.109.1 (10.16.109.1) 56(84) bytes of data.
From 10.16.255.29 icmp_seq=1 Time to live exceeded
From 10.16.255.29 icmp_seq=2 Time to live exceeded

frank@yad:~$ ping -t 5 10.16.109.1
PING 10.16.109.1 (10.16.109.1) 56(84) bytes of data.
64 bytes from 10.16.109.1: icmp_seq=1 ttl=253 time=15.5 ms
64 bytes from 10.16.109.1: icmp_seq=2 ttl=253 time=14.9 ms

The router maker ask us to connect only a PC to the interface, and overnight ping to the PC works flawlessly without a single lost. The private network technician ask us to connect only a PC too to access their network and the ping to the server 10.16.1.6 works most of the time with only a few lost, which considered normal. If we put them together, the unstable problem repeats. We are stuck in the middle.
Another clue is that if the network drops, a traceroute to the server can always make the connection come back.
Can someone shed a light on this?
Thanks in advance.

Regards,
Frank Wang

Last edited by yafrank; 09-19-2008 at 03:43 AM.
 
Old 09-20-2008, 12:58 PM   #2
yafrank
LQ Newbie
 
Registered: Nov 2004
Posts: 23

Original Poster
Rep: Reputation: 16
undo the static arp bind of the remote gateway seems working so far

I happen to find if the static arp bind of the remote gateway 10.16.109.1 is deleted from the router, the network seems normal again, at least for the past eight hours. I set the bind last year during several arp virus attacks to our network. It had worked fine until this problem emerged. I don't understand why the dynamic arp works, because the learned MAC of the remote gateway is still the same as the static one. Any way, I still need more time to see if it's the real cure.
 
Old 01-26-2010, 08:24 AM   #3
yafrank
LQ Newbie
 
Registered: Nov 2004
Posts: 23

Original Poster
Rep: Reputation: 16
It happened again tonight with/out the static bind. I just don't get it.
 
Old 02-10-2012, 10:02 AM   #4
linuxmen
Member
 
Registered: Aug 2011
Distribution: fedora14,11, RHEL5, CentOS6, win2008R2, Win7
Posts: 45

Rep: Reputation: 4
Lightbulb Solution

This is due to time to live (TTL) is reaches a zero value from any of the gateways to the destination, try to ping to destination with custom TTL value (higher than default)
Refer this url for fixing
http://servercomputing.blogspot.com/...eded-ping.html
 
Old 02-12-2012, 02:30 AM   #5
amilo
Member
 
Registered: Oct 2011
Location: Nederland
Distribution: Debian, Centos, Ubuntu
Posts: 81

Rep: Reputation: Disabled
Quote:
1 168.8.8.1 2.967 ms 2.932 ms 2.929 ms
2 192.168.1.1 2.096 ms 2.187 ms 2.335 ms
3 10.16.109.1 14.621 ms 23.025 ms 28.440 ms
4 10.16.255.29 30.425 ms 36.452 ms 40.361 ms
5 10.16.1.6 46.371 ms 50.395 ms 54.468 ms
What me wonders in this output is the increase of time from hop 2 to hop 3. Or the hop is so damm buysy, or the link is bad eg speed , half/full duplex , or its makes a detour ,not likely
 
  


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
Tar or Samba issue, "File size limit exceeded" gimpy530 Ubuntu 3 03-29-2008 04:56 PM
NFS issues: "File size limit exceeded" edenCC Linux - Server 3 03-04-2008 04:11 AM
"dig mx" and "ping google" do not work when bind9 runs.. why? alexxxis Linux - Software 4 01-07-2007 03:16 AM
ttl number in ping result. bruse Linux - Networking 2 11-17-2005 07:34 AM
Kernel Error " kern.maxpipekva exceeded, please see tuning(7)." nazzymac *BSD 3 11-17-2004 05:29 PM

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

All times are GMT -5. The time now is 01:15 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