LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-02-2009, 02:50 AM   #1
imprise
LQ Newbie
 
Registered: May 2009
Distribution: SUSE
Posts: 20

Rep: Reputation: 0
ping -t


Hi all;

I am using SUSE Linux Enterprise Server 10 with SP2.

My problem is that the -t option if the ping command does not work. Please look at the following:

Before using the "-t" option:

Code:
linux-bhpq:~ # ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=64 time=0.174 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=64 time=0.090 ms

--- 192.168.1.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.090/0.132/0.174/0.042 ms
linux-bhpq:~ #
After using the "-t" option:

Code:
linux-bhpq:~ # ping -t 100 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=64 time=3.69 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=64 time=0.112 ms

--- 192.168.1.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.112/1.902/3.693/1.791 ms
linux-bhpq:~ #
Can anyone help me?

Thanks
 
Old 06-02-2009, 02:56 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What do you expect it to do?

man ping
/TTL


The value you see is the ttl returned from the host you
pinged, not your own.



Cheers,
Tink
 
Old 06-02-2009, 04:36 AM   #3
cgtueno
Member
 
Registered: Jul 2003
Posts: 363

Rep: Reputation: 50
Hi

May I refer you to:
http://fgouget.free.fr/bing/ping_src-man.shtml
and the TCP/IP specification documentation;
or alternatively refer to the copy of man supplied with your distribution. ("man ping" and look at /TTL section)

In general:

* TTL field value in an IP packet represents the maximum number of IP routers that the packet may pass through before the packet is discarded. (Packets are discarded when the count reaches 0)
* Each router through which the packet passes decrements the TTL field value by one.
* Normally ping prints the TTL field value contained in the packet it receives from the system being ping'ed.
* On receiving a ping packet a remote system can alter the TTL field in its response:

The system (being pinged) receiving the packet may:
(1) leave the value unaltered:
Final value received by sending system
= base value
- (IP routers in outbound leg)
- (IP routers in the return leg)
(2) set the value to a base value (eg. 255*)
Final value received by sending system
= base value
- (IP routers in the return leg)
(3) set the value to some other value
(of meaning to the remote system)

Note: *Typically Unix and Unix like systems set the TTL field of ICMP ECHO_REQUEST (ping) packets to a value of 255.

In the example you specify the TTL field value in the packet received by the sending (ping'ing) system from the receiving (ping'ed) system is a count of 64.

The meaning of the value depends on how the receiving system is configured to handle the incoming ping packets.

Hope that helps

Chris
 
  


Reply


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 03:39 PM
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 05:46 AM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 08:44 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 10:10 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 05:57 AM


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