262+ Tutorials — Subscribe Free on YouTube!
E
Cloud & Cybersecurity Blog by Bhanu Prakash
Home » Beginner's Guide » What Is Subnetting? The Shocking Complete Beginner’s Guide (2026)
Beginner's Guide

What Is Subnetting? The Shocking Complete Beginner’s Guide (2026)

👤 Bhanu Prakash 📅 February 25, 2026 ⏱ 10 min read

Simply put, subnetting means dividing a large IP network into smaller sub-networks called subnets. As a result, it improves network performance, enhances security, and helps manage IP addresses. In fact, this is a key skill tested in CCNA, CompTIA Network+, and other networking certs.

what is subnetting explained with network diagram for beginners

What Is Subnetting and Why Does It Matter?

In essence, this process involves splitting one large network into smaller, more smaller pieces called subnets. Generally, Think of it this way — a company with 500 employees doesn’t put everyone in one giant room. Instead, it naturally creates departments. Similarly, subnetting does the same thing for IP networks.

Also, every device on a network gets an IP address. Indeed, without this division, all devices share the same broadcast domain. As a result, every message reaches every device, even when it shouldn’t. As a result, performance drops and security weakens. Because of this, this technique solves both problems at once.

Key Concept: A subnet (short for “subnetwork”) is a logical division of an IP network. It reduces broadcast traffic, improves security, and makes network management far easier.

Above all, grasp what is subnetting matters for your career. In fact, network engineers use this skill every single day. More importantly, it appears on the CCNA 200-301 exam as one of the most heavily tested topics. Beyond exams, real-world cloud environments like Azure Virtual Networks and AWS VPCs also rely on subnet division to isolate workloads.

IP Addresses and Subnetting — The Basics You Need First

Naturally, Before you can learn this concept, you need to understand IP addresses. in detail, an IPv4 address is a 32-bit number written as four octets separated by dots. For example, 192.168.1.10 is a common private IP address.

in detail, each octet contains 8 bits, and each bit is either a 0 or a 1. As a result, each octet holds a value between 0 and 255. In essence, an IP address has two parts. The network portion identifies the network. The host portion identifies the specific device.

IP Address Breakdown

IP Address:   192.168.1.Plus, 10
Binary:       11000000.10101000.00000001.00001010

Network part: 192.168.1    (first 3 octets)
Host part:    .Then, 10          (last octet)

Historically, IP addresses fall into classes. Class A, B, and C are the most common. Notably, Class A supports millions of hosts per network. Meanwhile, Class C supports only 254. However, classful networking wastes addresses. Consequently, this is where subnet division steps in to use IP space more efficiently.

Keep in mind that modern networks use CIDR (Classless Inter-Domain Routing) instead of rigid classes. In addition, CIDR lets you define custom subnet sizes using a prefix like /24 or /26. Therefore, you’ll see this notation everywhere in cloud platforms and the CCNA exam. Therefore, grasp CIDR is essential before you start any subnet exercise.

What Is Subnetting With Subnet Masks?

A subnet mask tells your device which part of an IP address belongs to the network. In contrast, the rest belongs to the host. In other words, think of it as a filter. in detail, the mask uses 1s for the network bits and 0s for the host bits.

For example, the subnet mask 255.255.255.0 means the first 24 bits identify the network. Meanwhile, the remaining 8 bits identify hosts. In CIDR notation, you’d write this as /24. This is one of the first subnet concepts every beginner should master.

Key Concept: The subnet mask doesn’t travel across the internet. Instead, it stays local. It helps each device check if a destination is on the same network or needs to be routed elsewhere.

Here’s a quick reference for common subnet masks that every beginner should learn:

CIDR Subnet Mask Usable Hosts Common Use
/24 255.255.255.0 254 Small office LAN
/25 255.255.255.128 126 Medium department
/26 255.255.255.192 62 Small team or VLAN
/27 255.255.255.224 30 Server subnet
/28 255.255.255.240 14 Point-to-point links
/30 255.255.255.252 2 Router-to-router link

