Subnetting Fundamentals
What you'll learn: How to divide a single network into multiple smaller subnetworks by borrowing bits from the host portion of an IP address.
The Core Problem
By default, IP addresses divide into network and host portions based on their subnet mask. But what if you have one large network (say, 254 usable hosts) but need to organize devices into separate departments, floors, or security zones? You could waste address space by requesting multiple network blocks, or you could subnet — carve one network into many smaller ones.
How Subnetting Works
Subnetting "borrows" bits from the host portion and adds them to the network portion. Each borrowed bit doubles the number of subnets you can create, but halves the hosts per subnet.
Example: Start with 192.168.1.0/24 (256 addresses, 254 usable hosts).
- Original: 24 network bits, 8 host bits
- Borrow 2 host bits: Now you have 26 network bits, 6 host bits
- Result: 2² = 4 subnets, each with 2⁶ = 64 addresses (62 usable hosts)
The new subnet mask becomes /26 or 255.255.255.192.
The Trade-off
Think of it like subdividing a large office building into smaller suites. You get more organizational flexibility (more subnets), but each suite holds fewer people (fewer hosts per subnet). You're not creating new addresses — just redistributing existing ones.
Calculating Subnet Boundaries
Each subnet occupies a contiguous block of addresses. With /26, subnets start at:
192.168.1.0/26(hosts .1–.62)192.168.1.64/26(hosts .65–.126)192.168.1.128/26(hosts .129–.190)192.168.1.192/26(hosts .193–.254)
Key Takeaway: Subnetting divides a network into smaller, more manageable pieces by borrowing host bits to create additional network bits, giving you more subnets at the cost of fewer hosts per subnet.