Quincy Center for Technical Education
Computer Technology Department

Ping

Verifies connections to a remote computer or computers. This command is available only if the TCP/IP protocol has been installed.

ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl] [-v tos] [-r count] [-s count] [[-j computer-list] | [-k computer-list]] [-w timeout] destination-list

Parameters

-t

Pings the specified computer until interrupted.

-a

Resolves addresses to computer names.

-n count

Sends the number of ECHO packets specified by count. The default is 4.

-l length

Sends ECHO packets containing the amount of data specified by length. The default is 32 bytes; the maximum is 65,527.

-f

Sends a Do not Fragment flag in the packet. The packet will not be fragmented by gateways on the route.

-i ttl

Sets the Time To Live field to the value specified by ttl.

-v tos

Sets the Type Of Service field to the value specified by tos.

-r count

Records the route of the outgoing packet and the returning packet in the Record Route field. A minimum of 1 and a maximum of 9 computers can be specified by count.

-s count

Specifies the timestamp for the number of hops specified by count.

-j computer-list

Routes packets by way of the list of computers specified by computer-list. Consecutive computers can be separated by intermediate gateways (loose source routed). The maximum number allowed by IP is 9.

-k computer-list

Routes packets by way of the list of computers specified by computer-list. Consecutive computers cannot be separated by intermediate gateways (strict source routed). The maximum number allowed by IP is 9.

-w timeout

Specifies a time-out interval in milliseconds.

destination-list

Specifies the remote computers to ping.