Intermediate level · Module 1: TCP/IP and Subnetting · Lesson 2 of 3
Subnetting IPv4
Divide an address block into correctly sized subnets.
In this lesson you will
- Convert between CIDR and subnet masks
- Calculate network, host range and broadcast
Key concepts
CIDR prefixsubnet maskusable hostsbroadcast address
The lesson
A prefix such as /26 means 26 network bits, leaving 6 host bits: 2⁶ = 64 addresses, of which 62 are usable (the first is the network address, the last the broadcast).
The mask for /26 is 255.255.255.192. Subnets of this size start at multiples of 64: .0, .64, .128, .192.
Choose the smallest subnet that fits each group with room to grow.
Step by step
- Convert prefixes to masks.
- Calculate block sizes.
- Find network, first, last and broadcast addresses.
- Check with a classmate.
Calculating a /26 subnet
Finding the mask, address count and usable range for 192.168.10.0/26.
| Item | Working | Amount |
|---|---|---|
| Host bits | 32 − 26 | 6 |
| Addresses in the block | 2⁶ | 64 |
| Subnet mask | 26 ones: 255.255.255.(256 − 64) | 255.255.255.192 |
| Network address | first address | 192.168.10.0 |
| Usable host range | first + 1 to last − 1 | 192.168.10.1 – 192.168.10.62 |
| Broadcast address | last address | 192.168.10.63 |
| Usable hosts | 64 − 2 | 62 |
Explanation
The block size, 64, tells you where subnets start: 192.168.10.0, .64, .128 and .192. The next subnet begins where this one ends.
Two addresses are reserved in each IPv4 subnet — the network address and the broadcast address — so a /26 serves 62 devices, including the gateway.
Check your understanding
4 subnets × 64 addresses = 256, the whole /24.
Practice activity
Subnet the /24 for five departments.
Expected result: Correct, non-overlapping subnets with ranges.
Check your understanding
-
How many usable hosts are in a /26?
Show answer
62.
-
What is the mask for /26?
Show answer
255.255.255.192.
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.