问题描述
我有一个自定义 VPC,其 CIDR 块为 192.168.0.0/16.我有一个需要更多 IP 的用例,因此我添加了另一个范围为 10.0.0.0/16 的 CIDR 块.现在这个范围不起作用.从技术上讲,这应该可以工作,因为它落在 10.0.0.0/8 的范围内.172.0.0.0/16 这也有效.这究竟是如何工作的?
错误显示:"添加IPv4 CIDR失败:10.0.0.0/16CIDR '10.0.0.0/16' 受到限制.使用来自与当前 VPC CIDR 相同的私有地址范围的 CIDR,或使用可公开路由的 CIDR.有关其他限制,请参阅
I have a custom VPC with the CIDR block of 192.168.0.0/16. I have a use case where I need more IP's and so I added another CIDR block of range 10.0.0.0/16. Now this range wont work. Technically this should work as it falls in the range of 10.0.0.0/8. Also 172.0.0.0/16 this works. How exactly is this working?
The error shows :"Failed to add IPv4 CIDR: 10.0.0.0/16The CIDR '10.0.0.0/16' is restricted. Use a CIDR from the same private address range as the current VPC CIDR, or use a publicly-routable CIDR. For additional restrictions, see https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html#VPC_Sizing"
You cannot add 10.0.0.0/16 because It's restricted CIDR for the primary CIDR 192.168.0.0/16. It allows CIDRs in the same Class (A, B, C) and public routable CIDR.
这篇关于我们如何将辅助 CIDR 分配给 AWS 中的 VPC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!