I have been creating AWS VPCs and I am wondering if there is a recommended CIDR value when creating VPCs. What are the factors that I must consider when choosing a CIDR and does the CIDR value affect the performance of the network?
AWS – Recommended CIDR for Creating VPC
amazon-vpccidr
Best Answer
I would recommend the following considerations:
If you creating an IPSEC connection between your corporate LAN and your VPC, use a CIDR that is different than that on your corporate LAN. This will prevent routing overlaps and create an identity distinction for reference.
For very large networks, use at least different 16-bit masks in different regions eg
For smaller networks, use a 24-bit mask in different regions eg
Consider making a distinction between private and public subnets, eg
Don't over-allocate address space to subnets, eg
Don't under-allocate either. If you use a load of Elastic Load Balancers, remember that they will also consume available ip addresses on your subnets. This is a particularly true if you use ElasticBeanstalk.