LearnViz CompSci
Home / Learn / Computer Networks / Subnetting

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

  1. A /24 network has 256 addresses.
  2. Borrowing two host bits creates four subnets.
  3. The mask /26 leaves six host bits, so 64 addresses per subnet.
  4. Two are reserved for network and broadcast, giving 62 usable hosts.
  5. 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

How to study this topic

  1. Read the explanation above and restate the definition in your own words.
  2. Open the interactive lesson and answer its mini quiz.
  3. Read the common pitfall, then write a short example that avoids it.
  4. Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.

Frequently asked questions

What is Subnetting?
Dividing a network into smaller logical segments. It belongs to Computer Networks and is a beginner-level topic.
Where do people use Subnetting?
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.
What is the most common mistake with Subnetting?
Calculation mistakes, such as wrong block sizes or overlapping ranges, cause routing problems.
What should I learn before this topic?
Start with IPv4 vs IPv6, the topic just before it in Computer Networks.
How can I practice it?
Answer the mini quiz in the interactive lesson, then take the Computer Networks quiz.
Is Subnetting hard to learn?
It is a Beginner topic, so it works as an entry point. If the terms are new, read the explanation twice and try the visualizer before the quiz.
How long does it take to learn Subnetting?
Most learners can read the explanation and finish the interactive lesson in under an hour. Fluency comes from applying the idea, so plan a few short practice sessions with the quiz.
Which topics are related to Subnetting?
IPv4 vs IPv6, MAC Addresses, IP Addresses are closely connected. The full list is in the related topics section of this page.
What should I study after Subnetting?
Continue with MAC Addresses, the next topic in Computer Networks.

Related topics