Vultr DocsLatest Content


How to Attach a VPC Network to a Vultr VX1™ Cloud Compute Instance

Updated on 21 November, 2025

Attach a secure VPC network to a Vultr VX1™ Cloud Compute instance via Portal or API.


A Virtual Private Cloud (VPC) network creates a secure and isolated private networking interface to enable connections to other instances attached to the same network. You can attach multiple instances to the VPC network to enable secure connections between a Vultr VX1 Cloud Compute instance and other instances attached to the same VPC network.

Follow this guide to attach a VPC network to a Vultr VX1™ Cloud Compute instance using the Vultr Customer Portal, or API.

  • Vultr Customer Portal
  • Vultr API
  1. Navigate to Products and click Compute.
  2. Click your target Vultr VX1™ Cloud Compute instance to open its management page.
  3. Navigate to the Settings tab.
  4. Click IPv4 on the left navigation menu.
  5. Click Enable VPC.
  6. Click Enable VPC again in the confirmation prompt. This action attaches your instance to the default VPC in the same region. If no VPC exists in that region, the platform creates a new VPC automatically and attaches your instance to it..
  7. To attach multiple VPC networks to the same instance, use the drop-down menu on the same page to select additional VPCs. Ensure that the VPC subnets do not overlap, or the attachment will cause routing conflicts.
  1. Send a GET request 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}"
    
  2. Send a GET request to the List VPCs endpoint to list all available VPCs and note the target VPC network ID.

    console
    $ curl "https://api.vultr.com/v2/vpcs" \
      -X GET \
      -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  3. Send a POST request to the Attach VPC to Instance endpoint to attach the VPC network to the instance.

    console
    $ curl "https://api.vultr.com/v2/instances/{instance-id}/vpcs/attach" \
      -X POST \
      -H "Authorization: Bearer ${VULTR_API_KEY}" \
      -H "Content-Type: application/json" \
      --data '{
        "vpc_id": "<vpc-id>"
      }'
    

    If successful, you receive a 200 HTTP response.

Comments