CIDR Subnet Mask Cheat Sheet

We know it can be pain trying to remember which CIDR notation to use or what subnet mask to enter for a specific subnet. That’s why we created this awesome looking IPv4 CIDR cheat sheet for you to use.

Feel free to print it out and hang it up or share a link to it with your colleagues and peers.

Need a better IPAM? Check out ManageEngine OpUtils to efficiently discover, track and allocate IP addresses from an easy-to-use, centralized console.

Free CIDR Subnet Mask Cheat Sheet

Free cheat sheet for IPv4 CIDR notation and subnet masks.

Click on the subnet mask chart to view the printable, searchable PDF version. Scroll down below for the CIDR subnet mask tables.

Related: Common Ports Cheat Sheet

IPv4 Subnets

An IPv4 subnet is a division of the IPv4 address space used to create smaller, interconnected networks within a larger network. It involves dividing the available IP addresses into subnetworks or subnets, each with its own unique range of addresses.

Subnetting allows for efficient allocation of IP addresses, improves network scalability and management, and enables logical segmentation of networks. Subnets are defined by combining an IP address with a subnet mask, which determines the network and host portions of the address.

CIDRSUBNET MASKADDRESSESWILDCARD
/00.0.0.04294967296255.255.255.255
/1128.0.0.02147483648127.255.255.255
/2192.0.0.0107374182463.255.255.255
/3224.0.0.053687091231.255.255.255
/4240.0.0.026843545615.255.255.255
/5248.0.0.01342177287.255.255.255
/6252.0.0.0671088643.255.255.255
/7254.0.0.0335544321.255.255.255
/8255.0.0.0167772160.255.255.255
/9255.128.0.083886080.127.255.255
/10255.192.0.041943040.63.255.255
/11255.224.0.020971520.31.255.255
/12255.240.0.010485760.15.255.255
/13255.248.0.05242880.7.255.255
/14255.252.0.02621440.3.255.255
/15255.254.0.01310720.1.255.255
/16255.255.0.0655360.0.255.255
/17255.255.128.0327680.0.127.255
/18255.255.192.0163840.0.63.255
/19255.255.224.081920.0.31.255
/20255.255.240.040960.0.15.255
/21255.255.248.020480.0.7.255
/22255.255.252.010240.0.3.255
/23255.255.254.05120.0.1.255
/24255.255.255.02560.0.0.255
/25255.255.255.1281280.0.0.127
/26255.255.255.192640.0.0.63
/27255.255.255.224320.0.0.31
/28255.255.255.240160.0.0.15
/29255.255.255.24880.0.0.7
/30255.255.255.25240.0.0.3
/31255.255.255.25420.0.0.1
/32255.255.255.25510.0.0.0

See also RFC1878

Classful Ranges

A classful range refers to a predefined range of IP addresses based on the original classful addressing scheme. The classful addressing scheme divides the IPv4 address space into five classes: A, B, C, D, and E. Each class has a specific range of IP addresses and a default mask associated with it. Classful ranges are characterized by fixed network and host portions based on the class with Class A having the largest network portion and Class C having the smallest.

Classful addressing has been largely replaced by classless inter-domain routing (CIDR), which allows for more flexible allocation of IP addresses by using variable-length subnet masks (VLSM).

Class NameIP Range
Class A0.0.0.0 – 127.255.255.255
Class B128.0.0.0 – 191.255.255.255
Class C192.0.0.0 – 223.255.255.255
Class D224.0.0.0 – 239.255.255.255
Class E240.0.0.0 – 254.255.255.254

Reserved Ranges

Reserved ranges are specific blocks of IP addresses that are designated for special purposes and are not available for general allocation or public use. These reserved ranges include private IP address ranges, loopback addresses, link-local addresses, and multicast addresses.

Range NameIP Range
RFC 191810.0.0.0 – 10.255.255.255
Localhost127.0.0.0 – 127.255.255.255
APIPA/BONJOUR169.254.0.0 – 169.254.255.255
RFC 1918172.16.0.0 – 172.31.255.255
RFC 1918192.168.0.0 – 192.168.255.255

See also RFC1918

Bogon IPv4 Addresses and Ranges

