From the course: VPC Networking on AWS: Configuration, Security, and Connectivity
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Choices for subnets - Amazon Web Services (AWS) Tutorial
From the course: VPC Networking on AWS: Configuration, Security, and Connectivity
Choices for subnets
- [Instructor] In this lesson, we're going to look at the variety of subnet choices and associations that we need to understand when creating subnets. The basics of subnets is it's really a collection of a range of addresses defined by that CIDR block we've talked about earlier, and it's assigned to a single availability zone. For example, us-east-1a. So subnet doesn't span across availability zones. It's within an availability zone. The CIDR block for the VPC, as we know, is between 16 and 28, /16 and /28, defining the number of addresses that can be used to create subnets. The subnet CIDR block is carved from that master list of primary or secondary CIDR ranges that you've used. In our case, 10.0.0.0/16, 65,536 IP addresses, And then the subnets are assigned the IP addresses based on the slash notation. In this case, 256. It's not really truly 256 or 65,536 because Amazon reserves particular addresses for their use. They reserve .0, .1, .2, and .3 for network addressing, their…