Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 2 Network Connectivity Test Comm
ands
Huawei Technologies Proprietary
2-2
-s packetize
: Specifies the size (in bytes) of each ICMP ECHO-REQUEST packet
(excluding the IP and ICMP headers). The packetize argument ranges from 20 to
32,000 and defaults to 56 bytes.
-t timeout
: Sets the timeout time (in ms) waiting for an ICMP ECHO-REPLY packet after
an ICMP ECHO-REQUEST packet is sent. The timeout argument ranges from 0 to
65535 and defaults to 2,000 ms.
-tos
tos
: Sets the ToS value of the ICMP ECHO-REQUEST packets in the range of 0 to
255. By default, this value is 0.
-v
: Specifies to display other ICMP packets received (that is, non-ECHO-REPLY
packets) as well as the ECHO-REPLY packets. By default, except for the
ECHO-REPLY packets, other ICMP packets are not displayed.
host
: Domain name or IP address of the destination host.
Description
Use the
ping
command to check the IP network connectivity and the reachability of a
host.
The executing procedure of the
ping
command is as follows: First, the source host
sends an ICMP ECHO-REQUEST packet to the destination host. If the connection to
the destination network is normal, the destination host receives this packet and
responds with an ICMP ECHO-REPLY packet.
You can use the
ping
command to check the network connectivity and the quality of a
network line. This command can output the following information:
z
Response status of the destination to each ICMP ECHO-REQUEST packet. If no
response packet is received within the timeout time, including the number of bytes,
packet sequence number, TTL and response time of the response packet. If no
response packet is received within the timeout time, the message "Request time
out" is displayed instead.
z
Final statistics, including the numbers of sent packets and received response
packets, the irresponsive packet percentage, and the minimum, average and
maximum values of response time.
You can set a relatively long timeout time waiting for response packet if the network
transmission is slow.
Related command:
tracert
.
Example
# Check the reachability of the host with IP address 202.38.160.244.
<Quidway> ping 202.38.160.244
ping 202.38.160.244 : 56 data bytes
Reply from 202.38.160.244 : bytes=56 sequence=1 ttl=255 time = 1ms
Reply from 202.38.160.244 : bytes=56 sequence=2 ttl=255 time = 2ms