H3C S3100-52P Command Manual page 16

System maintenance and debugging
Hide thumbs Also See for S3100-52P:
Table of Contents

Advertisement

Command Manual – System Maintenance and Debugging
H3C S3100-52P Ethernet Switch
-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:
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.
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.
<H3C> 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
Reply from 202.38.160.244 : bytes=56 sequence=3 ttl=255 time = 1ms
Reply from 202.38.160.244 : bytes=56 sequence=4 ttl=255 time = 3ms
Reply from 202.38.160.244 : bytes=56 sequence=5 ttl=255 time = 2ms
Chapter 2 Network Connectivity Test
2-2
Commands

Advertisement

Table of Contents
loading

Table of Contents