NAME
       ping, ping6 - send ICMP ECHO_REQUEST to network hosts

SYNOPSIS
       ping  [ -LRUbdfnqrvVaAB]  [ -c count]  [ -i interval]  [ -l preload]  [ -p pattern]  [ -s packetsize]  [ -t ttl]  [ -w deadline]
       [ -F flowlabel]  [ -I interface]  [ -M hint]  [ -Q tos]  [ -S sndbuf]  [ -T timestamp option]  [ -W timeout]  [ hop ...]  desti-
       nation

DESCRIPTION
       ping  uses  the  ICMP  protocol’s  mandatory  ECHO_REQUEST  datagram  to  elicit  an  ICMP ECHO_RESPONSE from a host or gateway.
       ECHO_REQUEST datagrams (‘‘pings’’) have an IP and ICMP header, followed by a struct timeval and  then  an  arbitrary  number  of
       ‘‘pad’’ bytes used to fill out the packet.

       以上是ping 的man-pages。ping是一个发送icmp协议的echo_request包到网络主机的命令.所以,禁用ping的其中一个方法就可以是在防火墙上禁止icmp的0和8类型的包的通过。 
       
       ping的常用选项。

                 ping -c4 


         -p pattern,可以指定最多16个填充字节到发送的包中。在查找和数据相关的问题时有用。这个,我也没怎么搞懂。


         -F flow label,流标签。在请求包内分配20bit的flow label。仅ping6

         -M hint,标记,提示。我也不会用。
         -Q tos,在icmp包中设定QOS服务质量相关的位。tos可以为十进制或16进制。
         -S sndbuf,设置socket发送缓存。如果不指定,不会缓冲多于一个包的数据
         -T timestampe option,时间戳。