ping
Sends ICMP echo requests to an address and reports how many replies came back and the round-trip times.
Written by a working field network engineer · CCNA, Security+, CySA+
The basic reachability test: send ICMP echo requests and count the replies. Its single-character results tell you more than success or failure if you know how to read them.
Example output
R1#ping 192.168.20.21
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.21, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 msReference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.
Useful variants
ping 192.168.20.21ping 192.168.20.21 source GigabitEthernet0/0ping 192.168.20.21 repeat 100 size 1500ping ipv6 2001:db8:20::21
What each column or field means
| Field | Meaning |
|---|---|
! | An echo reply was received. |
. | No reply before the timeout. The request or the reply was lost somewhere. |
U | A router returned destination unreachable: someone on the path has no route, or an ACL rejected it. |
Success rate | Replies received out of requests sent. |
round-trip min/avg/max | Round-trip times in milliseconds. |
When it doesn’t look right
.!!!! (first packet lost).
Normal on the first ping to a host on a connected subnet: the first echo is dropped while ARP resolves.
..... from the router, but hosts can reach each other.
The router sources the ping from its exit interface, which the far end may have no route back to. Test with ping <ip> source <LAN interface>.
U.U.U
A router on the path is sending unreachables, rate-limited to every other packet. Traceroute to find which one, then check its routing table or ACLs.
Related commands
Try it yourself
- Gateway Unreachable: a Mistyped Interface Address (Pro)
- IP Static Routing Setup (Pro)
- Adding the Missing Return Route (Pro)
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- Troubleshoot a failed ping by checking forward and return paths (3. IP Connectivity)
- Prove an access port works with a ping (2. Network Access)
- Life of a Packet (3. IP Connectivity)
Topic
Static Routing — Read the routing table, add static and default routes in both directions, and prove reachability with ping and traceroute.