Google VPC 网络路由中的云平台预留地址 Space

Google Cloud Platform Reserved Address Space in VPC Network Route

我需要在 GCP 的 VPC 网络中添加路由,当我这样做时,我收到一条错误消息(如下所示),似乎表明 overlap/conflict 范围为 10.130.0.0/16。不幸的是,我在任何区域的任何路由中都看不到这个 10.130.0.0/16,而且我不知道为什么会出现此错误。

Creating route "test" failed. Error: Invalid value for field 'resource.destRange': '10.130.90.82/32'. 10.130.90.82/32 hides the reserved address space for network (10.130.0.0/16).

我曾尝试在几个 gcp 项目中添加这个简单的路由,但它们都失败了,并且似乎暗示可能存在一些隐藏的保留地址 space。这可能吗?我错过了什么?这发生在 10.130.0.0/16 space 中的任何路由目标值,例如; 10.130.90.82/32 10.130.90.0/24

这里有一个失败的路由示例:

补充说明,这里是 'default' VPC 网络:

Google Cloud 不允许您创建新的子网或对等子网路由,其目的地与现有自定义静态路由完全匹配或比(将包含)现有自定义静态路由更宽。例如,如果您的 VPC 网络具有针对 10.70.1.128/25 目标的自定义静态路由,Google Cloud 禁止创建任何主要或次要子网 IP 地址范围为 10.70.1.128 的子网或对等子网路由/25、10.70.1.0/24 或包含 10.70.1.128/25 中所有 IP 地址的任何其他范围。

请检查Configuring private services access docs. Included on the docs are the considerations , Creating an IP allocation, Deleting an allocated IP address range

默认VPC网络中其实有一个隐藏的保留地址space。我犹豫调用 hidden 作为 JaysonM 在他的回答中提到它但它没有出现在 GPC 控制台的任何地方(据我所知)。

默认 VPC 网络正在使用 'auto' 子网创建模式。启用此设置后,VPC 网络的范围为 10.128.0.0/9 (10.128.0.0 - 10.255.255.255),不能重叠。只需将 VPC 网络的 'auto' 子网创建设置为 'custom' 即可解决此问题。另请注意,这是对您的 VPC 网络的 one-way 更改。

干杯!