What Is A Subnet In Vpc
Subnets are used to provide granularity inside the vpc.
What is a subnet in vpc. A subnet is a segment of a vpc s ip address range that you can specify and that lets you group instances based on your security and operational needs. Networks and subnets are different types of objects in google cloud. A vpc is a virtual private cloud that allows us to create a logical unit of the network where the hardware and resources are managed by the vendor or the service provides.
Route table a set of rules called routes that are used to determine where network traffic is directed. A subnet is not the same thing as a vpc network. Private subnet is a subnet which doesn t have a route to the internet gateway.
It is useful for applications that store sensitive information that should not be exposed to world or to an instance that has database in it. The subnet can span the entire ip range of the vpc as below. As users we are responsible for the configuration and logical setup of the network.
Subnet is a key component in vpc. Your vpc must have at least one subnet in at least two of the availability zones in the region where you want to deploy your db instance. What is a private subnet.
Alternatively we could split the range of ip addresses in the vpc into multiple subnets as below. In this diagram subnet 1 is a public subnet. A vpc can only be defined within a single region each vpc can have a number of subnets.
Each vpc network consists of one or more useful ip. Subnet a range of ip addresses in your vpc. If a subnet s traffic is routed to an internet gateway the subnet is known as a public subnet.