ping
Syntax
ping[-n
count][-l
size][-s
sourceIP]targetIP
Description
Pings the target host with an IPv4 stack.
Options
-s
Specifies the source adapter as 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 20 echo request datagrams:
FS0:\> ping -n 20 202.120.120.100
To ping the target host by specifying the source adapter as an IPv4 address:
FS0:\> ping -s 202.120.100.12 202.120.100.1