Bogon addresses are IP addresses or address blocks that are invalid, unallocated, or not globally routable. Bogon addresses include IP addresses that should not appear on the internet and are commonly used in spoofing or malicious activities. These addresses may include reserved IP ranges, multicast addresses, or addresses that have not been assigned by the Internet Assigned Numbers Authority (IANA) or regional Internet registries.

NetblockDescription
0.0.0.0/8“This” network
10.0.0.0/8Private-use networks
100.64.0.0/10Carrier-grade NAT
127.0.0.0/8Loopback
127.0.53.53Name collision occurrence
169.254.0.0/16Link local
172.16.0.0/12Private-use networks
192.0.0.0/24IETF protocol assignments
192.0.2.0/24TEST-NET-1
192.168.0.0/16Private-use networks
198.18.0.0/15Network interconnect device benchmark testing
198.51.100.0/24TEST-NET-2
203.0.113.0/24TEST-NET-3
224.0.0.0/4Multicast
240.0.0.0/4Reserved for future use
255.255.255.255/32Limited broadcast

Decimal to Binary Table

Converting IPv4 addresses from decimal to binary may seem like a geeky task, but it has practical benefits in networking. By doing the conversion, you gain a deeper understanding of how IP addresses are structured. It helps with subnetting, routing, troubleshooting, and security. You can identify the network and host portions, determine subnet masks, pinpoint misconfigurations, analyze network traffic, and set up precise filtering.

DecBinaryDecBinaryDecBinaryDecBinary
006410000001281000000019211000000
116510000011291000000119311000001
2106610000101301000001019411000010
3116710000111311000001119511000011
41006810001001321000010019611000100
51016910001011331000010119711000101
61107010001101341000011019811000110
71117110001111351000011119911000111
810007210010001361000100020011001000
910017310010011371000100120111001001
1010107410010101381000101020211001010
1110117510010111391000101120311001011
1211007610011001401000110020411001100
1311017710011011411000110120511001101
1411107810011101421000111020611001110
1511117910011111431000111120711001111
16100008010100001441001000020811010000
17100018110100011451001000120911010001
18100108210100101461001001021011010010
19100118310100111471001001121111010011
20101008410101001481001010021211010100
21101018510101011491001010121311010101
22101108610101101501001011021411010110
23101118710101111511001011121511010111
24110008810110001521001100021611011000
25110018910110011531001100121711011001
26110109010110101541001101021811011010
27110119110110111551001101121911011011
28111009210111001561001110022011011100
29111019310111011571001110122111011101
30111109410111101581001111022211011110
31111119510111111591001111122311011111
321000009611000001601010000022411100000
331000019711000011611010000122511100001
341000109811000101621010001022611100010
351000119911000111631010001122711100011
3610010010011001001641010010022811100100
3710010110111001011651010010122911100101
3810011010211001101661010011023011100110
3910011110311001111671010011123111100111
4010100010411010001681010100023211101000
4110100110511010011691010100123311101001
4210101010611010101701010101023411101010
4310101110711010111711010101123511101011
4410110010811011001721010110023611101100
4510110110911011011731010110123711101101
4610111011011011101741010111023811101110
4710111111111011111751010111123911101111
4811000011211100001761011000024011110000
4911000111311100011771011000124111110001
5011001011411100101781011001024211110010
5111001111511100111791011001124311110011
5211010011611101001801011010024411110100
5311010111711101011811011010124511110101
5411011011811101101821011011024611110110
5511011111911101111831011011124711110111
5611100012011110001841011100024811111000
5711100112111110011851011100124911111001
5811101012211110101861011101025011111010
5911101112311110111871011101125111111011
6011110012411111001881011110025211111100
6111110112511111011891011110125311111101
6211111012611111101901011111025411111110
6311111112711111111911011111125511111111

Sub-Class C Blocks

A sub-class C block is a range of IP addresses that fall within the Class C address space. Class C addresses are identified by having the first three bits of the first octet set to “110,” which means the first octet ranges from 192 to 223. Each Class C network provides up to 256 addresses, with 254 available for host assignments. A sub-class C block is a subset of this address space, typically denoted by a specific network prefix length (CIDR notation) that allows for further subdivision and allocation of IP addresses within a Class C network.

/25 — 2 Subnets — 126 Hosts/Subnet

Network #IP RangeBroadcast
0.1-.1260.127
0.128.129-.2540.255

/26 — 4 Subnets — 62 Hosts/Subnet

