How to Add IPv4 Addresses on a Vultr VX1™ Cloud Compute Instance
How to Add IPv4 Addresses on a Vultr VX1™ Cloud Compute Instance
Add and manage additional IPv4 addresses on a Vultr VX1™ Cloud Compute instance using the Customer Portal or API.
A public IPv4 address is automatically assigned to an instance upon deployment, unless disabled by default. You can attach multiple IPv4 addresses to the instance to enable external network connections. Additional addresses can also be used for tasks such as IP forwarding, static and dynamic routing.
Follow this guide to add the IPv4 information on a Vultr VX1™ Cloud Compute instance using the Vultr Customer Portal, or API.
Vultr Customer Portal
- Navigate to Products and click Compute.
- Click your target Vultr VX1™ Cloud Compute instance to open its management page.
- Navigate to the Settings tab.
- Click IPv4 on the left navigation menu to view the instance’s public IPv4 network information.
- Click Add Another IPv4 Address to attach an additional public IP address to the instance.
- Check the confirmation prompt and click Add IPv4 Address to attach the new public IP address and restart your instance.
- Click the default IPv4 reverse DNS value and replace it with a custom value to enable reverse DNS on the instance.
Vultr API
- Send a
GETrequest to the List Instances endpoint and note your target instance’s ID.console$ curl "https://api.vultr.com/v2/instances" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
GETrequest to the List Instance IPv4 Information endpoint to view the instance’s IPv4 information.console$ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv4" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
POSTrequest to the Create IPv4 endpoint to attach a new IPv4 address to the instance.console$ 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
POSTrequest to the Create Instance Reverse IPv4 endpoint to enable reverse DNS on the instance.console$ 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>" }'