1-1
1 System Maintaining and Debugging Commands
System Maintaining Commands
ping
Syntax
ping [ ip ] [ -a source-ip | -c count | -f | -h ttl | -i interface-type interface-number | -m interval | -n | -p pad
| -q | -r | -s packet-size | -t timeout | -tos tos | -v ] * host
View
Any view
Default Level
0: Visit level
Parameters
ip: Supports IPv4 protocol. If this keyword is not provided, IPv4 is also supported.
-a source-ip: Specifies the source IP address of an ICMP echo request (ECHO-REQUEST). It must be
an IP address configured on the device. If this parameter is not provided, the source IP address of an
ICMP echo request is the primary IP address of the outbound interface of the request.
-c count: Specifies the number of times that an ICMP echo request is sent, in the range 1 to
4294967295. The default value is 5.
-f: Discards packets larger than the MTU of a given interface, that is, the ICMP echo request is not
allowed to be fragmented.
-h ttl: Specifies the TTL value for an ICMP echo request, in the range 1 to 255. The default value is 255.
-i interface-type interface-number: Specifies the ICMP echo request sending interface by its type and
number. If this parameter is not provided, the ICMP echo request sending interface is determined by
searching the routing table or forwarding table according to the destination IP address.
-m interval: Specifies the interval (in milliseconds) to send an ICMP echo response, in the range 1 to
65535. The default value is 200 ms.
z If a response from the destination is received within the timeout time, the interval to send the next
echo request equals the actual response period plus the value of interval.
z If no response from the destination is received within the timeout time, the interval to send the next
echo request equals the timeout value plus the value of interval.
-n: Specifies that the Domain Name System (DNS) is disabled for the host argument. When this
keyword is not provided, if the host argument represents the host name of the destination, the device
will translate host into an address.
-p pad: Specifies the value of the pad field in an ICMP echo request, in hexadecimal format, 1 to 8 bits,
in the range 0 to ffffffff. If the specified value is less than 8 bits, 0s will be added in front of the value to