[英]The CIDR is invalid AWS Cloud Formation
I am using cloud formation to create instances, I am using following CIDR configurations for VPC and subnets. 我正在使用云形成来创建实例,我正在为VPC和子网使用以下CIDR配置。
VPC CIDR: "10.15.0.0/16"
Subnet A CIDR: "10.15.10.0/24"
Subnet B CIDR: "10.15.20.0/24"
PrivateSubnet CIDR A: "10.15.90.0/21"
PrivateSubnet CIDR B: "10.15.110.0/21"
I am getting following error. 我收到以下错误。 Please let me know what I am doing wrong here ?
请让我知道我在这里做错了吗?
The CIDR '10.15.20.0/24' is invalid. (Service: AmazonEC2; Status Code: 400; Error Code: InvalidSubnet.Range; )
10.15.20.0/24
is fine. 10.15.20.0/24
可以。
However, 10.15.90.0/21
and 10.15.110.0/21
are invalid . 但是,
10.15.90.0/21
和10.15.110.0/21
无效 。
10.15.90.0/21
falls within 10.15.88.0
to 10.15.95.255
, so it should really be 10.15.88.0/21
10.15.90.0/21
落在10.15.88.0
到10.15.95.255
,因此它实际上应该是10.15.88.0/21
10.15.110.0/21
falls within 10.15.104.0
to 10.15.111.255
, so it should really be 10.15.104.0/21
10.15.110.0/21
落在10.15.104.0
到10.15.111.255
,因此它实际上应该是10.15.104.0/21
CIDR notation hurts the head, so you always use a CIDR Calculator . CIDR表示法会伤人头部,因此您始终使用CIDR计算器 。
If you don't follow the above concepts, read Classless Inter-Domain Routing - Wikipedia . 如果您不遵循上述概念,请阅读无类域间路由-Wikipedia 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.