Skip to content

VPC CIDR block size

0

When we create VPC, it says CIDR block size must be between /16 and /28. Is there a way to add a /29 network?

asked a year ago386 views

1 Answer
0
Accepted Answer

When creating a VPC in AWS, the CIDR block size must be between a /16 netmask (65,536 IP addresses) and a /28 netmask (16 IP addresses). This is a hard limitation in AWS, and you cannot create a VPC with a /29 CIDR block or smaller.

The rules for VPC CIDR blocks include:

  • The allowed block size must be between a /28 netmask and /16 netmask
  • You cannot increase or decrease the size of an existing CIDR block
  • The CIDR block must not overlap with any existing CIDR block associated with the VPC

If you need a smaller network segment, you should create a VPC with the minimum allowed size (/28) and then create subnets within that VPC according to your requirements. Remember that the first four IP addresses and the last IP address in each subnet CIDR block are reserved by AWS and not available for your use.
Sources
VPC CIDR blocks - Amazon Virtual Private Cloud
Networking 101 - Part 2 | AWS re:Post
REL02-BP03 Ensure IP subnet allocation accounts for expansion and availability - AWS Well-Architected Framework

answered a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.