Custom VPC and CIDR Block

Learn to create a custom VPC and configure IP addresses for subnets to meet the needs of an organization.

A VPC is crucial to deploying and managing resources securely within AWS Regions. We can have a maximum of five VPCs in an AWS Region, including a default one.

Press + to interact

Planning IP range for the VPC

Let’s consider an organization with offices worldwide. For now, we are planning connectivity for only one AWS Region, us-east-1. To create our own VPC, we need to take care of the following:

  • IP addresses range for the VPC

  • Number of availability zones to span the VPC

  • Private and public subnets and their IP ranges

When we create a VPC we need to define the CIDR block for our VPC. From the networking point of view, all the resources we create in a VPC must take IP addresses from this CIDR block. Below are a few important points to consider when defining the CIDR block:

  • A maximum of five CIDR blocks are allowed per VPC ...