Is IPV6 only subnet possible with GCP? - amazon-web-services

Hi AWS has support for ipv6 only subnets as described below
https://aws.amazon.com/blogs/networking-and-content-delivery/introducing-ipv6-only-subnets-and-ec2-instances/
but GCP supports only two stacks IPV4 only and dual stack as described here
https://cloud.google.com/vpc/docs/subnets#subnet-types
IS there a way to create IPV6 only subnets in GCP?

Unfortunately, IPv6 addresses on a VM interface can only be configured on an interface that is connected to a dual stack subnet.
Dual Stack Subnets comes with both IPv4 and IPV6 subnet ranges. Google Cloud does not support IPv6 only interface for now.

Related

How to assign IPV6 on Google Cloud VM instances

Good day,
I am new to google cloud plateform please help.
How can i assgin ipv6 for my instance on google cloud, i have created an ipv6 but is says not in use just as in picture below.
Based on the documemtation shared by #Ferregina Pelona.
You can configure IPv6 addresses on a virtual machine instance (VM) if the subnet that the VM is connected to has an IPv6 range configured. First thing to do, make sure that there is a IPv6 configured into your network.
Though, Google Cloud Platform allows users to connect to Global Load Balancer (this has external IP) using IPv6 but VPC Network DO NOT support IPv6.
Check out this documentation on GCP's Global Load Balancer.

How can I ping IPv6 from a Google cloud instance

I have a Google cloud instance. I do not need IPv6 but I need to be able to connect to public IPv6. I have added a firewall rule which allows ::/0 for outgoing traffic. Now When I try to ping ipv6.google.com, it gives response- network is unreachable.
What do I need to do to be able to ping any IPv6 like ipv6.google.com.
Thank you.
Google cloud now supports external ipv6 on VM instances. 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.
At this moment (July 2021) it's only supported limited regions:
asia-east1
asia-south1
europe-west2
us-west2
See more detailed in
https://cloud.google.com/compute/docs/ip-addresses/configure-ipv6-address https://cloud.google.com/vpc/docs/vpc#ipv6-addresses
Note that connecting to Google APIs and services using external IPv6 addresses is currently not supported and will result in a destination unreachable ICMP response. Most applications will fallback to IPv4 transparently. So don't be surprise if you cannot ping ipv6.google.com. You should able to ping other ipv6 websites.

I cannot connect by ipv6 from aws ec2 after all the essential steps (I learned from the internet)

After referencing many of the websites teaching me how to use ipv6 from AWS EC2 instances, I find it not working. Why?
From AWS EC2 Console,
it seems that my only instance has its ipv6 address.
And I've opened the ICMP IPV6, together with other necessary ipv6 ports, with source identified both 0.0.0.0/0, ::/0.
I've configured the VPC and subnet associated with that instance so they have ipv6 CIDR, and will automatically dispatch ipv6 addresses.
I've also configured that the router associated with the subnet, to have both 0.0.0.0/0, ::/0 paired with igw-xxx (Internet gateway? I guess)
After all these operations, I still can't find any correct records when in shell, typing
ip -6 addr which I believe there should be some v6 address not starting with fe80:, but actually not.
Is there anything else I should do?
Egress Only Internet Gateway(EOIG) is needed to access IPv6 websites from the EC2 instances in private subnet.
In addition, NAT Gateway(NATG) is needed to access IPv4 websites from the EC2 instances in private subnet.
EOIG (Only IPv6 outgoing traffic)
NATG (Only IPv4 outgoing traffic)
You can find EOIG on the left pane which NAT Gateway also is. Then, make one EOIG then set it to the route table associated with private subnet.

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

When I log onto vm in shell. I can find addresses of vm to have both ipv4 and ipv6 addresses. But I am unable to use IPv6 address within the same network to ping onto the vm. I had a question that does GCP block these
Google cloud now supports external ipv6 on VM instances. 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.
At this moment (July 2021) it's only supported limited regions:
asia-east1
asia-south1
europe-west2
us-west2
See more detailed in
https://cloud.google.com/compute/docs/ip-addresses/configure-ipv6-address
https://cloud.google.com/vpc/docs/vpc#ipv6-addresses
Google Cloud Platform allows users to connect to Global Load Balancer (this has external IP) using IPv6 but VPC Network DO NOT support IPv6 .
This article explains how GCP Global Load balancer allows IPv6 connection and then proxies to VM instances using IPv4.
Note from the GCP Documentation
VPC networks only support IPv4 unicast traffic. They do not support broadcast, multicast, or IPv6 traffic within the network; VMs in the VPC network can only send to IPv4 destinations and only receive traffic from IPv4 sources. However, it is possible to create an IPv6 address for a global load balancer.
So, you can connect to GCP Instances using IPv6 over public internet (external IP) and VM instances DO Not have internal IPv6 IP.

VPC firewall rule for IPv6

It seems that the firewall rules for the current VPN setting doesn't allowing entering IPv6 address at all, ::/0 etc are not implemented.
Is there a way to work around this? It's interesting if that's the case that VPC allowing creating IPv6 network but not allowing firewall to allow incoming.
IPv6 is not supported: https://cloud.google.com/vpc/docs/vpc#specifications
VPC networks only support IPv4 unicast traffic. They do not support broadcast, multicast, or IPv6 traffic within the network: VMs in the VPC network can only send to IPv4 destinations and only receive traffic from IPv4 sources. It is possible to create an IPv6 address for a global load balancer, however.
Google cloud now supports external ipv6 on VM instances. 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.
At this moment (July 2021) it's only supported limited regions:
asia-east1
asia-south1
europe-west2
us-west2
See more detailed in
https://cloud.google.com/compute/docs/ip-addresses/configure-ipv6-address
https://cloud.google.com/vpc/docs/vpc#ipv6-addresses
VPC firewall rules also supports IPv6 now:
https://cloud.google.com/vpc/docs/firewalls#specifications
Firewall rules support IPv4 connections. IPv6 connections are also supported in VPC networks that have IPv6 enabled. When specifying a source for an ingress rule or a destination for an egress rule by address, you can specify IPv4 or IPv6 addresses or blocks in CIDR notation.
Each firewall rule can contain either IPv4 or IPv6 ranges, but not both.