

!- echo requests, and five echo replies.ĭestination unreachable code 0 = net unreachable 1 = host unreachable 2 = protocol unreachable 3 = port unreachable 4 = fragmentation needed, and DF set 5 = source route failed !- By default, the repeat count is five times, so there will be five

!- ICMP type=0 corresponds to the echo reply message. !- This is the answer we get from 172.16.0.12. !- ICMP type=8 corresponds to the echo message. Success rate is 100 percent (5/5), round-trip min/avg/max = 4/6/8 ms Sending 5, 100-byte ICMP Echos to 172.16.0.12, timeout is 2 seconds: This can result in a severe performance degradation or a network outage. Warning: When the debug ip packet detail command is used on a production router it can cause high CPU utilization. This next code example shows the ping command after the debug ip packet detail command is enabled. The TTL value of a ping packet cannot be changed. The default value of this timeout is two seconds on Cisco routers. The destination is able to get an echo reply back to the source within a predetermined time called a timeout. The echo request gets to the destination, and The ping command first sends an echo request packet to an address, then waits for a reply. The round-trip delay used to communicate with the host. Whether a remote host is active or inactive. It uses a series of Internet Control Message Protocol (ICMP) Echo messages to determine: The ping command is a very common method used to troubleshoot accessibility of devices. In this document, this basic configuration is used for examples in this article:īasic Configuration of IPs and Routers The Ping Command Read the Use the Debug Command section before you issue debug commands. Note: Any debug command used on a production router can cause serious problems. Conventionsįor more information on document conventions, refer to the Cisco Technical Tips Conventions. If your network is live, ensure that you understand the potential impact of any command.

All of the devices used in this document started with a cleared (default) configuration. The information in this document was created from the devices in a specific lab environment. This document is not restricted to specific software and hardware versions. There are no specific requirements for this document. This document describes the use of the ping and traceroute commands on Cisco routers.
