February 2020
Intermediate to advanced
440 pages
13h 51m
English
In this recipe, we created a VPC by providing an IPv4 CIDR block address range. AWS only supports CIDR block sizes between /16 netmask and /28 netmask. Therefore, 10.0.0.0/8 is not a valid CIDR block range for AWS VPCs.
We specified an IP address range of 10.0.0.0/16, which is the largest CIDR block supported by AWS in VPCs. AWS requires us to specify the network identifier bits and leave the host identifier bits as zero. For example, 10.10.0.0/16 is a valid CIDR range since the last 16 bits are zeroes. However, 10.10.128.0/16 is not valid since there is a value in the 17th bit (128 is represented in binary as 10000000). We can make 10.10.128.0 a valid CIDR range representation by setting the netmask to /17.
Read now
Unlock full access