Subnet Mask Cheat Sheet (2023) - Beginner To Advanced
Subnet Mask Cheat Sheet (2023) - Beginner To Advanced
HTML Cheat Sheet CSS Cheat Sheet JS Cheat Sheet Bootstrap Cheat Sheet jQuery Cheat Sheet Angular Chea
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.
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 1/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
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.
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 2/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
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.
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=lbp 3/17
6/4/24, 1:12 PM 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.
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.
1. Network ID
2. Host ID.
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 4/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
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:
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=lbp 5/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
Here in the below charts, we will see pre-defined subnet masks, followed by
some explanations of what they mean.
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 6/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 7/17
6/4/24, 1:12 PM 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=lbp 8/17
6/4/24, 1:12 PM 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
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 9/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
Reserved IP Addresses
192.0.2.0/24 TEST-NET-1
198.51.100.0/24 TEST-NET-2
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 10/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 11/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 12/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
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.
Reserved Ranges
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 13/17
6/4/24, 1:12 PM 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
"GeeksforGeeks helped me ace the GATE exam! Whenever I had any doubt
regarding any topic, GFG always helped me and made my concepts quiet
clear." - Anshika Modi | AIR 21
Over 125,000+ students already trust us to be their GATE Exam guide. Join
them & let us help you in opening the GATE to top-tech IITs & NITs!
S shub… 2
Next Article
Subnet Mask Cheat Sheet
Similar Reads
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 14/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 15/17
6/4/24, 1:12 PM Subnet Mask Cheat Sheet (2023): Beginner to Advanced
Company Explore
About Us Hack-A-Thons
Legal GfG Weekly Contest
Careers DSA in JAVA/C++
In Media Master System Design
Contact Us Master CP
Advertise with us GeeksforGeeks Videos
GFG Corporate Solution Geeks Community
Placement Training Program
Languages DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL Top 100 DSA Interview Problems
R Language DSA Roadmap by Sandeep Jain
Android Tutorial All Cheat Sheets
Tutorials Archive
https://www.geeksforgeeks.org/subnet-cheat-sheet/?ref=lbp 17/17