BLOG-002

IP subnetting basics

IP Subnetting: In-Depth Explanation

PublishedAug 07, 2026 Read time3 min Views2 Category ccna, networking, ccnp, subnetting , Tags

Subnetting can seem complex at first, but with a step-by-step approach, it becomes much more manageable. Let’s break it down.


1. Understanding IP Addresses and Classes

IP Address Structure

Address Classes


2. Network vs. Host Bits

Subnet Mask

CIDR Notation


3. Subnetting Step by Step

Let’s walk through subnetting a /24 network (e.g., 192.168.1.0/24) into 4 subnets.

Step 1: How many subnets do you need?

Step 2: Borrow Host Bits

Step 3: New Subnet Mask

Step 4: Calculate Subnet Ranges

Subnet Number Network Address First Host Last Host Broadcast Address
1 192.168.1.0 192.168.1.1 192.168.1.62 192.168.1.63
2 192.168.1.64 192.168.1.65 192.168.1.126 192.168.1.127
3 192.168.1.128 192.168.1.129 192.168.1.190 192.168.1.191
4 192.168.1.192 192.168.1.193 192.168.1.254 192.168.1.255

4. General Subnetting Formulas

Example Block Sizes


5. Binary Math Trick

Third Subnet Calculation (binary):

192.168.1.128 (Subnet Starts)
192.168.1.191 (Broadcast = 128 + 63)
Hosts: 129-190

Write in binary if you’re stuck—borrowed bits help you spot boundaries!


6. Subnetting for Custom Host/Subnet Needs

Example:

You need at least 30 hosts per subnet on 192.168.10.0/24.


7. CIDR and VLSM


8. Practice Problem

Subnet 10.0.0.0/16 into 16 subnets.


Summary Table

Term Description
Subnet Mask Bitmask for dividing IP parts
Network Bits Number of bits in subnet mask
Host Bits Remaining bits for hosts
CIDR Notation Shorthand (e.g., /27 for 255.255.255.224)
Block Size Increment between subnets

Subnetting is about dividing, organizing, and optimizing address spaces. Practice binary math, use the above formulas, and you’ll become proficient!

If you want to practice with specific scenarios or want more advanced examples (like VLSM or real-world design), just let me know!

Share: Share on Facebook

// Related posts

// Comments (0)

No comments yet. Be the first.