How to Attach Reserved IPs to a Vultr VX1™ Cloud Compute Instance
How to Attach Reserved IPs to a Vultr VX1™ Cloud Compute Instance
Attach reserved public IPs to a Vultr VX1™ Cloud Compute instance via Portal or API.
Reserved IPs let you reserve specific public IP addresses that you can attach to a Vultr VX1™ Cloud Compute instance. You can attach multiple reserved IPs to the same instance to support advanced networking tasks such as routing, load balancing, and IP forwarding.
Follow this guide to attach reserved IPs to a Vultr VX1™ Cloud Compute instance using the Vultr Customer Portal, or API.
Vultr Customer Portal
- Navigate to Products, expand the Network section, and click Reserved IPs.
- Click your target reserved IP to open its management page.
- Select your target Vultr VX1™ Cloud Compute instance from the Attach to Server drop-down menu.
- Click Attach to apply the reserved IP to 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 Reserved IPs endpoint and note the target reserved IP’s ID.console$ curl "https://api.vultr.com/v2/reserved-ips" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
POSTrequest to the Attach Reserved IP endpoint to attach the reserved IP to the instance.console$ curl "https://api.vultr.com/v2/reserved-ips/{reserved-ip}/attach" \ -X POST \ -H "Authorization: Bearer ${VULTR_API_KEY}" \ -H "Content-Type: application/json" \ --data '{ "instance_id" : "<instance-id>" }'