Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 1 System Maintenance and Management
Commands
3Com Corporation
1-10
-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 the range 0 to 65535 milliseconds.
tos: TOS value in ECHO-REQUEST packets.
-v: Displays the received ICMP packets other than ECHO-RESPONSE packets.
vpn-instance vpn-instance-name: Sets the vpn-instance name of MPLS VPN,
specifying the VPN attribute configured in this ping command, that is, name of the
associated vpn-instance created locally. The -i and -vpn options cannot be specified in
the same command.
host: Name or IP address of the destination host.
ip: Adopts the IP protocol.
Description
Use the ping command to test connectivity of an IP network and reachability of a host.
The following are the default settings apply when none of the parameters is specified:
An ECHO-REQUEST packet is sent five times at most.
Socket is non-debug mode.
Host is regarded an IP address. If it is not, domain name resolution is performed.
Padding begins at 0x01 and increments until 0x09 and then repeats.
All information including statistics is displayed.
Routes are not recorded.
The length of ECHO-REQUEST packets is 56 bytes.
The time to wait for an ECHO-RESPONSE packet is 2000 ms.
The ICMP packets other than ECHO-RESPONSE packets are not displayed.
The parameter vpn-instance is not defined.
The following is the process of executing the ping command:
A host sends an ICMP ECHO-REQUEST. If the connection to the destination network is
normal, the destination host will be able to receive the ICMP ECHO-REQUEST and
send an ICMP ECHO-REPLY packet back to the source host.
You can use the ping command to test network connectivity or line quality. Its output
includes: