PentOpsVault @syztem4our666

PentOpsVault
Networks

Subnets

Networking

Subnets Mask Cheat Sheet

Subnets Masks and Address Details

CIDRSubnet Mask# of AddressesWildcard MaskBinary Subnet Mask
/32255.255.255.25510.0.0.011111111.11111111.11111111.11111111
/31255.255.255.25420.0.0.111111111.11111111.11111111.11111110
/30255.255.255.25240.0.0.311111111.11111111.11111111.11111100
/29255.255.255.24880.0.0.711111111.11111111.11111111.11111000
/28255.255.255.240160.0.0.1511111111.11111111.11111111.11110000
/27255.255.255.224320.0.0.3111111111.11111111.11111111.11100000
/26255.255.255.192640.0.0.6311111111.11111111.11111111.11000000
/25255.255.255.1281280.0.0.12711111111.11111111.11111111.10000000
/24255.255.255.02560.0.0.25511111111.11111111.11111111.00000000
/23255.255.254.05120.0.1.25511111111.11111111.11111110.00000000
/22255.255.252.01,0240.0.3.25511111111.11111111.11111100.00000000
/21255.255.248.02,0480.0.7.25511111111.11111111.11111000.00000000
/20255.255.240.04,0960.0.15.25511111111.11111111.11110000.00000000
/19255.255.224.08,1920.0.31.25511111111.11111111.11100000.00000000
/18255.255.192.016,3840.0.63.25511111111.11111111.11000000.00000000
/17255.255.128.032,7680.0.127.25511111111.11111111.10000000.00000000
/16255.255.0.065,5360.0.255.25511111111.11111111.00000000.00000000
/15255.254.0.0131,0720.1.255.25511111111.11111110.00000000.00000000
/14255.252.0.0262,1440.3.255.25511111111.11111100.00000000.00000000
/13255.248.0.0524,2880.7.255.25511111111.11111000.00000000.00000000
/12255.240.0.01,048,5760.15.255.25511111111.11110000.00000000.00000000
/11255.224.0.02,097,1520.31.255.25511111111.11100000.00000000.00000000
/10255.192.0.04,194,3040.63.255.25511111111.11000000.00000000.00000000
/9255.128.0.08,388,6080.127.255.25511111111.10000000.00000000.00000000
/8255.0.0.016,777,2160.255.255.25511111111.00000000.00000000.00000000
/7254.0.0.033,554,4321.255.255.25511111110.00000000.00000000.00000000
/6252.0.0.067,108,8643.255.255.25511111100.00000000.00000000.00000000
/5248.0.0.0134,217,7287.255.255.25511111000.00000000.00000000.00000000
/4240.0.0.0268,435,45615.255.255.25511110000.00000000.00000000.00000000
/3224.0.0.0536,870,91231.255.255.25511100000.00000000.00000000.00000000
/2192.0.0.01,073,741,82463.255.255.25511000000.00000000.00000000.00000000
/1128.0.0.02,147,483,648127.255.255.25510000000.00000000.00000000.00000000
/00.0.0.04,294,967,296255.255.255.25500000000.00000000.00000000.00000000

Subnet Classes and Addresses

ClassStarting IPEnding IPSubnet MaskWildcard Mask
A10.0.0.010.255.255.255255.0.0.00.255.255.255
B172.16.0.0172.31.255.255255.240.0.00.15.255.255
C192.168.0.0192.168.255.255255.255.255.00.0.0.255
D224.0.0.0239.255.255.255Not used for subnettingNot used for subnetting
E240.0.0.0255.255.255.255Not used for subnettingNot used for subnetting
Localhost127.0.0.0127.255.255.255255.0.0.00.255.255.255
Zeroconf169.254.0.0169.254.255.255255.255.0.00.0.255.255

Terminology

CIDR (Classless Inter-Domain Routing)** notation was developed to provide more granularity than legacy classful addressing. CIDR notation is expressed as /XX.
Wildcard Mask** indicates which parts of an IP address are available for examination.
Binary Subnet Mask** provides a clear representation of the subnet mask in binary format, illustrating the network and host portions.
IP Address Classes**: Classes A, B, and C are used for unicast addressing. Class D is reserved for multicast, and Class E is reserved for experimental purposes.
Localhost (127.0.0.0/8)** is used for loopback testing within a host.
Zeroconf/Automatic Private IP Addressing (APIPA)**: 169.254.0.0/16 is used for self-assigned addresses when DHCP fails.

On this page

Edit on GitHub