How to Create a VPC Network

Updated on November 27, 2024

A Vultr Virtual Private Cloud (VPC) network creates a secure and isolated private networking environment for instances to connect and share resources. A VPC network supports IPv4 network addresses to enable communication and data sharing between instances.

Follow this guide to create a Virtual Private Network (VPC) network 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 VPC Networks from the list of options.

    Access VPC

  2. Click Add VPC Network to set up a new VPC.

    Add VPC Network

  3. Select your target Vultr location to create the VPC network.

    Select Location

  4. Click Configure IPv4 Range to enter a custom private IPv4 subnet to assign the network, or keep Auto-Assign IP Range selected.

    Configure address range

  5. Click Custom Routes within the Manage Routes section to set up custom static routes to update on all instances attached to the VPC network, or keep No Routes selected.

    Set Up Static Routes

  6. Enter a new label in the VPC Network Name field to identify the network.

    Set VPC network name

  7. Click Add Network to create the new VPC network and verify that it's available in your Vultr account

    Apply VPC Network

  1. Send POST request to the Create VPC endpoint to create a new VPC network in a specific Vultr location with an automatic IP address range.

    console
    $ curl "https://api.vultr.com/v2/vpcs" \
      -X POST \
      -H "Authorization: Bearer ${VULTR_API_KEY}" \
      -H "Content-Type: application/json" \
      --data '{
        "region" : "<vultr-location-id>",
        "description" : "<label>"
      }'
    

    Visit the Create VPC API page to view additional attributes to apply on the VPC network.

  1. Create a new VPC network in a specific Vultr location with an automatic IP address range.

    console
    $ vultr-cli vpc create --region="ewr" --description="test VPC"
    

    Run vultr-cli vpc create --help to view additional options to apply on the VPC network.