Pages

The Ping Command


The ping (Packet Internet Groper) is used to send ICMP (Internet Control Message Protocol) packets from one host to another. Ping transmits packets using the ICMP ECHO_REQUEST command and expects an ICMP ECHO_REPLY.



Usage:    ping IP address or Hostname



Switches:    -t             Ping the specifed host until interrupted.

                     -a             Resolve addresses to hostnames.

                     -n count       Number of echo requests to send.

                     -l size        Send buffer size.

                     -f             Set Don't Fragment flag in packet.

                     -i TTL         Time To Live.

                 -v TOS         Type Of Service.

                 -r count       Record route for count hops.

                 -s count       Timestamp for count hops.

                 -j host-list   Loose source route along host-list.

                 -k host-list   Strict source route along host-list.

                 -w timeout     Timeout in milliseconds to wait for each reply.