How to Attach Reserved IPs to a Vultr Instance

Updated on November 27, 2024

Attaching a reserved IP to an instance enables a new public network address on the instance's main network interface. You can attach multiple reserved IPs on an instance to enable fast resolution and system management.

Follow this guide to attach reserved IPs to a Vultr instance using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products, expand the Network drop-down and select Reserved IPs from the list of options.

    Access the Vultr Reserved IPs page

  2. Click your target reserved IP to open its management page.

    Manage a Reserved IP

  3. Click the Attach to Server drop-down, select your target instance and click Attach.

    Attach a reserved IP to a server

  4. Click Attach Reserved IP in the confirmation prompt to apply the reserved IP to your instance.

    Confirm Attach Reserved IP Prompt

  1. Send a GET request 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}"
    
  2. Send a GET request to the List Instances endpoint and note the target instance ID.

    console
    $ curl "https://api.vultr.com/v2/instances" \
      -X GET \
      -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  3. Send a POST request 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" : "<target-instance-id>"
       }'
    
  1. List all active reserved IPs in your Vultr account and note the target reserved IP ID.

    console
    $ vultr-cli reserved-ip list
    
  2. List all instances in your Vultr account and note the target instance ID.

    console
    $ vultr-cli instance list
    
  3. Attach the reserved IP to the instance.

    console
    $ vultr-cli reserved-ip attach <reserved-ip-id> --instance-id="<target-instance-id>"