Name

ping

Synopsis

Tests TCP/IP connectivity with a remote host.

Syntax

ping [-t] [-a] [-n number] [-l bytes] [-f] [-i TTL] [-v TOS] [-r number] 
[-s hops] [ [-j hostlist] | [-k hostlist] ] [-w msec] host [...]

Options

-a

Resolves IP addresses to hostnames.

-f

Sets the Do Not Fragment flag in the packets to prevent them from being fragmented by routers along the route.

-i TTL

Sets the time-to-live field in the packets.

-j hostlist

Routes packets using the specified list of remote hosts (up to 9). Consecutive hosts can be separated by intermediate gateways (loose source routing).

-k hostlist

Routes packets using the specified list of remote hosts (up to 9). Consecutive hosts cannot be separated by intermediate gateways (loose source routing).

-l bytes

Indicates number of bytes in each ECHO packet. (The default is 32 bytes, and the maximum is 65,527 bytes.)

-n number

Specifies the number of ICMP ECHO packets to send. (The default is 4 packets.)

-r number

Records the route of the outgoing packet and the returning packet in the Record Route field. (The minimum number of hosts you can specify is 1, and the maximum is 9.)

-s hops

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

-t

Continues pinging the host until interrupted using Ctrl-C.

-v TOS

Sets the Type of Service field in the packets.

-w msec

Specifies time-out interval in milliseconds.

host

Indicates IP address or hostname of remote host(s) being pinged.

Examples

ping a remote host:

                     ping www.gov.mb.ca Pinging www.gov.mb.ca ...

Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.