Imagine your home address. That's exactly what an IP address is for a computer! It tells the internet exactly where to deliver data. In this module, we'll learn how IP addresses work and how to split a big network into smaller ones — like making separate group chats. 💬
An IPv4 address is a set of four numbers (from 0 to 255), separated by dots. Think of it as four little boxes, and each box is called an octet (because it holds 8 bits).
Each octet can be 0–255. So there are about 4.3 billion possible IPv4 addresses! 🌍
Back in the day, we split IP addresses into classes based on the size of the network. Here's the quick cheat sheet:
| Class | First octet range | Used for | Private ranges (home/school) |
|---|---|---|---|
| A | 1 – 126 | Giant networks (millions of devices) | 10.0.0.0 |
| B | 128 – 191 | Medium networks | 172.16.0.0 – 172.31.255.255 |
| C | 192 – 223 | Small networks (like home Wi‑Fi) | 192.168.0.0 – 192.168.255.255 |
| D & E | 224 – 255 | Multicast & experiments (not for normal use) | — |
Used inside your home or school. It's not visible on the internet. Like your bedroom door — only your family uses it. Examples: 192.168.x.x, 10.x.x.x.
This is the address the whole internet sees. Your home router has one public IP that you share with everyone in your house. Your internet provider gives it to you.
Instead of typing IP addresses by hand, a DHCP server gives them out automatically — like a robot that hands out name tags. That's what happens when your phone joins Wi‑Fi! 🎉
Subnetting is just splitting one big network into smaller pieces. Why? To keep things organised, safer, and faster — like separating a big classroom into small study groups. 👥
The subnet mask looks like another IP address, but it's a filter that shows which bits belong to the network and which to the device.
255.255.255.0 = the first 3 octets are the network, the last is the device.
Instead of writing 255.255.255.0 all the time, we write /24. The number after the slash tells you how many bits are for the network.
Remember: a smaller number after the slash = a BIGGER network. /24 is the most common for home setups.
You just learned: IP address structure, classes (A/B/C), private vs public, DHCP, subnetting, and CIDR notation.