Ping — windowssystem32ping.exe
The primary function of Ping is to see if another computer is
"alive" and reachable. Ping works
on local networks and across Internet connections. For example, if
you type ping oreilly.com
at a command prompt and
get at least one response like this:
Reply from 209.204.146.22: bytes=32 time=78ms TTL=238
it means that a successful connection was established and the remote
system responded to the ping. Otherwise, you'll see
Request timed out
, meaning that it is down or the
connection has been severed. The syntax of Ping is as follows:
ping target [-t] [-a] [-ittl
] [-ncount
] [-lsize
] [-f] [-wtimeout
] [-rcount
] [-scount
] [-jhost_list
| -khost_list
] [-vtos
]
Option |
Description |
---|---|
|
The name or IP address of the remote machine. |
|
Resolve IP addresses to hostnames. |
|
Number of pings; default is 4. Has no meaning with
|
|
The size of the packets to send, in bytes; default is 32 bytes. |
|
Turn on the "Don't Fragment" flag in packet. |
|
The amount of time, in milliseconds, before Ping gives up and displays Request timed out; default is 500. |
|
Display Tracert data, where count is the number of hops. |
|
Display a time stamp for count hops. |
|
Pings continually until interrupted with Ctrl-C; press Ctrl-Break to show statistics without interrupting. |
|
Impose a "loose" route (with
|
|
Impose a "strict" route (with
|
|
Specify the TTL (Time To Live); valid range 0 to 255. |
|
Specify the TOS (Type of Service); valid range 0 to 255. |