Subnet Mask Cheat Sheet (2023) - Beginner To Advanced
Subnet Mask Cheat Sheet (2023) - Beginner To Advanced
In this Subnetting Cheat Sheet, you’ll learn all the basic to advanced subnetting concepts,
including CIDR notation, and IPv4 subnet masks ranging from XX.XX.XX.XX/0 to XX.XX.XX.XX/32,
IPv4 wildcard mask values, classification of IPv4 addresses from Class A to Class E, and more.
Additionally, In this Subnetting Mask Cheat Sheet, you will also explore private IP addresses,
special IP addresses, and bogon IP addresses, further enhancing your knowledge of network
addressing.
Table of Content
IPv4 Subnets (w/ Wildcard Mask Values)
Classification of IPV4 Address
Reserved IP Address
Private IPv4 Addresses
Special IPv4 Addresses
Bogon IPv4 Addresses
What is Subnetting?
Subnetting is the technique of dividing one big network into multiple small networks. Subnet
makes the network more efficient and easy to maintain. Subnets provide a shorter path to
network traffic without passing through unnecessary routers to reach their
destinations.Subnetting makes network routing much more efficient.
Let’s assume what happens when there is no subnetting in a Large network that has a million
devices connected to them and they have their unique IP Address. Now, what happens when we
send some information in that network from one device to another? In that case, our
data/information passes through most of the unnecessary routers or devices until they find a
destination device.
Now, think we divided the same network into smaller subnetworks. This helps make the routing
of data more efficient. Instead of searching through millions of devices to find the right one,
routers (check if the destination IP address falls within their range of subnet devices. If it does,
they route the packet to the appropriate device. If it doesn’t, they forward the packet to another
router) can use something called a subnet mask to determine which subnetwork a device belongs
to.
On the Other Hand, CIDR or Class Inter-Domain Routing was introduced in 1993 to replace
classful addressing. It allows the user to use VLSM or Variable Length Subnet Masks. So, there
is no such restriction of class in classless addressing. The wastage of IP addresses has been
improved after CIDR Addressing.
What is CIDR?
CIDR or Class Inter-Domain Routing allows the user to use VLSM or Variable Length Subnet
Masks in order to make IP address allocation and IP routing that allows more efficient use of IP
addresses.
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 2/17
9/24/24, 10:31 AM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
The first IP address of the Block must be evenly divisible by the size of the block. in simple
words, the least significant part should always start with zeroes in Host Id. Since all the least
significant bits of Host Id are zero, then we can use it as the Block Id part.
Example: Let’s check whether the IP address block from 192.168.1.64 to 192.168.1.127 is
a valid IP address block or not?
As a result, this block does not satisfy the criteria for a valid IP address block, and therefore,
it is not a valid IP block.
HTML Cheat Sheet CSS Cheat Sheet JS Cheat Sheet Bootstrap Cheat Sheet jQuery Cheat Sheet Angular Cheat Sheet SDE Sheet Fa
1. Network ID
2. Host ID.
For Example:- IP addresses belonging to class A are assigned to the networks that contain
many hosts.
The higher-order bit of the first octet in class A is always set to 0. The remaining 7 bits in
the first octet are used to determine network ID. The 24 bits of host ID are used to
determine the host in any network. The default subnet mask for Class A is 255.x.x.x.
Therefore, class A has a total of:
2^7-2= 126 network ID(Here 2 address is subtracted because 0.0.0.0 and 127.x.y.z are
special address. )
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 3/17
9/24/24, 10:31 AM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
IP addresses belonging to class A range from 1.x.x.x – 126.x.x.x
Step 1: First, find the IP address and the subnet mask. Ex:- 194.10.12.1(IP Address),
255.255.255.0 (Subnet Mask)
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 4/17
9/24/24, 10:31 AM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 5/17
9/24/24, 10:31 AM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
0.0.0.0-
Class A 128 255.0.0.0/8
127.255.255.255
128.0.0.0-
Class B 16,384 255.255.0.0/16
191.255.255.255
192.0.0.0-
Class C 2,097,152 255.255.255.0/24
223.255.255.255
224.0.0.0-
Class D n/a n/a
239.255.255.255
240.0.0.0-
Class E n/a n/a
255.255.255.255
And here’s a table of the decimal to binary conversions for subnet mask and wildcard octets:
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 6/17
9/24/24, 10:31 AM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
Reserved IP Address
Reserved IP addresses are a set of IP addresses that are not assigned to any specific device or
network.
Reserved IP Addresses
127.0.0.0/8 Loopback
192.0.2.0/24 TEST-NET-1
198.51.100.0/24 TEST-NET-2
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 7/17
9/24/24, 10:31 AM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 8/17
9/24/24, 10:31 AM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
Conserving IP addresses: Subnetting allows for the efficient use of limited IPv4 addresses by
dividing a larger network into smaller networks, conserving IP addresses and facilitating better
management.
Improving network performance: Subnetting reduces the size of broadcast domains, reducing
network congestion and improving performance by limiting the scope of broadcast messages.
Enhancing network security: Subnetting isolates different parts of a network, improving
security by preventing unauthorized access to sensitive data.
Simplifying network management: Subnetting makes it easier to identify and troubleshoot
problems by isolating issues to specific subnets, simplifying network management and
troubleshooting processes.
Solitary organization: Gadgets on the equivalent subnet can speak with one another
straightforwardly without going through a switch or other systems administration gadget.
Summary
Alright, wrapping it up, subnetting is pretty much a crucial skill for network admins and IT
professionals. It’s all about managing and dishing out IP addresses in networks like a pro. This
subnet cheat sheet? It’s your new best friend. It’s got everything you need to know about
subnetting, from getting your head around IP addresses and subnet masks to the lingo like CIDR
notation and VLSM. Just follow the guide, use the formulas and tables, and subnetting will be a
walk in the park. Keep at it, and you’ll be a subnetting master in no time, creating slick network
designs, using addresses like a boss, and boosting network performance.Limitations of
subnetting. Communication between one subnet to another subnet requires a router. A poorly
configured or fatally failed router can significantly impact your organization’s network.
To determine Usable host, You need to Subtract Subnet ID Address and BroadCast Address
from Total Addresses. For Example:-
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 9/17
9/24/24, 10:31 AM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
Reserved Ranges
A subnet mask of 255.255. 255.0 would give you lots of networks (2 16) and 254 hosts. A
subnet of 255.255. 0.0 would give you lots of hosts (approx 216) and 256 networks
Conclusion
Mastering subnetting is essential for network administrators and IT professionals alike. This cheat
sheet provides a handy reference for understanding and calculating subnet masks, ensuring
efficient network management and troubleshooting. By using this resource, you can streamline
your subnetting processes, optimize network performance, and enhance overall security.
Are you a student in Computer Science or an employed professional looking to take up the GATE
2025 Exam? Of course, you can get a good score in it but to get the best score our GATE CS/IT
2025 - Self-Paced Course is available on GeeksforGeeks to help you with its preparation. Get
comprehensive coverage of all topics of GATE, detailed explanations, and practice questions for
study. Study at your pace. Flexible and easy-to-follow modules. Do well in GATE to enhance the
prospects of your career. Enroll now and let your journey to success begin!
S shub… Follow 2
Next Article
Subnet Mask Cheat Sheet
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 10/17
9/24/24, 10:31 AM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
Similar Reads
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=oin_asr1 11/17