Beginner Topic 8 of 50 Computer Networks
Subnetting
Dividing a network into smaller logical segments.
How it works
Subnetting divides an IP network into smaller subnetworks by borrowing bits from the host portion for the network part, described with a mask or CIDR prefix like /24. A /24 has 256 addresses, of which 254 are usable hosts after reserving the network and broadcast addresses. Smaller subnets limit broadcast domains, improve security by segmenting traffic and let routers summarize routes. Variable-length subnet masks allow subnets of different sizes.
Step-by-step walkthrough
- A /24 network has 256 addresses.
- Borrowing two host bits creates four subnets.
- The mask /26 leaves six host bits, so 64 addresses per subnet.
- Two are reserved for network and broadcast, giving 62 usable hosts.
- Subnets limit broadcasts and allow routing policy.
Where it is used
Allocating address space across offices, separating servers from user devices, isolating guest Wi-Fi, planning cloud virtual networks with CIDR blocks and summarizing routes use subnetting.
Common pitfall
Calculation mistakes, such as wrong block sizes or overlapping ranges, cause routing problems. Forgetting that two addresses per subnet are reserved leaves too few hosts. Poor planning prevents growth, so leave room. Practice with binary conversions and verify with a subnet calculator.
Where it fits in the course
Subnetting is topic 8 of 50 in Computer Networks, rated Beginner. It follows IPv4 vs IPv6. The next topic is MAC Addresses.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Subnetting?
Where do people use Subnetting?
What is the most common mistake with Subnetting?
What should I learn before this topic?
How can I practice it?
Is Subnetting hard to learn?
How long does it take to learn Subnetting?
Which topics are related to Subnetting?
What should I study after Subnetting?
Related topics
- IPv4 vs IPv6 (Computer Networks)
- MAC Addresses (Computer Networks)
- IP Addresses (Computer Networks)
- Ethernet (Computer Networks)