ping [-Rdfnqrv] [-c count] [-i wait] [-l preload] [-p pattern] [-s packetsize] host
|
-c count
Stop after sending (and receiving) count ECHO_RESPONSE packets.
|
-d Set the SO_DEBUG option on the socket being used.
|
-f Flood ping. Outputs packets as fast as they come back or one hundred times per second, whichever
is more. For every ECHO_REQUEST sent a period ``.'' is printed, while for every ECHO_REPLY
received a backspace is printed. This provides a rapid display of how many packets are being
dropped. Only the super-user may use this option. This can be very hard on a network and should
be used with caution.
|
-i wait
Wait wait seconds between sending each packet. The default is to wait for one second between each
packet. This option is incompatible with the -f option.
|
-l preload
If preload is specified, ping sends that many packets as fast as possible before falling into its
normal mode of behavior.
|
-n Numeric output only. No attempt will be made to lookup symbolic names for host addresses.
|
-p pattern
You may specify up to 16 ``pad'' bytes to fill out the packet you send. This is useful for
diagnosing data-dependent problems in a network. For example, “-p ff” will cause the sent packet
to be filled with all ones.
|
-q Quiet output. Nothing is displayed except the summary lines at startup time and when finished.
|
-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.
|
-r Bypass the normal routing tables and send directly to a host on an attached network. If the host
is not on a directly-attached network, an error is returned. This option can be used to ping a
local host through an interface that has no route through it (e.g., after the interface was dropped
by routed(8)).
|
-s packetsize
Specifies the number of data bytes to be sent. The default is 56, which translates into 64 ICMP
data bytes when combined with the 8 bytes of ICMP header data.
|
-v Verbose output. ICMP packets other than ECHO_RESPONSE that are received are listed.
|