Ping - H3C S5830V2 Command Reference Manual

Switch series fundamentals
Hide thumbs Also See for S5830V2:
Table of Contents

Advertisement

ping

Use ping to check the connectivity to an IPv4 address.
Syntax
ping [ -c count | -s size ] * ip-address
Views
Any view
Parameters
-c count: Specifies the number of ICMP echo requests to send, in the range of 1 to 2147483647. The
default is 5.
-s size: Specifies the length (in bytes) of each ICMP echo request, in the range of 20 to 8100. The
default is 56.
ip-address: Specifies the IPv4 address of the destination in dotted decimal notation.
Usage guidelines
When you execute the ping command, the device sends ICMP echo requests to the destination. You
can press Ctrl+C to abort the ping operation.
Examples
# Check the connectivity to the destination 1.2.1.1.
<boot> ping 1.2.1.1
PING 1.2.1.1 (1.2.1.1): 56 data bytes
56 bytes from 1.2.1.1: seq=0 ttl=128 time=2.243 ms
56 bytes from 1.2.1.1: seq=1 ttl=128 time=0.717 ms
56 bytes from 1.2.1.1: seq=2 ttl=128 time=0.891 ms
56 bytes from 1.2.1.1: seq=3 ttl=128 time=0.745 ms
56 bytes from 1.2.1.1: seq=4 ttl=128 time=0.911 ms
--- 1.2.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.717/1.101/2.243 ms
Table 34 Command output
Field
PING 1.2.1.1 (1.2.1.1)
56 data bytes
56 bytes from 1.2.1.1: seq=0 ttl=128
time=2.243 ms
--- 1.2.1.1 ping statistics ---
5 packets transmitted
5 packets received
description
Checking the connectivity to the device at 1.2.1.1.
Number of data bytes in each ICMP echo request.
Received an ICMP reply from the device at 1.2.1.1.
Fields of the reply:
bytes—Number of data bytes in the ICMP reply.
seq—Sequence number of the reply. You can examine the
sequence numbers of replies to determine whether packets
are missing, disordered, or duplicated.
ttl—TTL value in the ICMP reply.
time—Response time.
Statistics for packets sent and received during the ping operation.
Number of ICMP echo requests sent.
Number of ICMP echo replies received.
216

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents