CIDR Conversion Table / Subnet Calculator

This blog post provides a quick reference table for CIDR notation, subnet masks, and host counts, making it a valuable tool for tasks like configuring security groups, firewall rules, and subnetting. It simplifies network planning and ensures accurate IP address allocation for efficient and secure network setups.


CIDR Reference Table

CIDR Prefix LengthNetmaskHosts (Class C’s/B’s/A’s)
/32255.255.255.2551
/31255.255.255.2542
/30255.255.255.2524
/29255.255.255.2488
/28255.255.255.24016
/27255.255.255.22432
/26255.255.255.19264
/25255.255.255.128128
/24 (Class C)255.255.255.0256 / 1
/23255.255.254.0512 / 2
/22255.255.252.01,024 / 4
/21255.255.248.02,048 / 8
/20255.255.240.04,096 / 16
/19255.255.224.08,192 / 32
/18255.255.192.016,384 / 64
/17255.255.128.032,768 / 128
/16 (Class B)255.255.0.065,536 / 256 / 1
/15255.254.0.0131,072 / 512 / 2
/14255.252.0.0262,144 / 1024 / 4
/13255.248.0.0524,288 / 2048 / 8
/12255.240.0.01,048,576 / 4096 / 16
/11255.224.0.02,097,152 / 8129 / 32
/10255.192.0.04,194,304 / 16,384 / 64
/9255.128.0.08,388,608 / 32,768 / 128
/8 (Class A)255.0.0.016,777,216 / 65,536 / 256 / 1
/7254.0.0.033,554,432 / 131,072 / 512 / 2
/6252.0.0.067,108,864 / 262,144 / 1,024 / 4
/5248.0.0.0134,217,728 / 524,288 / 2,048 / 8
/4240.0.0.0268,435,456 / 1,048,576 / 4,096 / 16
/3224.0.0.0536,870,912 / 2,097,152 / 8,192 / 32
/2192.0.0.01,073,741,824 / 4,194,304 / 16,384 / 64
/1128.0.0.02,147,483,648 / 8,388,608 / 32,768 / 128
/00.0.0.04,294,967,296 / 16,777,216 / 65,536 / 256

If SQL Server is part of your day job, my current work lives over at sqldba.blog: production DBA scripts, an error library and the SSMS guide.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *