Skip to main content

Ping & ICMP

The ping command is a very common method for testing network connectivity of devices. It uses ICMP Echo messages to determine whether a remote host is active, the round trip time (RTT) for communicating with the host, and the packet loss.

ICMP Type Values

ICMP TypeMeaning and Code Values
0Echo-reply
3Destination unreachable code 0 = net unreachable 1 = host unreachable 2 = protocol unreachable 3 = port unreachable 4 = fragmentation needed and DF set 5 = source route failed
4Source-quench
5Redirect code 0 = redirect datagrams for the network 1 = redirect datagrams for the host 2 = redirect datagrams for the type of service and network 3 = redirect datagrams for the type of service and host
6Alternate-address
8Echo
9Router-advertisement
10Router-solicitation
11Time-exceeded code 0 = time to live exceeded in transit 1 = fragment reassembly time exceeded

Cisco IOS ping Output

CharacterDescription
!Each exclamation point indicates receipt of a reply.
.Each period indicates that the device timed out while waiting for a reply.
UA destination unreachable error protocol data unit (PDU) was received.
QSource quench (destination too busy).
MCould not fragment.
?Unknown packet type.
&Packet lifetime exceeded.