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
BeginnerBoth 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
All lessons in LAN Labs
2Addresses on the LAN
Giving a Host an AddressThe First PingWhat ARP LearnedThe Switch Learns TooRecap - First Conversation8Capstone - Fix the Branch
Survey the DamageFix the Address ClashMasks and GatewaysRecap - Prove It WorksPractice on your own: Terminal playground