I have my VPC configured with 10.0.0.0/16
CIDR. I want to create around 7-10 subnets in this VPC.
On my calculation, I have decided to have 8 subnets where each subnet can host 8192 resources (8192*8=65536
).
As per my calculation, 2^13=8192
. Subtracting it from the max size of 32 (32-13)= 19
. So is it 10.0.0.0/19
? If that is so, this would be the CIDR for first subnet. What would be for the rest 7?
I have tried with 10.0.0.0/19
. Next when I go with 10.0.1.0/19
, it is throwing an error.
But I am in confused state as in how can I allocate ipv4 CIDR to 8 subnets? What would be starting and ending range? How can I calculate what IPV4 CIDR can I allocate to each subnet?