Sei sulla pagina 1di 14

Objectives:

At the end of the lesson, you


should be able to:
a. Identify the different ping
command syntax;
b. Value the importance of ping
command syntax in
networking;
c. Perform ping command with
specific 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

This option sets the


number of ICMP Echo
Request messages to
send. If you execute
the ping command
without this option,
four requests will be
sent.

SYNTAX

DESCRIPTION

-l size

Use this option to set


the size, in bytes, of
the echo request
packet from 32 to
65,527. The ping
command will send
a 32 byte echo
request if you do not
use the -l option.

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.

Why use Syntax?

Identify if the specified packer


received the destination correctly

Test if the network has a stable


connection within the network

Potrebbero piacerti anche