How to Attach Reserved IPs on a Vultr Bare Metal Instance

Updated on November 27, 2024

Reserved IP addresses enable you to reserve a specific public IP address you can attach to instances. You can attach multiple reserved IPs on a single instance to enable new network interfaces.

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

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products, expand the Network group and click Reserved IPs.

    Navigate to reserved IPs

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

    Open Reserved IP management page

  3. Click the Attach to Server drop-down and select your target Bare Metal instance.

    View the reserved IP management page

  4. Click Attach to apply the reserved IP to your Bare Metal instance.

    Attach a reserved IP to an Bare Metal Instance

  1. Send a GET request to the List Bare Metal Instances endpoint and note the target instance's ID in your output.

    console
    $ curl "https://api.vultr.com/v2/bare-metals" \
      -X GET \
      -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a GET request to the List Reserved IPs endpoint and note the target reserved IP's ID in your output.

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

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

    console
    $ vultr-cli bare-metal list
    
  3. Attach the reserved IP to the Bare Metal instance.

    console
    $ vultr-cli reserved-ip attach <reserved-ip-id> --instance-id <baremetal-instance-id>