In other words, notice how each step “borrows” one more bit from the host portion. That doubles the number of subnets but halves the number of hosts per subnet. in short, this trade-off sits at the heart of every subnetting decision.

How Subnetting Calculations Work — Real Examples

Let’s walk through a practical subnet calculation problem. Of course, Your company has the network 192.168.10.0/24 and needs four separate subnets for four departments.

1
Find how many bits to borrow.

You need 4 subnets. Also, Since 2² = 4, you borrow 2 bits from the host portion. As a result, your new prefix becomes /26 (24 + 2 = 26).

2
Calculate the new subnet mask.

As a result, a /26 gives you 255.255.255.192. To find the block size, subtract 192 from 256. So, that means each subnet jumps by 64.

3
List your subnets.

So, starting from 0 and adding 64 each time:

Calculation Result

1st Range: 192.168.10.0/26     Hosts: .1 to .62     Broadcast: .63
2nd Range: 192.168.10.64/26    Hosts: .65 to .126   Broadcast: .127
3rd Range: 192.168.10.128/26   Hosts: .129 to .190  Broadcast: .191
4th Range: 192.168.10.192/26   Hosts: .193 to .254  Broadcast: .255

Therefore, each subnet now supports 62 usable host addresses. The first address in each range is the network address. The last is the broadcast address. Neither can be assigned to a device. Because of this rule, the usable count is always 2ⁿ − 2, where n equals the number of host bits.

Exam Alert: On the CCNA exam, you’ll face timed subnetting questions. Practice calculating the block size. That means 256 minus the mask value. Keep at it until it becomes automatic. Speed matters. You get roughly one minute per question.

In practice, cloud platforms like Azure use subnet segmentation inside Virtual Networks to separate web servers from databases. Similarly, AWS VPCs rely on subnets to control traffic flow between public and private resources. This means subnetting isn’t limited to traditional LANs. It’s a core cloud skill too.

subnetting calculation example for beginners with IP address breakdown

Common Subnetting Mistakes Beginners Make

However, even after grasp the concept, beginners make predictable subnet-related errors. Clearly, Here are the most frequent ones — and how to avoid them.

Forgetting to subtract 2 from host count

To clarify, every subnet loses 2 addresses — one for the network ID and one for broadcast. A /26 has 64 addresses but only 62 usable hosts.

Confusing subnet mask with wildcard mask

A subnet mask of 255.255.255.192 has a wildcard of 0.0.0.63. In fact, Also, access control lists (ACLs) on Cisco routers use wildcard masks — not subnet masks.

Overlapping subnets when planning

Similarly, if Subnet 1 ends at .63 and Subnet 2 starts at .60, you’ve created an overlap. Indeed, always verify that one subnet’s broadcast address comes right before the next subnet’s network address.

Using the wrong base network

Likewise, starting your calculation from the wrong network address leads to every subsequent subnet being incorrect. Always confirm the original network ID first.

Skipping binary practice

Still, many beginners try shortcuts without grasp binary math. When shortcuts fail on tricky exam questions, binary skills save you. Practice converting octets to binary daily.

Where Subnetting Shows Up in the Real World

Notably, subnetting isn’t just an exam topic — it powers every modern network you interact with. Here’s where you’ll encounter subnetting in real jobs.

1
Corporate LANs:

Large companies divide their network by department. For example, the accounting team gets one subnet while the development team gets another. This separation limits broadcast traffic and adds a layer of security between groups.

2
Cloud environments:

In addition, both AWS and Azure require you to define subnets when setting up virtual networks. For instance, an Azure VNet might use a /16 address space split into /24 subnets for web, app, and database tiers. That’s why grasp what is subnetting becomes essential the moment you enter cloud engineering.

3
Home networks:

Interestingly, even your home router uses a default subnet (usually 192.168.1.0/24). When you connect your phone, laptop, and smart TV, they all receive addresses within that subnet. In practice, the router’s DHCP server assigns them on its own.

4
Data centers:

Moreover, network architects use subnetting to split large address blocks into isolated zones for different clients or services. Proper subnetting here directly affects performance, security, and compliance. On the other hand, poor subnetting can cause IP conflicts and routing failures that take hours to debug.

