What is a CIDR in VPCs and AWS?

254 views

My understanding is that you can launch subnets (a collection of IP addresses) in a VPC (a network that you set up), and that CIDRs… do what?

I’m not entirely sure what a subnet or a VPC is, either. I don’t know how they all play together.

In: 0

4 Answers

Anonymous 0 Comments

the CIDR simply tells you how many addresses are available when you set a certain subnet mask.

For example a /24 gives you 254 available addresses (256 but the first and the last bit is unavailable, they are the network and the broadcast address respectively).

The /24 mask is [`255.255.255.0`](https://255.255.255.0) which means the last set of numbers equals 256 available addresses. It is usefull to set up smaller networks and not use up a huge numbers of ip-addresses that would go unused if all you need is a maximum of 254.

You are viewing 1 out of 4 answers, click here to view all answers.