BM: Baca dalam Bahasa Melayu
World L3: Phone Lines
Subnets and CIDR
You will learn: what /24 means, and when a call goes through the gateway.
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
kedai is 10.0.0.5/24. What does the /24 mean? It decides who kedai can call directly.
Try it
Think of a street. The first three numbers name the street. The last number is the house. That street is a subnet: One street of addresses. Machines on the same street call each other directly.. Which houses are on kedai’s street?
Drag a card into a box. Or tap the card, then tap the box.
Watch
The slash number is CIDR. It counts how much of the address names the street. A bigger slash number means a shorter street. Put them from fewest houses to most.
Fewest houses at the top. Put these in order. Use the arrows, or drag.
- /28: 16 houses
- /16: 65,536 houses
- /32: one house
- /24: 256 houses
Check
A /24 street has 256 numbers. Two are kept: .0 names the street and .255 calls every house at once. How many computers fit?
Pick one answer.
Try it
Calls to other streets go to the gateway: The telephone exchange at the end of the street. Calls to other streets go through it.: the telephone exchange. Find its number with ip route.
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
Predict
kedai calls 10.0.0.20. Does that call go through the exchange at 10.0.0.1?
Pick one answer.
Check
True or not? Swipe each one.
Swipe right for good, left for needs work. Or use the buttons.
10.0.0.77 is on the street 10.0.0.0/24.
You did it!
You can now read /24 and tell when a call goes through the gateway.
Go deeper (optional)
Under the hood, /24 means the first 24 bits of 32. The old way to write it is a mask: 255.255.255.0. Cloud networks use the same idea. In World A3, you plan subnets for a mall.
Real rep (optional):
Real mission
ip route
0 of 2 steps done · Your ticks are saved.
Bahasa Melayu
kedai ialah 10.0.0.5/24. Apa maksud /24? Ia tentukan siapa yang kedai boleh hubungi terus.
Bayangkan satu jalan. Tiga nombor pertama ialah nama jalan. Nombor terakhir ialah rumah. Jalan itu dipanggil subnet. Rumah mana di jalan kedai?
Nombor selepas garis condong ialah CIDR. Ia kira berapa banyak alamat yang namakan jalan. Nombor lebih besar bermaksud jalan lebih pendek. Susun dari rumah paling sedikit ke paling banyak.
Jalan /24 ada 256 nombor. Dua disimpan: .0 namakan jalan dan .255 hubungi semua rumah serentak. Berapa komputer muat?
Panggilan ke jalan lain pergi ke gateway: ibu sawat telefon. Cari nombornya dengan ip route.
kedai hubungi 10.0.0.20. Adakah panggilan itu melalui ibu sawat di 10.0.0.1?
Betul atau tidak? Leret setiap satu.
Kini anda boleh baca /24 dan tahu bila panggilan melalui gateway.
You finished this before. Practice is always welcome!
Official docs: ip-route(8) · RFC 4632: CIDR
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?