What is Subnetting

Introduction:

Just as every home needs a street address for mail delivery, every device on a network, including your laptop, phone, printer, and server, needs a unique address to connect. An IP address accomplishes this. However, maintaining every device on a single, enormous address space becomes ineffective, sluggish, and challenging to secure as networks get bigger.

Subnetting is useful in this situation. The process of breaking up a big network into smaller, easier-to-manage sub-networks is known as subnetting. From home lab enthusiasts to corporate network experts, it’s one of the most basic networking abilities.

We’ll explain what subnetting is, why it’s important, and how to implement it in this guide, complete with clear examples.

1. Brief Overview of IP Addresses

This is how an IPv4 address appears:

192.168.1.10

It consists of 32 bits divided into four octets, or 8-bit segments, with dots between each. The range of each octet is 0 to 255.

There are two components to every IP address:

• Network section: indicates the network the device is a part of.

• The host section, which identifies the particular networked device

Where the network section ends and the host portion starts is determined by the subnet mask. A typical illustration

IP address: 192.168.1.10

255.255.255.0 is the subnet mask.

In this case, 255.255.255.0 indicates that the network is identified by the first three octets (192.168.1), while the host is identified by the final octet (.10).

2. So, what is subnetting exactly?

The process of dividing a single, large network into several smaller networks is known as subnetting. You split that area into logical pieces, each with a distinct range of useable addresses, rather than packing thousands of devices onto a single network.

Consider it as an apartment complex:

• The street address of the building is similar to your primary network (e.g., 192.168.0.0).

• Every apartment building has a smaller set of addresses (mailboxes) within it, much like a subnet.

By “borrowing” bits from the host section of an IP address and using them to generate extra network divisions, subnetting is accomplished.

3. Why Is Subnetting Necessary?

a) Effective IP Address Utilization

Organizations would waste enormous blocks of IP addresses if they didn’t use subnetting. With subnetting, you can only assign as many addresses as a segment truly requires.

b) Enhanced Network Efficiency

Broadcast traffic is lower on smaller networks. Congestion is lessened when a device broadcasts because it only reaches devices inside the same subnet, not the entire company.

c) Enhanced Safety

Firewalls and access control lists can be used to separate subnets from one another. To prevent a breach in one from immediately exposing the others, a business can, for instance, divide its servers, employee devices, and guest Wi-Fi into separate subnets.

d) decrease in network congestion

By isolating traffic within pertinent subnets, superfluous data is kept out of areas of the network that don’t require it.

4. Comprehending CIDR Notation

The earlier class-based scheme (Class A, B, C) is replaced by CIDR (Classless Inter-Domain Routing) notation in modern subnetting. This is how CIDR notation appears:

192.168.1.0/24

The /24 indicates that the network portion of a 32-bit address consists of the first 24 bits, with the remaining 8 bits designated for hosts.

CIDRSubnet MaskHost BitsUsable Hosts
/24255.255.255.08254
/25255.255.255.1287126
/26255.255.255.192662
/27255.255.255.224530
/28255.255.255.240414
/29255.255.255.24836
/30255.255.255.25222

Note: 2^(host bits) − 2 = usable hosts. We deduct two because each subnet sets aside one address for the broadcast address (used to convey data to all devices on that subnet) and one for the network address (which identifies the subnet itself).

5. A Step-by-Step Example of How Subnetting Actually Operates

Assume you have to split the network 192.168.10.0/24 into four smaller subnets.

First, figure out how many bits you need to borrow.

You need enough bits to represent four groups in order to build four subnets. You take two bits from the host part since 2² = 4.

Step 2: Determine the updated subnet mask

Original: /24 → Borrow 2 bits → New mask: /26 /26 = 255.255.255.192

Step 3: Establish the block size

Every subnet with a /26 has:

• Each subnet has a total of 64 addresses (2^(32-26) = 2^6).

• There are 62 valid host addresses (64–2).

Step 4: Enumerate the subnets

Subnet              Network Address        Usable Range Broadcast Address

Subnet 1          192.168.10.0/26         192.168.10.1 – 192.168.10.62              192.168.10.63

Subnet 2          192.168.10.64/26      192.168.10.65 – 192.168.10.126          192.168.10.127

Subnet 3          192.168.10.128/26    192.168.10.129 – 192.168.10.190          192.168.10.191

Subnet 4          192.168.10.192/26    192.168.10.193 – 192.168.10.254          192.168.10.255

Despite coming from the same original /24 block, each of these four subnets can now be assigned to a distinct department, level, or purpose.

6. Important Terms to Understand

• Network Address: This is the first address in a subnet; it cannot be allocated to a device; it only identifies the subnet.

• Broadcast Address: Used to transmit data to all devices inside a subnet, this address is the final one in the subnet.

• Usable Host Range: The addresses that devices can actually be assigned between the network and broadcast address.

• Subnet Mask: Indicates which part of the IP address belongs to the host and which to the network.

• CIDR Notation: Shorthand for the subnet mask, such as /24 or /26.

• Variable Length Subnet Masking, or VLSM, is a technique that permits subnets of varying sizes inside the same network, saving addresses on segments that require fewer hosts.

7. Subnetting Cheat Sheet

Bits BorrowedNew CIDR (from /24)Subnets CreatedHosts per Subnet
1/252126
2/26462
3/27830
4/281614
5/29326
6/30642

Fast formulas:

• 2^(bits borrowed) is the number of subnets.

• 2^(remaining host bits) – 2 is the number of usable hosts per subnet.

8. Practical Applications

• Business networks: dividing departments (IT, HR, and finance) into separate subnets for traffic management and security.

• Data centers: separating the web, application, and database server layers from one another.

• ISPs: Effectively distributing address blocks to thousands of clients.

• Home networks: To lower the chance of an IoT device being hacked, segregate a subnet for IoT devices (such as smart TVs and cameras) from personal computers.

• Cloud environments (AWS, Azure, GCP): Virtual Private Clouds (VPCs) are typically separated into private and public-facing subnets.

 Conclusion:

At its most basic, subnetting is just the process of dividing a big network into smaller, more logical, and effective segments. It enhances security, boosts speed, and makes networks more simpler to expand and operate.

Whether you’re managing a home lab, preparing for a networking certification like CompTIA Network+ or Cisco CCNA, or designing infrastructure for a developing business, subnetting becomes a simple and genuinely useful skill once you’re comfortable with binary math, CIDR notation, and the fundamental formulas mentioned above.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top