子网 IPv4 CIDR 块

发布于 2025-01-20 21:13:43 字数 207 浏览 4 评论 0原文

我有一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把昨日还给我 2025-01-27 21:13:43

您的一个子网似乎正在使用分配给该 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文