Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Created February 28, 2020 15:52
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
  • Save chadmcrowell/f3fc3be2ca1fcb887034162c14d77e74 to your computer and use it in GitHub Desktop.
Save chadmcrowell/f3fc3be2ca1fcb887034162c14d77e74 to your computer and use it in GitHub Desktop.
CIDR chart
CIDR Total Number Network Description:
Notation: of addresses: Mask:
--------------------------------------------------------------------
/0 4,294,967,296 0.0.0.0 All Addresses
/1 2,147,483,684 128.0.0.0 128 /8 networks
/2 1,073,741,824 192.0.0.0 64 /8 networks
/3 536,870,912 224.0.0.0 32 /8 networks
/4 268,435,456 240.0.0.0 16 /8 networks
/5 134,217,728 248.0.0.0 8 /8 networks
/6 67,108,864 252.0.0.0 4 /8 networks
/7 33,554,432 254.0.0.0 2 /8 networks
/8 16,777,214 255.0.0.0 1 /8 network
---------------------------------------------------------------------
/9 8,388,608 255.128.0.0 128 /16 networks
/10 4,194,304 255.192.0.0 64 /16 networks
/11 2,097,152 255.224.0.0 32 /16 networks
/12 1,048,576 255.240.0.0 16 /16 networks
/13 524,288 255.248.0.0 8 /16 networks
/14 262,144 255.248.0.0 4 /16 networks
/15 131,072 255.254.0.0 2 /16 networks
/16 65,536 255.255.0.0 1 /16 network
---------------------------------------------------------------------
/17 32,768 255.255.128.0 128 /24 networks
/18 16,384 255.255.192.0 64 /24 networks
/19 8,192 255.255.224.0 32 /24 networks
/20 4,096 255.255.240.0 16 /24 networks
/21 2,048 255.255.248.0 8 /24 networks
/22 1,024 255.255.252.0 4 /24 networks
/23 512 255.255.254.0 2 /24 networks
/24 256 255.255.255.0 1 /24 network
--------------------------------------------------------------------
/25 128 255.255.255.128 half of a /24
/26 64 255.255.255.192 fourth of a /24
/27 32 255.255.255.224 eighth of a /24
/28 16 255.255.255.240 1/16th of a /24
/29 8 255.255.255.248 6 usable addresses
/30 4 255.255.255.252 2 usable addresses
/31 2 255.255.255.254 used in P2P links
/32 1 255.255.255.255 single host
@saryeHaddadi
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment