Promote external IPv6 to static?
What's the command for promoting an externally accessible IPv6 range to static within the VPC subnet?
My VM is accessible at 64bit wide IPv6 range, within a 96bit IPv6 subnet. But I'm afraid these may change without warning... this command seems like it should work:
gcloud compute addresses create myvm-6 --addresses "2600:abcd:abcd:abcd:0:0:0:0" --region us-west2 --subnet neo-ipv6
ERROR: (gcloud.compute.addresses.create) Could not fetch resource:
- Invalid value for field 'resource.address': '2600:abcd:abcd:abcd:0:0:0:0'. Requested IP is not within the range of subnetwork 'neo-ipv6'.
Solution 1:
You can only reserve two types of external IP Addresses. Global & Regional, IPv4 supports both but IPv6 only supports Global.
You cannot reserve IPv6 addresses for VM Instances since it only supports Global IP and can only be used for global load balancers as stated on the documentation.
To know more about Regional and global IP addresses check this link.