DevOps Training

AWS VPC Subnets

VPC Design Architecture
We have to decide the design for the VPC base on the requirement.Here we are going to create VPC with two private subnets and two public subnets as mentioned in the above diagram. Let’s do the implementation step by step.
Step 01 : Design the VPC architecture
Decide the IP range for the VPC before creating the VPC. Here we are using as the CIDR block.This CIDR block assigns 256 IP address for the VPC. Hence we are using 4 subnets for the VPC we have to divide the 256 IP addresses among 4 subnets. I’ll explain how to calculate number of IP addresses for the VPC and divide them between subnets.
CIDR block for the VPC ->
Number of IP address -> 2^(32–24) -> 2⁸ -> 256
Assuming equal number of IP addresses for the each subnet,
Number of IP addresses for a subnet = 256/4 = 64
Here is the IP address distribution for the above 4 subnets
Public Subnet 1 -> (IP range —–
Public Subnet 2 -> (IP range —–
Private Subnet 1-> (IP range —–
Private Subnet 2 -> (IP range —–