Skip to content

Instantly share code, notes, and snippets.

@bribroder
Last active June 2, 2016 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bribroder/ff14e6b53d92f7d330ed to your computer and use it in GitHub Desktop.
Save bribroder/ff14e6b53d92f7d330ed to your computer and use it in GitHub Desktop.
------------------------------------------------------------------------------------
CIDR Total number Network Description:
Notation: of addresses: Mask:
------------------------------------------------------------------------------------
/0 4,294,967,296 0.0.0.0 Every Address
/1 2,147,483,648 128.0.0.0 128 /8
/2 1,073,741,824 192.0.0.0 64 /8
/3 536,870,912 224.0.0.0 32 /8
/4 268,435,456 240.0.0.0 16 /8
/5 134,217,728 248.0.0.0 8 /8
/6 67,108,864 252.0.0.0 4 /8
/7 33,554,432 254.0.0.0 2 /8
/8 16,777,214 255.0.0.0 1 /8 (Class A)
------------------------------------------------------------------------------------
/9 8,388,608 255.128.0.0 128 /16
/10 4,194,304 255.192.0.0 64 /16
/11 2,097,152 255.224.0.0 32 /16
/12 1,048,576 255.240.0.0 16 /16
/13 524,288 255.248.0.0 8 /16
/14 262,144 255.252.0.0 4 /16
/15 131.072 255.254.0.0 2 /16
/16 65,536 255.255.0.0 1 /16 (Class B) (Maximum AWS Subnet)
------------------------------------------------------------------------------------
/17 32,768 255.255.128.0 128 /24
/18 16,384 255.255.192.0 64 /24
/19 8,192 255.255.224.0 32 /24
/20 4,096 255.255.240.0 16 /24
/21 2,048 255.255.248.0 8 /24
/22 1,024 255.255.252.0 4 /24
/23 512 255.255.254.0 2 /24
/24 256 255.255.255.0 1 /24 (Class C)
------------------------------------------------------------------------------------
/25 128 255.255.255.128 1/2 of a /24
/26 64 255.255.255.192 1/4 of a /24
/27 32 255.255.255.224 1/8 of a /24
/28 16 255.255.255.240 1/16 of a /24 (Minimum AWS Subnet)
/29 8 255.255.255.248 5 Usable addresses
/30 4 255.255.255.252 1 Usable address
/31 2 255.255.255.254 Unusable
/32 1 255.255.255.255 Single host
------------------------------------------------------------------------------------
A=B^C
ipSpace = 2^(32 - blockSize)
logB(A)=C
blockSize = 32 - log2(ipSpace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment