What Is Subnets In Vpc
They are containers within your vpc that segment off a slice of the cidr block you define in your vpc.
What is subnets in vpc. In this diagram subnet 1 is a public subnet. Subnets are a way to slice up your vpc pie. Let me start by quickly talking about what is meant by subnetting.
An internet gateway enables communication over the internet and a virtual private network vpn connection enables communication with your corporate network. Where a vpc specifies an ip address range a subnet allows you to group those ips into smaller sub networks or subnets. Subnetting is the process of splitting a cidr block into smaller cidr blocks within the same range by using different subnet masks.
Internet gateway a gateway that you attach to your vpc to enable communication between resources in your vpc and the internet. Route table a set of rules called routes that are used to determine where network traffic is directed. Public and private subnets.
Subnets allow you to give different access rules and place resources in different containers where those rules should apply. There is a virtual private cloud consisting of availability zones. As defined above vpc is a logically isolated network assigned to your account.
Now subnets reside inside your vpc and they allow you to segment your vpc infrastructure into multiple different networks. Let s zoom in on one of the vpcs from the diagram above. We ll actually be talking about subnetting and vpc subnets in detail.
Now you might want to do this to create better management for your resources or to isolate certain resources from others or even to create high availability and resiliency within your infrastructure. This is great because you can then assign different behaviours to each of those subnets. Subnet a range of ip addresses in your vpc.