Add and manage IPv6 addresses on a Vultr VX1™ Cloud Compute instance using the Customer Portal or API.
Vultr VX1™ Cloud Compute instances support IPv6, but the platform does not assign a public IPv6 address unless you enable it during instance deployment. After enabling IPv6, you can create additional IPv6 addresses, attach them to your instance, and configure reverse DNS records.
Follow this guide to add IPv6 addresses to a Vultr VX1™ Cloud Compute instance using the Vultr Customer Portal or API.
Send a GET request to the List Instances endpoint and note your target instance's ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET request to the Get Instance IPv6 Information endpoint to verify that IPv6 is enabled.
$ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv6" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
If IPv6 is disabled, send a PATCH request to the Update Instance endpoint to enable it.
$ curl "https://api.vultr.com/v2/instances/{instance-id}" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"enable_ipv6": true
}'
After it is enabled, it assigns an IPv6 address to the instance
Send a POST request to the Create Reserved IP endpoint to create a new IPv6 address.
$ curl "https://api.vultr.com/v2/reserved-ips" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"region": "ewr",
"ip_type": "v6",
"label": "Example Reserved IPv6"
}'
If successful, you receive a 200 HTTP response with the reserved IP information.
Send a POST request to the Attach Reserved IP endpoint to attach the new IPv6 address to your instance.
$ curl "https://api.vultr.com/v2/reserved-ips/{reserved-ip-id}/attach" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"instance_id": "{instance-id}"
}'
Send a GET request to the Get Instance endpoint to verify that your instance now lists the new IPv6 address.
$ curl "https://api.vultr.com/v2/instances/{instance-id}" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST request to the Create Instance Reverse IPv6 endpoint to create a reverse DNS record.
$ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv6/reverse" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"ip": "<ipv6-address>",
"reverse": "<domain>"
}'