IPv4 quick reference

Prefix Bits IP Addresses /24s /16s /8s Subnet Mask
/32 0 1       255.255.255.255
/31 1 2       255.255.255.254
/30 2 4       255.255.255.252
/29 3 8       255.255.255.248
/28 4 16       255.255.255.240
/27 5 32       255.255.255.224
/26 6 64       255.255.255.192
/25 7 128       255.255.255.128
/24 8 256 1     255.255.255.0
/23 9 512 2     255.255.254.0
/22 10 1,024 4     255.255.252.0
/21 11 2,048 8     255.255.248.0
/20 12 4,096 16     255.255.240.0
/19 13 8,192 32     255.255.224.0
/18 14 16,384 64     255.255.192.0
/17 15 32,768 128     255.255.128.0
/16 16 65,536 256 1   255.255.0.0
/15 17 131,072 512 2   255.254.0.0
/14 18 262,144 1,024 4   255.252.0.0
/13 19 524,288 2,048 8   255.248.0.0
/12 20 1,048,576 4,096 16   255.240.0.0
/11 21 2,097,152 8,192 32   255.224.0.0
/10 22 4,194,304 16,384 64   255.192.0.0
/9 23 8,388,608 32,768 128   255.128.0.0
/8 24 16,777,216 65,536 256 1 255.0.0.0
/7 25 33,554,432 131,072 512 2 254.0.0.0
/6 26 67,108,864 262,144 1,024 4 252.0.0.0
/5 27 134,217,728 524,288 2,048 8 248.0.0.0
/4 28 268,435,456 1,048,576 4,096 16 240.0.0.0
/3 29 536,870,912 2,097,152 8,192 32 224.0.0.0
/2 30 1,073,741,824 4,194,304 16,384 64 192.0.0.0
/1 31 2,147,483,648 8,388,608 32,768 128 128.0.0.0
/0 32 4,294,967,296 16,777,216 65,536 256 0.0.0.0

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.