Google 云 - 向 VM 添加额外的内部 IP
Google Cloud - Adding additional Internal IP to VM
我正在尝试在 Google 云平台 中构建一个托管多个网站(GBP、IE、FR、DK 等)的网络服务器
一般来说,我们给服务器静态分配一个IP范围,在IIS中设置绑定,然后使用虚拟IP进行负载均衡。
在 GCP 中分配另一个内部 IP 似乎几乎不可能。很多关于额外外部 IP 的指南,但我们不希望 public 像这样面向网络服务器。
有人知道如何向虚拟机/实例添加额外的内部 IP 吗?
此外,我尝试在网络适配器设置中将我分配给实例的内部地址更改为静态地址,接下来我知道无论是出于爱还是金钱我都无法访问我的 VM,不得不删除并重新创建.如果我进入高级设置以添加额外的静态 IP,显然设置为 DHCP,因此无法添加额外的 IP。
谢谢大家
我从 Google 组中的 GCE 讨论组收到的答案:
"You can add additional internal IP addresses to a VM instance. This is possible by enabling IP forwarding for the VM, creating a static network route, adding appropriate firewall rules, and setting additional internal IP addresses to network adapter of Windows. These steps are described in this article for Linux machines (https://cloud.google.com/compute/docs/networking#set_a_static_target_ip_address). The same steps are valid for Windows VMs. You will need to keep the initial internal IP address, subnet mask, gateway address and DNS settings of the adapter and manually enter them in properties of IPv4 of the network adapter. The below is a screenshot of my configuration on a VM instance (Windows 2008 R2) that perfectly works."
更新:
现在,您可以在 Google Compute Engine 上创建具有多个网络接口的实例并分配 IP。有关详细信息,请参阅此 public documentation link。但是,目前它有以下限制:
- VM 上的任何网络接口都不支持别名 IP 范围
启用了多个网络接口。
- 虚拟机完成后不能修改或删除网络接口
已创建。
我正在尝试在 Google 云平台 中构建一个托管多个网站(GBP、IE、FR、DK 等)的网络服务器
一般来说,我们给服务器静态分配一个IP范围,在IIS中设置绑定,然后使用虚拟IP进行负载均衡。
在 GCP 中分配另一个内部 IP 似乎几乎不可能。很多关于额外外部 IP 的指南,但我们不希望 public 像这样面向网络服务器。
有人知道如何向虚拟机/实例添加额外的内部 IP 吗?
此外,我尝试在网络适配器设置中将我分配给实例的内部地址更改为静态地址,接下来我知道无论是出于爱还是金钱我都无法访问我的 VM,不得不删除并重新创建.如果我进入高级设置以添加额外的静态 IP,显然设置为 DHCP,因此无法添加额外的 IP。
谢谢大家
我从 Google 组中的 GCE 讨论组收到的答案:
"You can add additional internal IP addresses to a VM instance. This is possible by enabling IP forwarding for the VM, creating a static network route, adding appropriate firewall rules, and setting additional internal IP addresses to network adapter of Windows. These steps are described in this article for Linux machines (https://cloud.google.com/compute/docs/networking#set_a_static_target_ip_address). The same steps are valid for Windows VMs. You will need to keep the initial internal IP address, subnet mask, gateway address and DNS settings of the adapter and manually enter them in properties of IPv4 of the network adapter. The below is a screenshot of my configuration on a VM instance (Windows 2008 R2) that perfectly works."
更新:
现在,您可以在 Google Compute Engine 上创建具有多个网络接口的实例并分配 IP。有关详细信息,请参阅此 public documentation link。但是,目前它有以下限制:
- VM 上的任何网络接口都不支持别名 IP 范围 启用了多个网络接口。
- 虚拟机完成后不能修改或删除网络接口 已创建。