ping
Syntax
ping[-s
sourceIP][-n
count][-l
size]targetIP
Description
Pings the target host with an IPv4 stack.
Options
-s
Specifies that the source adapter is an IPv4 address.
sourceIP
Specifies the IPv4 address of the source machine.
-n count
Specifies the number of echo request datagrams to be sent.
-l size
Specifies the size of the data buffer in the echo request datagram.
targetIP
Specifies the IPv4 address of the target machine.
Usage
This command uses the
ICMPv4 ECHO_REGUEST
datagram to elicit an
ECHO_REPLY
from a host.
Examples
To ping the target host at 192.168.0.1 with 64 bytes of data:
FS0:\> ping -1 64 192.168.0.1
To ping the target host at 202.120.120.100 by sending a 20 byte echo request datagram:
FS0:\> ping -n 20 202.120.120.100