Learn how to configure, assign, and manage IPv4 addresses on your Vultr Cloud GPU instance.
A public IPv4 network is available and attached to your Vultr Cloud Compute instance after deployment unless disabled by default. You can attach multiple IPv4 addresses on an instance to enable connections on the main public networking interface.
Follow this guide to manage the IPv4 information on a Vultr Cloud GPU instance using the Vultr Customer Portal, API, or CLI.
Send a GET
request to the List Instances endpoint and note the target instance's ID in your output.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the List Instance IPV4 Information endpoint to view the instance's IPv4 information.
$ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv4" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create IPv4 endpoint to attach a new IPv4 address on the instance.
$ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv4" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"reboot" : true
}'
Send a POST
request to the Create Instance Reverse IPv4 endpoint to enable reverse DNS on the instance.
$ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv4/reverse" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"ip" : "<ipv4-address>",
"reverse" : "<domain>"
}'
List all instances in your Vultr account and note the target instance's ID.
$ vultr-cli instance list
List the instance's IPv4 address information.
$ vultr-cli instance ipv4 list <instance-id>
Create a new public IPv4 address and attach it to the instance.
$ vultr-cli instance ipv4 create <instance-id> --reboot
Create a new IPv4 reverse DNS entry on the instance.
$ vultr-cli instance reverse-dns set-ipv4 <instance-id> --entry <domain> --ip <ipv4-address>
No comments yet.