Configuration Guide Configuring Network Communication Test Tools
ping [ipv] [address [length length ] [ntimes times] [timeout seconds] [data data] [source source] [df-bit]
[validate] [detail]]
address: Specifies the destination IPv4 address or domain name.
length: Specifies the length of the data packet. The value ranges from 36 to 18,024. The default length is
100.
times: Specifies the number of probes. The value ranges from 1 to 4,294,967,295
seconds: Specifies the timeout. The value ranges from 1s to 10s.
data: Specifies the data in the packet. The data is a string of 1 to 255 bytes. By default, the string is "abcd".
source: Specifies the source IPv4 address or source port of the packet. The loopback interface address, for
example, 127.0.0.1, cannot be used as the source address.
df-bit: Configures the DF bit of the IP address. When the DF bit is set to 1, the packet is not fragmented. By
default, the DF bit is 0.
validate: Configures whether to verify the response packet.
detail: Configures whether to display the Echo Reply message in detail. By default, only the exclamation
mark (!) and dot (.) are displayed.
In User EXEC mode, you can execute only the basic ping function. In Privileged EXEC mode, you can
execute the extended ping function.
In other configuration modes, you can run the do command to execute the extended ping function. For
details about the configuration, see the description about the do command.
When the ping function is executed, information about the response (if any) will be displayed, and then
related statistics will be output. Using the extended ping function, you can specify the number, length and
timeout of packets to be sent. Like the basic ping function, related statistics will be output.
To use the domain name, you must first configure the domain name server (DNS). For details about the
configuration, see Configuring DNS.
 Ping IPv6
ping [ipv6] [address [length length ] [ntimes times] [timeout seconds] [data data] [source source]
[df-bit] [validate] [detail]]
address: Specifies the destination IPv6 address or domain name.
length: Specifies the length of data packet. The value ranges from 16 to 18,024. The default length is 100.
times: Specifies the number of probes. The value ranges from 1 to 4,294,967,295.
seconds: Specifies the timeout. The value ranges from 1s to 10s.
data: Specifies the data in the packet. The data is a string of 1 to 255 bytes.
source: Specifies the source IPv6 address or source port of the packet. The loopback interface address, for
example, ::1, cannot be used as the source address.
detail: Configures whether to display the Echo Reply message in detail. By default, only the exclamation
mark (!) and dot (.) are displayed.
In User EXEC mode, you can execute only the basic ping IPv6 function. In Privileged EXEC mode, you can
execute the extended ping IPv6 function.
In other configuration modes, you can run the do command to execute the extended ping function. For
details about the configuration, see the description about the do command.