Hi everyone. I'm trying to set up a simple VM in Google Cloud Platform that can ping
ipv6.google.com successfully. I'm using GCP docs regarding IPv6 support, including :
Here's what I've done so far:
1. In my project, I created a VPC subnet called "proj-net" in region "us-west2", and enabled IPv6 for it using the gcloud command:
gcloud compute networks subnets update proj-net \
--stack-type=IPV4_IPV6 \
--ipv6-access-type=EXTERNAL \
--region=us-west2
2. I created a Debian 10 VM instance called "test-srv-1" then enabled IPv6 with:
gcloud compute instances network-interfaces update test-srv-1 \
--ipv6-network-tier=PREMIUM \
--stack-type=IPV4_IPV6 \
--zone=us-west2-a
According to the documentation, the GCP is to provide a /64 and the NIC should be assigned the first address from that range. And, a default route and firewall rule should be set up to allow outgoing traffic (should allow the ping.)
But, from the test-srv-1 VM, when I try to ping Google with IPv6, I get a No Route error:
From fe80::4001:ff:fe00:0%ens4 (fe80::4001:ff:fe00:0%ens4): icmp_seq=1 Destination unreachable: No route
I'm still learning IPv6 admin concepts as well as learning how GCP deals with addressing/routing for instances. It's challenging to know what GCP is to provide, and what I need to set up on the VM host, so I'm looking for any advice on next steps.
For more information, here is what I can see on the VM:
The IPv6 information for the VM's interface look like this:
2: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1460 state UP qlen 1000
inet6 2600:1900:xxxx:xxxx:0:1::/128 scope global
valid_lft forever preferred_lft forever
inet6 fe80::4001:aff:fe04:2d2/64 scope link
valid_lft forever preferred_lft forever
And the routes:
$ netstat -rn6
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
::1/128 :: U 256 2 0 lo
2600:1900:xxxx:xxxx:0:1::/128 :: U 256 1 0 ens4
fe80::/64 :: U 256 2 0 ens4
::/0 fe80::4001:aff:fe04:201 UGDAe 1024 3 0 ens4
::1/128 :: Un 0 5 0 lo
2600:1900:xxxx:xxxx:0:1::/128 :: Un 0 3 0 ens4
fe80::4001:aff:fe04:2d2/128 :: Un 0 4 0 ens4
ff00::/8 :: U 256 4 0 ens4
::/0 :: !n -1 1 0 lo
Can anyone give me any advice on how to take next steps?