Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-15
-n: Specifies that the host argument is used as the IP address, without domain name
resolution performed. By default, host is taken as the IP address, and if host is not an IP
address, domain name resolution will be performed.
-p: Specifies the padded bytes in an ICMP echo request, in hexadecimal format. For
example, if pattern is configured as ff, then the packets will be padded with ff. By default,
the padded bytes start from 0x01 up to 0x09, where another round starts again if
necessary.
-q: Presence of this keyword indicates that only statistics are displayed. By default, all
information is displayed.
-r: Records routes. By default, routes are not recorded.
-s packet-size: Specifies length (in bytes) of an ICMP echo request (excluding the IP
and ICMP header). The default value is 56.
-t timeout: Specifies the timeout value (in milliseconds) of an ICMP echo reply
(ECHO-REPLY). It defaults to 2000 ms.
-tos tos: Specifies type of service (ToS) of an echo request, in the range 0 to 255. The
default value is 0.
-v: Displays non ICMP echo replies received. By default, the system does not display
non ICMP echo replies.
-vpn-instance vpn-instance-name: Specifies the name of a VPN instance.
host: IP address or domain name of the destination host.
ip: Specifies that IP ICMP packets are used.
Description
Use the ping command to check host reachability and network connectivity in an IP or
IPX network.
The ping command involves the following steps in its execution:
1) The source device sends an ICMP echo request to the destination host.
2) If the network is functioning properly, the destination host responds by sending an
ICMP echo reply to the source device after receiving the ICMP echo request.
You can use the ping command to test network connectivity and connection quality.
Output of the ping command falls into the following:
z Information on the destination’s responses towards each ICMP echo request. If
the source device does not receive an ICMP echo reply within the timeout time, it
displays the prompt information “Request time out.”; otherwise, it displays the
number of bytes of the echo reply, the message sequence number, Time to Live
(TTL), the response time.
z The statistics during the ping operation, which include number of packets sent,
number of echo reply messages received, percentage of messages not received,
and the minimum, average, and maximum response time.