BM: Baca dalam Bahasa Melayu
World L3: Phone Lines
ping and traceroute
You will learn: to check if a machine answers, and which exchanges a call passes.
Checked with Linux (Debian 13) on 1 Nov 2026
The problem
You are you in /home/you. 0 things here. Services: cron running, ssh running, nginx running.
you@kedai:~$Folder ~
Empty folder
+ 3 hidden (ls -a)
Services
cronrunningstarts at bootsshrunningstarts at bootnginxrunningstarts at boot
Phone lines (network) Address 10.0.0.5
Listening ports
:22sshd:80nginx
Two hellos, no reply: 100% packet loss. Is the shop closed? Or is the road broken on the way?
Watch
ping: Hello, can you hear me? It sends a tiny message and times the echo. sends a tiny hello and times the echo. -c 3 sends three, then stops. Tap the line that says how many came back.
Tap the summary line.
0 of 1 found
Try it
Ping pasar.example three times. Without -c, ping never stops: then press Ctrl+C.
You are you in /home/you. 0 things here. Services: cron running, ssh running, nginx running.
you@kedai:~$Folder ~
Empty folder
+ 3 hidden (ls -a)
Services
cronrunningstarts at bootsshrunningstarts at bootnginxrunningstarts at boot
Phone lines (network) Address 10.0.0.5
Listening ports
:22sshd:80nginx
Watch
traceroute: Lists every telephone exchange (hop) a call passes on its way. lists every exchange on the way. Each line is a hop. This lab sits on one machine, so the times are tiny.
Predict
Another day, the same traceroute shows this. Is the road broken at hop 2?
1 gateway.kedai (10.0.0.1) 0.040 ms 0.004 ms 0.004 ms
2 * * *
3 kedai.example (203.0.113.10) 0.015 ms 0.007 ms 0.007 msPick one answer.
Check
What does each ping result tell you?
Drag a card into a box. Or tap the card, then tap the box.
You did it!
You can now ping a machine and trace the road to it.
Go deeper (optional)
Many servers block ping on purpose. No reply does not always mean down: test the real port with curl. mtr mixes ping and traceroute into one live table. Our traceroute outputs came from a real Debian 13 lab.
Real mission
ping -c 3 example.comsudo apt install traceroutetraceroute example.com
0 of 3 steps done · Your ticks are saved.
Bahasa Melayu
Dua salam, tiada balasan: 100% packet loss. Kedai itu tutup? Atau jalannya putus di tengah?
ping hantar salam kecil dan ukur masa gemanya. -c 3 hantar tiga, kemudian berhenti. Tekan baris yang kata berapa yang kembali.
Ping pasar.example tiga kali. Tanpa -c, ping tak pernah berhenti: tekan Ctrl+C.
traceroute senaraikan setiap ibu sawat dalam perjalanan. Setiap baris ialah satu hop. Makmal ini dalam satu mesin, jadi masanya sangat kecil.
Hari lain, traceroute yang sama tunjuk ini. Adakah jalannya putus di hop 2?
1 gateway.kedai (10.0.0.1) 0.040 ms 0.004 ms 0.004 ms
2 * * *
3 kedai.example (203.0.113.10) 0.015 ms 0.007 ms 0.007 ms
Apa yang setiap keputusan ping beritahu anda?
Kini anda boleh ping sesebuah mesin dan jejak jalan ke sana.
You finished this before. Practice is always welcome!
Official docs: ping(8) · Debian: traceroute(1)
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?