How to Manage IPv4 on a Vultr Cloud Compute Instance

Updated on November 27, 2024

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 Compute instance using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and click Compute.

    Vultr Customer Portal

  2. Click your target instance to open its management page.

    View active instance subscriptions

  3. Navigate to the Settings tab.

    Navigate to the Settings Tab

  4. Click IPv4 on the left navigation menu to view your instance's public IPv4 network information.

    Access IPV4 Settings

  5. Click Add Another IPv4 Address to attach another public IP address to the instance.

    Add a new IPV4 address

  6. Check the confirmation prompt and click Add IPv4 Address to attach the new public IP address and restart your instance.

    Confirm the new IPV4 Address

  7. Click the default IPv4 reverse DNS value and replace it with your values to enable reverse DNS on your instance.

    Enable IPv4 Reverse DNS

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

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

    console
    $ vultr-cli instance list
    
  2. List the instance's IPv4 address information.

    console
    $ vultr-cli instance ipv4 list <instance-id>
    
  3. Create a new public IPv4 address and attach it to the instance.

    console
    $ vultr-cli instance ipv4 create <instance-id> --reboot
    
  4. Create a new IPv4 reverse DNS entry on the instance.

    console
    $ vultr-cli instance reverse-dns set-ipv4 <instance-id> --entry <domain> --ip <ipv4-address>