CIDR notation and Subnetting in AWS VPC

CIDR notation is a format for IP address and a suffix is attached to indicate Network identifier bits. For example, consider an IP address,

For this IP, /16 represents the Network bits,

So the first two blocks reserved for network that means these two blocks won’t change at all.

The following IP will be start from,

The IP will be end at,

So how many IP can be create from to There is a formula, 2 ^ (total number of bits – total number of bits allocated for network)

With this formula, 2 ^ (32 -16) = 65536, so 65536 can be created with the range of

This is the overview for CIDR notation.

Now let’s move to subnetting. What is Subnetting?

For a given IP or CIDR notation we can get one or more IP addresses by splitting the CIDR notation (, this process is called Subnetting.

We split two subnets one is and another one is (these two subnets can’t be same). The network of cannot be greater than its subnet’s network.

For subnet 1 the total number of ip will be, 2 ^ (32-24) = 256, so the range will be –

For subnet 2 the total number of ip will be, 2 ^ (32-24) = 256, so the range will be –

Now let’s use these IP addresses inside AWS VPC,

VPC stands for Virtual Private Cloud which lets you launch AWS resources in a logically isolated virtual network. VPC itself has an IP address attached lets say

Inside of that VPC there can be multiple Availability Zone and each availability zone has an IP address attached which is called subnet. Lets look at the diagram,

Two Availability Zone have their (two) Subnet. This is the overview of CIDR notation and Subnetting in AWS VPC.

Leave a Comment

Your email address will not be published. Required fields are marked *