Ping tool : How to learn some new stuff

We always can learn some useful new thing in reading manual. This is what I have done and lear an interesting features by means of ping -R.
What we can read in ping(8) on a Linux System :

-R     Record route.  Includes the RECORD_ROUTE option in the ECHO_REQUEST
       packet and displays the  route  buffer  on returned  packets.
       Note  that the IP header is only large enough for nine such routes.
       Many hosts ignore or discard this option.

It can be really useful such as :

plop:~# traceroute -n
traceroute to (, 30 hops max, 40 byte packets
 1  0.628 ms  0.845 ms  1.091 ms
 2  0.419 ms  0.455 ms  0.490 ms
 3  0.802 ms  0.851 ms  0.890 ms
 4  11.720 ms * *
plop:~# ping -n -R
PING ( 56(124) bytes of data.
64 bytes from icmp_seq=1 ttl=252 time=12.3 ms

You can discover by which routers your packet are routed 🙂 In my case, you can see that my packets don’t take the same path.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.