7 Ping Command Syntax
7 Ping Command Syntax
DEFINITION OF TERMS
COMMAND?
Is the set of
procedures or
steps that the
user asked the
computer to
do.
SYNTAX?
rules
governing
how will the
computer
perform a
task.
SYNTAX
-t
DESCRIPTION
Using this option
will ping the
target until you
force it to stop
using Ctrl-C.
SYNTAX
DESCRIPTION
-n count
SYNTAX
DESCRIPTION
-l size
SYNTAX
-i TTL
DESCRIPTION
This option sets the
Time to Live (TTL)
value, the
maximum of which
is 255.
Time-to-live (TTL)
value in an Internet Protocol (IP) packet that tells a
network router whether or not the packet has been in the
network too long and should be discarded
measure of how many rerouting from one point to another
the packet has to go through before IP declares it
undeliverable
In IPv6 the TTL field in each packet has been renamed
the hop limit
SYNTAX
-r count
DESCRIPTION
Use this ping command
option to specify the
number of hops between
the computer and the
target computer or
device that you would
like to be recorded and
displayed. The maximum
value for count is 9 so use
the tracert command
instead. If you are
interested in viewing all
hops between two
devices.
SYNTAX
-s count
DESCRIPTION
Use this option to
report the time, in
Internet Timestamp
format, that each
echo request is
received and echo
reply is sent. The
maximum value for
count is 4 which
means first four hops
can be time
stamped.
SYNTAX
-w timeout
DESCRIPTION
Specifying a timeout
value when
executing the ping
command adjusts the
amount of time, in
milliseconds, that ping
waits for each reply. If
you don't use the -w
option, the default
timeout value is used
which is 4000, or 4
seconds.
SYNTAX
-4
DESCRIPTION
This forces the ping
command to use
IPv4 only but is only
necessary if target
is a hostname and
not an IP address.
SYNTAX
target
DESCRIPTION
This is the
destination you
wish to ping, either
an IP address or a
hostname.
SYNTAX
/?
DESCRIPTION
Use the help
switch with the
ping command
to show detailed
help about the
command's
several options.