Practice Tips for CCNA Aspirants

Above all, getting good at subnetting requires repetition — there’s no way around it. However, smart practice beats random practice every time. Here are five proven methods that actually work.

1
Master the powers of 2.

Naturally, Memorize this sequence: 2, 4, 8, 16, 32, 64, 128, 256. Every subnetting calculation uses these numbers. Once they’re automatic, your speed doubles.

2
Use the “256 minus mask” shortcut.

Plus, to find the block size, subtract the interesting octet from 256. For a /26 mask (255.255.255.192), the block size is 256 − 192 = 64. In other words, this shortcut works for every subnetting scenario you’ll face.

3
Practice with Cisco Packet Tracer.

Download Cisco Packet Tracer for free. Then build a small network, assign subnets, and test connectivity using the ping command. Hands-on practice builds confidence faster than reading alone.

4
Take timed quizzes daily.

Websites like SubnettingPractice.com offer random subnetting problems you can solve against a timer. Aim for under 30 seconds per problem before your exam.

5
Draw it out on paper.

Meanwhile, for every practice problem, sketch the network, label each subnet range, and identify usable hosts. As a result, visual learners retain subnet boundaries much better through diagrams than through mental math alone.

At the same time, don’t ignore IPv6 subnetting. In particular, the CCNA v1.1 exam now covers IPv6 addressing. While IPv6 subnetting follows a different structure (using /64 prefixes), the core concept of dividing networks into smaller parts remains identical. Therefore, learning IPv4 subnetting first gives you the foundation to handle IPv6 with ease.

What to Learn After You Master Subnetting

Of course, Once subnetting clicks, several networking topics become much easier. For example, routing protocols like OSPF rely on subnet information to build routing tables. VLANs use subnets to segment traffic at Layer 2. Also, firewall rules — including Azure Network Security Groups — filter traffic based on subnet ranges.

Beyond that, grasp subnetting makes cloud computing concepts far more approachable. AWS or Azure may ask you to define a CIDR block for a VPC or VNet. As a result, you’ll now know how many hosts each subnet can support. To be clear, subnetting is a skill that follows you from the CCNA exam all the way to senior cloud architect roles.

After that, for CCNA prep in particular, move from subnetting into these topics next: VLAN setup, static and dynamic routing (OSPF), ACLs, and NAT. Also, Each one builds on the subnetting knowledge you’ve already gained. This is where your networking career really begins.

Frequently Asked Questions

What is subnetting and why is it important?

In summary, Subnetting involves dividing a large network into smaller, more manageable sub-networks called subnets. As a result, it improves network performance, enhances security through isolation, and makes efficient use of available IP addresses.

How do subnet masks work?

in short, a subnet mask find outs which portion of an IP address identifies the network and which portion identifies the host. For example, a /24 mask (255.255.255.0) means the first 24 bits are the network portion, leaving 8 bits for 254 usable host addresses.

What is CIDR notation in subnetting?

In essence, CIDR stands for Classless Inter-Domain Routing. in detail, this notation shows an IP address followed by a slash and the number of network bits, such as 192.168.1.0/24. It replaced the older classful addressing system and allows more flexible subnet sizing.

Is subnetting on the CCNA exam?

Without a doubt, subnetting is one of the most heavily tested topics on the CCNA exam. You must be able to quickly calculate subnet ranges, identify network and broadcast addresses, and find out the number of usable hosts per subnet.

What is the easiest way to learn subnetting?

Generally speaking, the easiest way is to memorize the powers of 2 and practice with the “magic number” method. Start with /24 subnets, then work your way to more complex scenarios, and practice daily until calculations become second nature.

Want to Learn More About Networking?

Explore our networking articles. Bhanu Prakash accordingly breaks down topics like networking and CCNA-level concepts in a clear, beginner-friendly way

Explore Our Networking Articles

Official Resources

Also Read on ElevateWithB

Share: WhatsApp LinkedIn
Bhanu Prakash
Bhanu Prakash

IT Trainer with 5+ years experience. Teaching CEH, AWS, Azure, Networking & DevOps.