Subnetting Basics: A Complete Beginner’s Guide in 2025 in simple steps;
Introduction
In the world of networking, subnetting
plays a crucial role in managing IP addresses efficiently. Whether you're an
aspiring network engineer, IT professional, or just curious about networking,
understanding subnetting is essential. In this guide, we’ll break down
subnetting step by step.
Another important blog about network security,https://techbyrathore.blogspot.com/2025/03/network-security-basics-guide.html
Basics of netwoking you should know;
https://techbyrathore.blogspot.com/2025/02/how-data-travels-in-a-network.html
What is Subnetting?
Subnetting is the process of
dividing a larger IP network into smaller, more manageable sub-networks
(subnets). It improves network performance, enhances security, and
optimizes the use of IP addresses.
Benefits
of Subnetting:
- Efficient use of IP addresses
- Reduces network congestion
- Improves network security
- Helps in better network management
Understanding IP Address and Subnet Mas
What
is an IP Address?
Another important topic in networking NAT translation beginer to advance you should know;
https://techbyrathore.blogspot.com/2025/03/network-address-translation-nat-complete-guide.html
An IP address is a unique
identifier assigned to a device in a network. It follows a numerical format,
such as:
192.168.1.1
There are two types of IP addresses:
- IPv4 (32-bit)
- Example: 192.168.1.1
- IPv6 (128-bit)
- Example: 2001:db8::ff00:42:8329
- Complere ip addressing blog https://techbyrathore.blogspot.com/2025/03/ip-address-types-and-importance.html
What is a Subnet Mask
A Subnet Mask defines which
portion of an IP address represents the network and which portion
represents the host.
Example:
- IP Address:
192.168.1.1
- Subnet Mask:
255.255.255.0
In this case, 255.255.255.0 means the first three octets are the network
portion, and the last octet is for hosts.
Classes
of IP Address and Subnetting
IP addresses are divided into five
classes (A, B, C, D, E), but A, B, and C are commonly used in
networking.
|
Class |
First
Octet Range |
Default
Subnet Mask |
Number
of Hosts |
|
A |
1 - 126 |
255.0.0.0 |
16,777,214 |
|
B |
128 - 191 |
255.255.0.0 |
65,534 |
|
C |
192 - 223 |
255.255.255.0 |
254 |
Example of Class C Subnetting:
- Network Address:
192.168.1.0
- Subnet Mask:
255.255.255.0
- Usable Hosts:
254 (192.168.1.1 - 192.168.1.254)
How
to Calculate Subnets
Subnetting is done using binary
mathematics to break an IP address into smaller networks.
Subnetting
Formula:
Number
of Subnets = 2^n (where n = borrowed
bits)
Number
of Hosts = 2^h - 2 (where h = host bits, subtracting 2 for network and
broadcast)
Example:
Subnetting a Class C Network
Suppose we need 4 subnets in
a Class C network (192.168.1.0/24):
- Convert /24 to binary: 11111111.11111111.11111111.00000000
- Borrow 2 bits from the host portion:
- New Subnet Mask: /26 (255.255.255.192)
- Subnets Created: 4
- Hosts per Subnet: 62
CIDR
and VLSM: Advanced Subnetting Techniques
What
is CIDR?
CIDR (Classless Inter-Domain
Routing) allows for flexible subnetting by
removing fixed subnet masks. It is represented using a slash notation (/xx).
Routing is another important concept in networking you should knowl
https://techbyrathore.blogspot.com/2025/03/routing-basics-guide.html
Example:
- 192.168.1.0/24
→ 256 hosts
- 192.168.1.0/26 → 62 hosts
What
is VLSM?
VLSM (Variable Length Subnet
Masking) allows different subnet masks
within a network to allocate IPs efficiently.
Example:
- A subnet with 50 hosts → /26
- A subnet with 10 hosts → /28
Practical
Example of Subnetting
Let’s say you have an IP range:
192.168.1.0/24 and need three subnets for different departments:
|
Department |
Required
Hosts |
Subnet
Mask |
Network
Address |
|
IT |
50 |
/26 (255.255.255.192) |
192.168.1.0 |
|
HR |
20 |
/27 (255.255.255.224) |
192.168.1.64 |
|
Sales |
10 |
/28 (255.255.255.240) |
192.168.1.96 |
This way, each department gets
only the required IPs without wasting addresses.
networking devices concepthttps://techbyrathore.blogspot.com/2025/03/types-of-network-devices-functions.html
Benefits
of Subnetting in Networking
✅ Better IP Address Management
✅ Enhanced Network Security ✅ Reduced Network Congestion ✅ Efficient
Routing
Conclusion
Subnetting is a powerful
networking concept that ensures efficient use of IP addresses, improves
network security, and optimizes performance. By understanding subnet masks,
CIDR, and VLSM, you can design scalable and secure networks.
https://en.wikipedia.org/wiki/Subnet
https://www.geeksforgeeks.org/introduction-to-subnetting/
common computer problems and how to fix them
https://techbyrathore.blogspot.com/2025/03/common-computer-problems-fix.html




0 Comments