How to Create a Vultr Virtual Private Cloud (VPC)

Introduction

Vultr has renamed Private Networking to Virtual Private Cloud (VPC). You’ll see both VPC and Private Network in our documentation during this transition. These are the same feature; only the name has been changed.

A Vultr Virtual Private Cloud (VPC) is an easy-to-configure private network system with powerful configuration tools. With a Vultr VPC, you can create shared or segmented private networks.

VPC Diagram

You can use a VPC to segment your cloud servers into logical groups or harden your public interface while allowing permissive access from other cloud servers in the same VPC. You can run your backups, replication, and other back-end tasks in complete privacy without exposing the traffic to the public internet.

VPCs are entirely private, even from each other. Other customers cannot see traffic on your VPC private network, and your VPCs cannot pass traffic to each other. If you need to pass traffic between your VPCs or to another customer’s VPC, you can set up VPC peering. See the VPC Peering guide for more details.

VPC Features

  • VPCs cannot span locations.
  • Vultr does not bill for VPC bandwidth.
  • A VPC supports up to 126 cloud server instances.
  • VPCs support all Vultr instance types except Bare Metal.
  • A cloud server can only be attached to one VPC at a time.
  • For optimal performance, set the VPC adapter MTU to 1450.
  • Vultr supports multiple VLANs over a single VPC with 802.1q tags.
  • VPCs do not have DHCP. You must manually configure the IP addresses or supply your own DHCP server.
  • You can create up to five VPCs per location. If you require more, please contact our engineering team.

We provide network configuration examples for many popular operating systems on the server’s Settings page. Select IPv4, and then follow the networking configuration link to view the examples.
Note: Your network adapter name may not match these examples. See How to Find the Network Adapter Names for a Vultr Cloud Server to learn more.

We also have generic examples for these operating systems:

  • How to Configure a VPC on AlmaLinux
  • How to Configure a VPC on CentOS
  • How to Configure a VPC on Debian
  • How to Configure a VPC on Fedora
  • How to Configure a VPC on Fedora CoreOS
  • How to Configure a VPC on FreeBSD
  • How to Configure a VPC on OpenBSD
  • How to Configure a VPC on Rocky Linux
  • How to Configure a VPC on Ubuntu
  • How to Configure a VPC on Windows Server
  • How to Configure a VPC on VzLinux

How to Create a VPC

  1. Navigate to the Network tab.
  2. Select the VPC Networks menu item.
  3. Click the blue plus icon.
  4. Choose Add VPC Network.

    NetworkConfig

  5. Select a location.

  6. Accept an automatic IP range or configure it manually. If you choose manual configuration, you’ll find a helpful link to our subnet calculator.

    NetworkConfig

    You can use any RFC1918 private address range, 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16. When you attach Vultr products such as Load Balancers to the VPC, they will automatically choose non-conflicting addresses.

  7. In most cases, you should choose the Auto-Assign option in Manage Routes. If your configuration requires advanced configuration, choose Configure Custom Routes and use the Set Routes section.

    Add VPC

  8. Give the VPC a name and click Add Network.

After you’ve created a VPC, you can assign it to an instance. To be compatible with other Vultr products, like Load Balancers, use addresses in the same range you chose in step 6.

Assign or Delete an Instance VPC

Add VPC

Navigate to the server Settings page and click IPv4. If you haven’t created a VPC yet, use the Manage link to create one. You’ll find it next to the VPC Network title.

  • To detach a VPC from an instance, use the trashcan icon.
  • To attach a VPC to an instance, select the VPC from drop-down selector, then click Attach VPC.

The server will reboot to activate the network adapter.

Manage VPCs via the API

The Vultr API offers several endpoints to manage VPCs.

Manage a Network

  • Create a new VPC in a region.
  • Get information about a VPC.
  • Update information for a VPC.
  • Delete a VPC.

List All VPCs

  • Get a list of all VPCs in your account.

Manage the VPC for an Instance

  • List the VPCs for an instance.
  • Attach a VPC to an instance.
  • Detach a VPC from an instance.

More about VPCs

These guides explain how to use multiple VPCs, and multiple public IPs, on a cloud server instance.

  • Configure AlmaLinux with Multiple IP Addresses
  • Configure CentOS with Multiple IP Addresses
  • Configure Debian with Multiple IP Addresses
  • Configure Fedora with Multiple IP Addresses
  • Configure FreeBSD with Multiple IP Addresses
  • Configure OpenBSD with Multiple IP Addresses
  • Configure Rocky Linux with Multiple IP Addresses
  • Configure Ubuntu with Multiple IP Addresses
  • Configure Windows with Multiple IP Addresses via PowerShell
  • Configure Windows with Multiple IP Addresses via GUI
  • Configure VzLinux with Multiple IP Addresses

Leave a Comment