Ping


Ping/ping6 – to check connectivity to ipv4/ipv6 host.

Available options:

  • -b : to ping broadcast IP
  • -c <count>
  • -i <sec> : Interval between each ICMP echo packets
  • -q : Quiet output
  • -t <ttl number>
  • -f : enabling ping flood option. Max: 100 packets/sec
  • -p <0xff> : to set data pattern to ff
  • -T/-M : timestamp or path MTU discovery options. Not all device can support.
[root@server2 ~]# ping  10.11.131.3 -c 2 -T tsandaddr -p 00
PATTERN: 0x00
PING 10.11.131.3 (10.11.131.3) 56(124) bytes of data.
64 bytes from 10.11.131.3: icmp_seq=0 ttl=64 time=0.106 ms
TS:     10.11.131.220   3433637 absolute
        10.11.131.3     5805553
        10.11.131.3     0
        10.11.131.220   -5805553
64 bytes from 10.11.131.3: icmp_seq=1 ttl=64 time=0.103 ms
TS:     10.11.131.220   3434639 absolute
        10.11.131.3     5805552
        10.11.131.3     0
        10.11.131.220   -5805552
--- 10.11.131.3 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.103/0.104/0.106/0.010 ms, pipe 2
[root@server2 ~]#

 

Advertisements
This entry was posted in Linux and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s