[Avg. reading time: 3 minutes]

CIDR

CIDR = Classless Inter-Domain Routing

It defines how many IP addresses are in a network (or subnet) using a “slash” notation.

Example: 192.168.10.0/24
  • Network address: 192.168.10.0
  • Prefix Length: /24 means this network will have 256 total IPs

Number of IPs = 2^(32 - prefix)

But AWS and most networks reserve 5 IPs in each subnet:

  • 1 for network address
  • 1 for broadcast address
  • 3 reserved by AWS (for internal routing, DNS, etc.)

/24 subnet gives 251 usable IPs

CIDRSubnet MaskTotal IPsUsable in AWSTypical Use
/16255.255.0.065,53665,531Entire VPC range
/20255.255.240.04,0964,091Large subnet
/24255.255.255.0256251Typical small subnet
/28255.255.255.2401611Small test subnet
/32255.255.255.25510Single host route
192.168.10.0 = 11000000.10101000.00001010.00000000

Last 8 digits goes like this

00000100 
00000101
00000101
00000110
.....
.....
11111111

#cidr #ipv4 #subnetVer 0.3.6

Last change: 2025-12-02