The ping Command

ImageChecking for Connectivity with Ping

The ping command exists to test connectivity. It sends a series of packets to one destination IP address. The packets mean basically “if you get this packet, send a reply back.” Each time the sender sends the request, and the other host sends a reply, the ping command knows a packet made it from the source host, to the destination, and back.

More formally, the ping command uses the Internet Control Message Protocol (ICMP), specifically the ICMP Echo Request and ICMP Echo Reply messages. ICMP defines many other messages as well, but these two messages were made specifically for connectivity testing ...

Get CCENT/CCNA ICND1 100-101 Official Cert Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.