Command Manual (For Soliton) – System Maintenance and Debugging
H3C S3100 Series Ethernet Switches
Chapter 2 Network Connectivity Test
Commands
2-2
-q
: Specifies to display only the statistics without the details. By default, all the
information including the details and statistics will be displayed.
-s packetsize
: Specifies the size (in bytes) of each ICMP ECHO-REQUEST packet
(excluding the IP and ICMP headers). The
packetsize
argument ranges from 20 to
32,000 and defaults to 56 bytes.
-t timeout
: Specifies the timeout time (in milliseconds) before an ICMP ECHO-REPLY
packet is received after an ICMP ECHO-REQUEST packet is sent. The
timeout
argument ranges from 0 to 65535 ms and defaults to 2,000 ms.
-tos
tos
: Specifies the ToS value of the ICMP ECHO-REQUEST packets in the range 0
to 255. By default, this value is 0.
-v
: Specifies to display other ICMP packets received (that is, non-ECHO-REPLY
packets). By default, other ICMP packets like non-ECHO-REPLY 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,
including the number of bytes, packet sequence number, TTL and response time
of the response packet if the response packet is received within the timeout time. 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 if the network transmission speed is slow.
Related command:
tracert
.
Example
# Check the reachability of the host whose IP address is 202.38.160.244.
<Sysname> ping 202.38.160.244
ping 202.38.160.244 : 56 data bytes, press CTRL_C to break
Reply from 202.38.160.244 : bytes=56 sequence=1 ttl=255 time = 1ms