简体   繁体   English

gcp 是否允许 vm 具有到 vm 实例的内部或外部 IPv6 地址

[英]Does gcp allow vm to have internal or external IPv6 address to vm instances

When I log onto vm in shell.当我在 shell 中登录 vm 时。 I can find addresses of vm to have both ipv4 and ipv6 addresses.我可以找到同时具有 ipv4 和 ipv6 地址的 vm 地址。 But I am unable to use IPv6 address within the same network to ping onto the vm.但是我无法在同一网络中使用 IPv6 地址来 ping 虚拟机。 I had a question that does GCP block these我有一个问题,GCP 会阻止这些

Google Cloud Platform allows users to connect to Global Load Balancer (this has external IP) using IPv6 but VPC Network DO NOT support IPv6 . Google Cloud Platform 允许用户使用 IPv6 连接到 Global Load Balancer(具有外部 IP),但VPC 网络不支持 IPv6。

This article explains how GCP Global Load balancer allows IPv6 connection and then proxies to VM instances using IPv4.本文介绍了 GCP 全局负载均衡器如何允许 IPv6 连接,然后使用 IPv4 代理到 VM 实例。

Note from the GCP Documentation GCP文档中的注释

VPC networks only support IPv4 unicast traffic. VPC 网络仅支持 IPv4 单播流量。 They do not support broadcast, multicast, or IPv6 traffic within the network;它们不支持网络内的广播、多播或 IPv6 流量; VMs in the VPC network can only send to IPv4 destinations and only receive traffic from IPv4 sources. VPC 网络中的虚拟机只能发送到 IPv4 目标,并且只能接收来自 IPv4 源的流量。 However, it is possible to create an IPv6 address for a global load balancer.但是,可以为全局负载均衡器创建 IPv6 地址。

So, you can connect to GCP Instances using IPv6 over public internet (external IP) and VM instances DO Not have internal IPv6 IP.因此,您可以通过公共互联网(外部 IP)使用 IPv6 连接到 GCP 实例,并且虚拟机实例没有内部 IPv6 IP。

Google cloud now supports external ipv6 on VM instances. Google Cloud 现在支持虚拟机实例上的外部 ipv6。 Each instance can get a /96 external ip range and it can be used to access internet (without NAT) or be used for VM to VM traffic.每个实例可以获得一个 /96 外部 ip 范围,它可用于访问互联网(无 NAT)或用于 VM 到 VM 的流量。

At this moment (July 2021) it's only supported limited regions:目前(2021 年 7 月)仅支持有限区域:

  • asia-east1亚洲-东方1
  • asia-south1亚南1
  • europe-west2欧洲西部2
  • us-west2美国西部2

See more detailed in详见

https://cloud.google.com/compute/docs/ip-addresses/configure-ipv6-address https://cloud.google.com/vpc/docs/vpc#ipv6-addresses https://cloud.google.com/compute/docs/ip-addresses/configure-ipv6-address https://cloud.google.com/vpc/docs/vpc#ipv6-addresses

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM