在VPC中可以在AWS上创建的最小子网是多少? [英] What is the smallest subnet one can create on AWS in the VPC?
问题描述
我想将可以在子网中运行的实例数限制为尽可能最小的实例数.结合使用IAM角色,我可以限制用户可以在我的AWS账户上创建多少实例(请参阅 https://forums.aws.amazon.com/thread.jspa?threadID=174503 要求4反映了我的动机).
I want to limit the number of instances that can run in a subnet to the smallest number of instances possible. This in combination with an IAM role will allow me to limit how many instances a user can create on my AWS account (see https://forums.aws.amazon.com/thread.jspa?threadID=174503 requirement #4 which reflects my motivations).
在VPC中可以在AWS上创建的最小子网是什么?IPv4 CIDR是什么?
What is the smallest subnet one can create on AWS in the VPC and what would the IPv4 CIDR be?
推荐答案
16个IP是VPC子网(/28
网络掩码)的最小范围.
16 IPs is the smallest range for a VPC Subnet -- /28
netmask.
例如,您可以创建CIDR范围为10.0.0.0/26
的VPC,该范围最多支持10.0.0.0
-10.0.0.63
范围内的64个IP.
For example, you could create a VPC with the CIDR range 10.0.0.0/26
which would support up to 64 IPs in the range of 10.0.0.0
- 10.0.0.63
.
然后,您可以使用以下VPC CIDR范围创建4个子网,每个子网具有16个可用IP:
Then you could create 4 subnets, each with 16 available IPs using the following VPC CIDR ranges:
10.0.0.0/28 (10.0.0.0 - 10.0.0.15)
10.0.0.16/28 (10.0.0.16 - 10.0.0.31)
10.0.0.32/28 (10.0.0.32 - 10.0.0.47)
10.0.0.48/28 (10.0.0.48 - 10.0.0.63)
注意::请参阅下面@sqlbot的重要评论.并非所有范围内的16个实例都可以使用.
NOTE: See important comment below by @sqlbot. Not all 16 in range can be used for instances.
这篇关于在VPC中可以在AWS上创建的最小子网是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!