[Nottingham] Solaris 9 Ping Question

Moses O'Hara cczmoses at unix.ccc.nottingham.ac.uk
Wed May 4 08:26:29 BST 2005


Hi Graeme, 

####I'm pritty sure it's the TTL, eberything reports it as the TTL value as in

Pinging xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] with 32 bytes of data:

Reply from xxx.xxx.xxx.xxx: bytes=32 time<1ms TTL=253 <---This bit

Ping statistics for xxx.xxx.xxx.xxx:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

#### or

PING xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) 56(84) bytes of data.
64 bytes from xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx): icmp_seq=0 ttl=253 time=3.90 ms     <--- (TTL Value here).
64 bytes from xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx): icmp_seq=1 ttl=253 time=0.375 ms

--- xxx.xxx.xxx.xxx ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.375/2.138/3.902/1.764 ms, pipe 2


#### If I use the -s option I get the following 

PING xxx.xxx.xxx.xxx: 56 data bytes
64 bytes from xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx): icmp_seq=0. time=0. ms
64 bytes from xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx): icmp_seq=1. time=0. ms
64 bytes from xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx): icmp_seq=2. time=0. ms
64 bytes from xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx): icmp_seq=3. time=0. ms

----xxx.xxx.xxx.xxx PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms)  min/avg/max = 0/0/0

#### and no TTL value. 

 My thinking behind it works on the principle that Windows 98/ Win NT and Linux all set the TTL values on the Echo's to diffrent values. The routes are static so I  can account for any decrements made my switching equipment to the TTL. There's currently an ICMP blocking policy in force in the switch ACL's with the exception of this one Solaris box which can send and recived ICMP packets across all subnets. 

Any other thoughts ?



>>> Graeme Fowler<graeme at graemef.net> 03/05/2005 16:04:28 >>>
On Tue 03 May 2005 15:28:38 BST , Moses O'Hara 
<Moses.O'hara at nottingham.ac.uk> wrote:
> We've got a Solaris box running Solaris 9 (kde control center reports 
> sunos 5.9 if this is important). I'm wanna use the TTL from ICMP_ECHO 
> requests but ping on the box dosn't seem to report a TTL. I've 
> rummaged through man pages , google etc..,. but no joy.

You're sure you mean TTL? Or do you mean RTT, as in "round trip time"?

http://bama.ua.edu/cgi-bin/man-cgi?ping+1M 

Looks like you either need the "-t" ttl option, or the "-s" (one packet 
per second, collect stats) option.

G


_______________________________________________
Nottingham mailing list
Nottingham at mailman.lug.org.uk 
http://mailman.lug.org.uk/mailman/listinfo/nottingham

This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.




More information about the Nottingham mailing list