简体   繁体   English

新 VM 不能使用未分配的 Static 内部 IP GCP

[英]New VM can't use unassigned Static Internal IP GCP

The guide Reserving a static internal IP address includes instructions for reserving a new static internal IP address and assigning the address when creating the VM. The guide Reserving a static internal IP address includes instructions for reserving a new static internal IP address and assigning the address when creating the VM.

Here is a static internal IP address in us-central1 on the default network and default subnet:这是default网络和default子网中 us-central1 中的 static 内部 IP 地址:

在此处输入图像描述

This is how I assign the new Static Internal IP to a new vm:这就是我将新的 Static 内部 IP 分配给新虚拟机的方式:

在此处输入图像描述

Somehow, my Static Internal IP is in use by another resource.不知何故,我的 Static 内部 IP 正在被另一个资源使用。

分配新虚拟机失败

The In Use By column of my Static Internal IP shows None .我的 Static Internal IP 的In Use By列显示None Is it possible that this refers only to a subset of GCP resources?这是否可能仅指 GCP 资源的一个子集? Is there a cool-down period between IP reservation and assignment? IP 预留和分配之间是否有冷却期?

The plot thickens plot加厚

When I promote the Internal IP address of an existing vm, I learn that the Specified IP address is not allocated to the project or does not belong to the specified scope.当我提升现有vm的Internal IP地址时,得知Specified IP address is not allocated to the project or does not belong to the specified scope. This must be a scope or subnet issue.这必须是 scope 或子网问题。 I'll keep poking.我会继续戳。

在现有 vm 上提升分配的内部 IP 地址

I think you need to have the VPC network and the IP address in the same us-central1 data-center.我认为您需要在同一个us-central1数据中心中拥有 VPC 网络和 IP 地址。 All I can tell is that the first one screenshot is that it doesn't have any VPC assigned.我只能说第一个屏幕截图是它没有分配任何 VPC。 Disabling DHCP on the default network might cause issues, when spinning up new containers without an IP address.在启动没有 IP 地址的新容器时,在默认网络上禁用 DHCP 可能会导致问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在公共 IP 和 SSH 上运行 GCP VM - Can't run GCP VM on public IP with SSH 如何将 static 外部地址 IP 附加到 GCP Cloud TPU 虚拟机? - How can I attach a static external IP address with a GCP Cloud TPU VM? GCP - 在 VM 重启时更改 wordpress 中的新 IP 的位置 - GCP - Place to change new IP in wordpress on VM restart 如何通过 Terraform 从同一模板创建两个具有不同 static 外部 IP 的 GCP VM 实例? - How to create two GCP VM instances with deferent static external IP from same template via Terraform? 无法连接到 GCP centos7 vm 中的 Jfrog 工件实例 - Can't connect to Jfrog artifactory instance in GCP centos7 vm 无法连接到 GCP VM 权限被拒绝(公钥)错误 - Can't connect to GCP VM Permission denied (publickey) error GCP VM启动脚本sed:无法读取:没有这样的文件或目录 - GCP VM startup script sed: can't read : No such file or directory 在 GCP VM 的外部 ip 上无法访问示例网络服务器 - Sample webserver is not accessible on external ip of GCP VM Ansible“gcp_compute_instance”模块不会将外部 IP 分配给 VM 实例 - Ansible "gcp_compute_instance" module won't assign External IP to VM instance GCP 如何让我通过 GCP 控制台将 SSH 转为内部 IP - How is GCP letting me SSH to internal IP via GCP Console
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM