Menu
Coddy logo textTech

The First Ping

Lesson 6 of 35 in Coddy's LAN Labs course.

With addresses in the same network and a switch between them, two hosts reach each other directly: no router involved. netlab ping A B simulates that exchange and, on success, prints the reply with a TTL of 64, the value a packet starts with when it has not crossed any router.

Reachability is a two-way street. A ping only succeeds when the request arrives and the reply finds its way back, so try both directions when you test a lab.

challenge icon

Challenge

Beginner

Both hosts are addressed in 192.168.1.0/24. Ping pc2 from pc1, then pc1 from pc2.

Expected output:

pc1 -> pc2: reply from 192.168.1.20 (ttl=64)
pc2 -> pc1: reply from 192.168.1.10 (ttl=64)

Try it yourself

Terminal

All lessons in LAN Labs

Practice on your own: Terminal playground