0% found this document useful (0 votes)
155 views3 pages

CIDR Subnet Mask Reference Table

Uploaded by

Alex Tesla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
155 views3 pages

CIDR Subnet Mask Reference Table

Uploaded by

Alex Tesla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

CIDR Subnet Table

Subnet Mask CIDR Prefix Total IP Addresses Usable IP Addresses Number of /24 networks
[Link] /32 1 1 1/256th
[Link] /31* 2* 2* 1/128th
[Link] /30 4 2 1/64th
[Link] /29 8 6 1/32nd
[Link] /28 16 14 1/16th
[Link] /27 32 30 1/8th
[Link] /26 64 62 1/4th
[Link] /25 128 126 1 half
[Link] /24 256 254 1
[Link] /23 512 510 2
[Link] /22 1024 1022 4
[Link] /21 2048 2046 8
[Link] /20 4096 4094 16
[Link] /19 8192 8190 32
[Link] /18 16,384 16,382 64
[Link] /17 32,768 32,766 128
[Link] /16 65,536 65,534 256
[Link] /15 131,072 131,070 512
[Link] /14 262,144 262,142 1024
[Link] /13 524,288 524,286 2048
[Link] /12 1,048,576 1,048,574 4096
[Link] /11 2,097,152 2,097,150 8192
[Link] /10 4,194,304 4,194,302 16,384
[Link] /9 8,388,608 8,388,606 32,768
[Link] /8 16,777,216 16,777,214 65,536
[Link] /7 33,554,432 33,554,430 131,072
[Link] /6 67,108,864 67,108,862 262,144
[Link] /5 134,217,728 134,217,726 524,288
[Link] /4 268,435,456 268,435,454 1,048,576
[Link] /3 536,870,912 536,870,910 2,097,152
[Link] /2 1,073,741,824 1,073,741,822 4,194,304
[Link] /1 2,147,483,648 2,147,483,646 8,388,608
[Link] /0 4,294,967,296 4,294,967,294 16,777,216
Refer to the CIDR Subnet Table to find the CIDR equivalent of a decimal subnet
mask.

! NOTE

The use of /31 networks is a special case defined by RFC 3021 where the two IP
addresses in the subnet are usable for point‐to‐point links to conserve IPv4
address space. Not all operating systems support RFC 3021, so use it with
caution. On systems that do not support RFC 3021, the subnet is unusable
because the only two addresses defined by the subnet mask are the null route
and broadcast and no usable host addresses.

Where do CIDR numbers come from?

The CIDR number comes from the number of ones in the subnet mask when
converted to binary.

The subnet mask [Link] is 11111111.11111111.11111111.00000000 in


binary.

This adds up to 24 consecutive ones, or /24 (pronounced “slash twenty four”).

A subnet mask of [Link] is 11111111.11111111.11111111.11000000 in


binary, or 26 ones, hence /26.
Bitmask (Bits) Dotted Decimal Hexadecimal Binary
/0 [Link] 0x00000000 00000000 00000000 00000000 00000000
/1 [Link] 0x80000000 10000000 00000000 00000000 00000000
/2 [Link] 0xc0000000 11000000 00000000 00000000 00000000
/3 [Link] 0xe0000000 11100000 00000000 00000000 00000000
/4 [Link] 0xf0000000 11110000 00000000 00000000 00000000
/5 [Link] 0xf8000000 11111000 00000000 00000000 00000000
/6 [Link] 0xfc000000 11111100 00000000 00000000 00000000
/7 [Link] 0xfe000000 11111110 00000000 00000000 00000000
/8 [Link] 0xff000000 11111111 00000000 00000000 00000000
/9 [Link] 0xff800000 11111111 10000000 00000000 00000000
/10 [Link] 0xffc00000 11111111 11000000 00000000 00000000
/11 [Link] 0xffe00000 11111111 11100000 00000000 00000000
/12 [Link] 0xfff00000 11111111 11110000 00000000 00000000
/13 [Link] 0xfff80000 11111111 11111000 00000000 00000000
/14 [Link] 0xfffc0000 11111111 11111100 00000000 00000000
/15 [Link] 0xfffe0000 11111111 11111110 00000000 00000000
/16 [Link] 0xffff0000 11111111 11111111 00000000 00000000
/17 [Link] 0xffff8000 11111111 11111111 10000000 00000000
/18 [Link] 0xffffc000 11111111 11111111 11000000 00000000
/19 [Link] 0xffffe000 11111111 11111111 11100000 00000000
/20 [Link] 0xfffff000 11111111 11111111 11110000 00000000
/21 [Link] 0xfffff800 11111111 11111111 11111000 00000000
/22 [Link] 0xfffffc00 11111111 11111111 11111100 00000000
/23 [Link] 0xfffffe00 11111111 11111111 11111110 00000000
/24 [Link] 0xffffff00 11111111 11111111 11111111 00000000
/25 [Link] 0xffffff80 11111111 11111111 11111111 10000000
/26 [Link] 0xffffffc0 11111111 11111111 11111111 11000000
/27 [Link] 0xffffffe0 11111111 11111111 11111111 11100000
/28 [Link] 0xfffffff0 11111111 11111111 11111111 11110000
/29 [Link] 0xfffffff8 11111111 11111111 11111111 11111000
/30 [Link] 0xfffffffc 11111111 11111111 11111111 11111100
/31 [Link] 0xfffffffe 11111111 11111111 11111111 11111110
/32 [Link] 0xffffffff 11111111 11111111 11111111 11111111

You might also like