Skip to main content
Kill -9 Club
Sign in

ping

NetworkPackage: iputils-ping

Sends ICMP packets and times the reply. It proves a machine is reachable at the IP level; it says nothing about port 443, and a firewall dropping ICMP makes it fail on a perfectly healthy server.

What its options do in the lessons

From the same glossary the lessons render under their commands, so the two cannot disagree.

ping -c
Stops after sending that many packets, instead of running until Ctrl+C.
ping -s
Payload size in bytes, headers excluded: -s 1472 puts a 1500-byte packet on the wire once the 8 ICMP bytes and the 20 IP bytes are added.
ping -M
Fragmentation policy. -M do forbids fragmenting: a packet too large for the MTU is refused locally instead of being split, which is what makes it the way to measure a path's MTU.
ping -t
Sets the TTL of the packets sent: -t 1 expires them at the first router, which names itself by returning a Time Exceeded. It is the mechanism traceroute is built on.

Lessons that teach it