How to Create a VPC 2.0 Network

Updated on September 25, 2024

A Virtual Private Cloud (VPC) 2.0 network creates a secure, enhanced, and isolated private networking environment for instances to connect and share resources. VPC 2.0 networks support IPv4 network addresses to enable communication between instances.

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

    Access VPC

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

    Add VPC 2.0 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. Enter a new label in the VPC 2.0 Network Description field to identify the network.

    Set VPC network name

  6. 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 a VPC 2.0 Network endpoint to create a new VPC 2.0 network in a specific Vultr location with an automatic IP address range.

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

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

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

    console
    $ vultr-cli vpc2 create --region="ewr" --description="example-vpc" --ip-type="v4"
    

    Run the vultr-cli vpc2 create --help command to view additional options to enable on the VPC 2.0 network.