Command Reference Guide
260 ● ping 3Com Router 5000 Family and Router 6000 Family
Command Reference
ping
Purpose Use the ping command to test connectivity of an IP network and reachability of a
host.
Syntax ping [ -a X.X.X.X | -c count | -d | -f | -h ttl_value | -i {
interface-type interface-number } | ip | -n | -p pattern | -q | -r | -s
packetsize | -t timeout | tos | -v | vpn-instance vpn-instance-name ] *
host
Parameters -a X.X.X.X
Sets the source IP address in the ICMP ECHO-REQUEST
packets.
-c count
Number of ICMP ECHO-REQUEST transmissions. Valid
values are 1 to 4294967295.
-d
Sets socket to debug mode.
-f
Discards the packets larger than the interface MTU
without fragmentation.
-h ttl_value
Sets TTL value in the range of 1 to 255.
-i
Sets the interface for sending ICMP ECHO-REQUEST
packets. It sets the TTL in packets to 1. Use this
keyword when testing directly connected devices. The
-i and -vpn options cannot be specified in the same
command.
interface-type
Interface type.
interface-number
Interface number.
-n
Directly uses the host parameter as IP address without
domain name resolution.
-p pattern
The byte for padding ICMP ECHO-REQUEST packets. It
is in hexadecimal format and in the range 0 to
FFFFFFFF. For example, if the parameter is set to -p ff,
the entire packet is padded by ff.
-q
Displays statistic figures rather than details.
-r
Records routes.
-s packetsize
Size of ECHO-REQUEST packets (excluding IP and ICMP
headers), in the range 20 to 8100 bytes. The packets
larger than the interface MTU are sent after
fragmented.
-t timeout
Time to wait for ECHO-RESPONSE (in milliseconds).
Valid values are 0 to 65535.
tos
TOS value in ECHO-REQUEST packets.
-v
Displays the received ICMP packets other than
ECHO-RESPONSE packets.