H3C S5120-SI Series Command Reference Manual page 723

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

extend it to 8 bits. For example, if pad is configured as 0x2f, then the packets will be padded with
0x0000002f repeatedly to make the total length of the packet meet the requirements of the device. By
default, the padded value starts from 0x01 up to 0xff, where another round starts again if necessary, like
0x010203...feff01....
-q: Presence of this keyword indicates that only statistics are displayed. Absence of this keyword
indicates that all information is displayed.
-r: Records routing information. If this keyword is not provided, routes are not recorded.
-s packet-size: Specifies length (in bytes) of an ICMP echo request, in the range 20 to 8100. The default
value is 56.
-t timeout: Specifies the timeout value (in milliseconds) of an ICMP echo reply (ECHO-REPLY). If the
source does not receive an ICMP echo reply within the timeout, it considers the ICMP echo reply timed
out. The value ranges from 0 to 65535 and defaults to 2000.
-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 reply received. If this keyword is not provided, the system does not display
non ICMP echo reply.
host: IP address or host name (a string of 1 to 20 characters) of the destination.
Description
Use the ping command to verify whether the destination in an IP network is reachable, and to display
the related statistics.
After you execute the ping command, the source will send an ICMP echo request to the destination:
If the destination name is unrecognizable, the system outputs "Error:
host-name".
If the source receives an ICMP echo reply from the destination within the timeout, the system
outputs the related information of the reply.
If the source does not receive an ICMP echo reply from the destination within the timeout, the
system outputs "Request time out".
To use the name of the destination host to perform the ping operation, you must configure Domain
Name System (DNS) on the device first; otherwise, the ping operation fails. For the introduction
and configuration to DNS, refer to DNS Configuration. In addition, you must use the command in
the form of ping ip ip instead of ping ip if the destination name is a key word, such as ip.
During the execution of the command, you can press Ctrl+C to abort the ping operation.
Examples
# Check whether the device with an IP address of 1.1.2.2 is reachable.
<Sysname> ping 1.1.2.2
PING 1.1.2.2: 56
Reply from 1.1.2.2: bytes=56 Sequence=1 ttl=254 time=205 ms
Reply from 1.1.2.2: bytes=56 Sequence=2 ttl=254 time=1 ms
Reply from 1.1.2.2: bytes=56 Sequence=3 ttl=254 time=1 ms
Reply from 1.1.2.2: bytes=56 Sequence=4 ttl=254 time=1 ms
Reply from 1.1.2.2: bytes=56 Sequence=5 ttl=254 time=1 ms
--- 1.1.2.2 ping statistics ---
5 packet(s) transmitted
data bytes, press CTRL_C to break
1-2
Ping: Unknown host

Advertisement

Table of Contents
loading

Table of Contents