2-2
-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.
string
: Host name of the destination host, ranging from 1 to 30 characters.
Description
Use the
ping
command to check the reachability of a host, and output the related statistics information.
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 commands:
tracert
.
Examples
# 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
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
--202.38.160.244 ping statistics--
5 packet transmitted
5 packet received
0% packet loss
round-trip min/avg/max = 1/2/3 ms
The above output information indicates that the destination host is reachable. Each probe packet from
the source device has got a reply, with the minimum/average/maximum packet roundtrip time being
1ms/2ms/3ms.
Summary of Contents for 5500-EI PWR
Page 43: ...2 6...
Page 76: ...1 17...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Page 519: ...iii...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Page 1111: ...ii xmodem get 3 18...
Page 1314: ...A 44 Z...