Command Manual - System Management
Quidway S2000 Series Ethernet Switches Chapter 4 System Maintenance Commands
4-17
4.4 Network Connection Test Commands
4.4.1 ping
Syntax
ping [ -a ip-address ] [-c count ] [ -d ] [ -h ttl ] [ -i {interface-type interface-num |
interface-name } ] [ ip ] [ -n ] [ - p pattern ] [ -q ] [ -r ] [ -s packetsize ] [ -t timeout ] [ -tos
tos ] [ -v ] string
View
Any view
Parameter
-a ip-address: Specify the source IP address to transmit ICMP ECHO-REQUEST.
-c: count specify how many times the ICMP ECHO-REQUEST packet will be
transmitted, ranging from 1 to 4294967295.
-d: Configure the socket to be in DEBUGGING mode.
-h ttl: Configure TTL value for echo requests to be sent, range from 1 to 255.
-i: Configure to choose packet sent on the interface.
interface-type: Specify the interface type.
interface-num: Specify the interface number.
interface-name: Specify the interface name.
-n: Configure to take the host parameter as IP address without domain name
resolution.
-p: pattern is the hexadecimal padding of ICMP ECHO-REQUEST, e.g. -p ff pads the
packet completely with ff.
-q: Configure not to display any other detailed information except statistics.
-r: Record route.
-s packetsize: Specify the length of ECHO-REQUEST (excluding IP and ICMP packet
header) in bytes.
-t timeout: Maximum waiting time after sending the ECHO-REQUEST (measured in
ms).