Network #IP RangeBroadcast
0.1-.620.63
0.64.65-.1260.127
0.128.129-.1900.191
0.192.193-.2540.255

/27 — 8 Subnets — 30 Hosts/Subnet

Network #IP RangeBroadcast
0.1-.300.31
0.32.33-.620.63
0.64.65-.940.95
0.96.97-.1260.127
0.128.129-.1580.159
0.16.161-.1900.191
0.192.193-.2220.223
0.224.225-.2540.255

/28 — 16 Subnets — 14 Hosts/Subnet

Network #IP RangeBroadcast
0.1-.140.15
0.16.17-.300.31
0.32.33-.460.47
0.48.49-.620.63
0.64.65-.780.79
0.8.81-.940.95
0.96.97-.1100.111
0.112.113-.1260.127
0.128.129-.1420.143
0.144.145-.1580.159
0.16.161-.1740.175
0.176.177-.1900.191
0.192.193-.2060.207
0.208.209-.2220.223
0.224.225-.2380.239
0.24.241-.2540.255

/29 — 32 Subnets — 6 Hosts/Subnet

Network #IP RangeBroadcast
0.1-.60.7
0.8.9-.140.15
0.16.17-.220.23
0.24.25-.300.31
0.32.33-.380.39
0.4.41-.460.47
0.48.49-.540.55
0.56.57-.620.63
0.64.65-.700.71
0.72.73-.780.79
0.8.81-.860.87
0.88.89-.940.95
0.96.97-.1020.103
0.104.105-.1100.111
0.112.113-.1180.119
0.12.121-.1260.127
0.128.129-.1340.135
0.136.137-.1420.143
0.144.145-.1500.151
0.152.153-.1580.159
0.16.161-.1660.167
0.168.169-.1740.175
0.176.177-.1820.183
0.184.185-.1900.191
0.192.193-.1980.199
0.2.201-.2060.207
0.208.209-.2140.215
0.216.217-.2220.223
0.224.225-.2300.231
0.232.233-.2380.239
0.24.241-.2460.247
0.248.249-.2540.255

/30 — 64 Subnets — 2 Hosts/Subnet

Network #IP RangeBroadcast
0.1-.20.3
0.4.5-.60.7
0.8.9-.100.11
0.12.13-.140.15
0.16.17-.180.19
0.2.21-.220.23
0.24.25-.260.27
0.28.29-.300.31
0.32.33-.340.35
0.36.37-.380.39
0.4.41-.420.43
0.44.45-.460.47
0.48.49-.500.51
0.52.53-.540.55
0.56.57-.580.59
0.6.61-.620.63
0.64.65-.660.67
0.68.69-.700.71
0.72.73-.740.75
0.76.77-.780.79
0.8.81-.820.83
0.84.85-.860.87
0.88.89-.900.91
0.92.93-.940.95
0.96.97-.980.99
0.1.101-.1020.103
0.104.105-.1060.107
0.108.109-.1100.111
0.112.113-.1140.115
0.116.117-.1180.119
0.12.121-.1220.123
0.124.125-.1260.127
0.128.129-.1300.131
0.132.133-.1340.135
0.136.137-.1380.139
0.14.141-.1420.143
0.144.145-.1460.147
0.148.149-.1500.151
0.152.153-.1540.155
0.156.157-.1580.159
0.16.161-.1620.163
0.164.165-.1660.167
0.168.169-.1700.171
0.172.173-.1740.175
0.176.177-.1780.179
0.18.181-.1820.183
0.184.185-.1860.187
0.188.189-.1900.191
0.192.193-.1940.195
0.196.197-.1980.199
0.2.201-.2020.203
0.204.205-.2060.207
0.208.209-.2100.211
0.212.213-.2140.215
0.216.217-.2180.219
0.22.221-.2220.223
0.224.225-.2260.227
0.228.229-.2300.231
0.232.233-.2340.235
0.236.237-.2380.239
0.24.241-.2420.243
0.244.245-.2460.247
0.248.249-.2500.251
0.252.253-.2540.255

Recommended Tool: ManageEngine OpManager

  • Multi-vendor Network Monitoring
  • Simple Installation & Setup
  • Intuitive UI
  • Complete Visibility
  • Intelligent Detections
  • Easy Resolutions

Leave a Reply

Your email address will not be published. Required fields are marked *