ping
This command sends (IPv4) ICMP echo request packets to anoth er node on the
network.
Syntax
ping host [size size] [count count]
host - IP address or IP alias of the h ost.
size - Number of bytes in a packet. (R ange: 32-512, d efault: 3 2)
The actual packet size will be eight bytes larger than t he size sp ecified
because the router adds header information.
count - Number of packets to send. (Rang e: 1-16, default: 5)
Default Setting
size: 32 bytes
count: 5
Command Mode
Normal Exec, Privileged Exec
Command Usage
Use the ping command to see if another s ite on the network can be reached.
The following are some results of the ping command:
- Normal response - The nor mal resp onse occur s in one to ten secon ds,
depending on network traffic.
- Destination does not respon d - If the host does not r espon d, a “tim eout”
appears in ten seconds.
- Destin ation unreach able - The gateway for this destination indicates that
the destination is unreachable.
- Network or host unreachab le - The gateway found no corres pondi ng entr y
in the route table.
When pinging a host name, be sure the DNS serv er has been e nabled (se e
page 38-5). If necessary, local devices can also be specified in the DNS static
host table (see page 38-1).
Example
Console#ping 10.1.0.9
Type ESC to abort.
PING to 10.1.0.9, by 5 32-byte payload ICMP packets, timeout is 5 seconds
response time: 10 ms
response time: 10 ms
response time: 10 ms
response time: 10 ms
response time: 0 ms
Ping statistics for 10.1.0.9:
5 packets transmitted, 5 packets received (100%), 0 packets lost (0%)
Approximate round trip times:
Minimum = 0 ms, Maximum = 10 ms, Average = 8 ms
Console#
41-6
IP Interface Commands
41