子网 IPv4 CIDR 块
我有一个使用 10.1.0.0/24
IPv4 CIDR 创建的旧版 VPC,有一个公共子网共享相同的范围 10.1.0.0/24
我是尝试在 VPC 中创建一个新的私有子网,以便我可以让 lambda 访问私有资源并向互联网发出请求,但我正在努力为新子网找到有效的 IPv$ CIDR 块。
这些参数适合的范围是多少?
I have a legacy VPC that was created with an IPv4 CIDR of 10.1.0.0/24
, there is one public subnet that shares the same range 10.1.0.0/24
I am trying to create a new private subnet in the VPC so that I can have a lambda access private resources as well as make requests to the internet but I am struggling to find a valid IPv$ CIDR block for the new subnet.
What is a range that would fit within these parameters?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的一个子网似乎正在使用分配给该 VPC 的整个 IP 范围。通常,会为 VPC 分配更大的范围(例如
/16
)。幸运的是,您可以编辑 CIDR 并向 VPC 添加新的 IPv4 CIDR,例如
10.1.1.0/24
。然后,您可以添加具有该附加 IP 范围的子网。It appears that your one subnet is using the entire IP range allocated to that VPC. Typically, a larger range would be assigned to a VPC (eg
/16
).Fortunately, you can Edit CIDRs and Add new IPv4 CIDR to the VPC, such as
10.1.1.0/24
. You can then add a subnet with that additional IP range.