A Virtual Private Cloud (VPC) is a private network interface for collections of DigitalOcean resources. VPC networks provide a more secure connection between resources because the network is inaccessible from the public internet and other VPC networks. Traffic within a VPC network doesn't count against bandwidth usage.
To create a VPC network:
From the control panel, click Networking in the main menu, then click the VPC tab. In the VPC tab, click Create VPC Network.
Choose a datacenter region. You cannot add resources to VPC networks that reside in different datacenter regions.
Select how you want your network's IP range to be generated. We strongly recommend choosing Generate an IP range for me to avoid overlapping network ranges.
Name the network and, optionally, add a description. You can change the name and description after creation.
Click Create VPC Network.
To add a new resource to a VPC network:
From the Create menu in the top right of the control panel, click the kind of resource you want to create, either Droplets, Clusters, Databases, or Load Balancers.
On the create page, choose the specifications for your resource, including the VPC network. You must create the resource in the same datacenter region as the VPC network.
Enter a name for the resource, then click Create.
The new resource is automatically added to the VPC network on creation.
To migrate an existing Droplet to a different VPC network, you need to create a snapshot of the Droplet and then recreate the Droplet in the network:
Shut down the Droplet with
sudo shutdown -h now.
From the control panel, click the Droplet you want to snapshot.
From the Droplet's details page, click Snapshots, then click Take Snapshot. This creates an image of the Droplet in its current state that can be used to create new Droplets.
From the Create menu, click Droplets.
On the Create Droplets page, click the Snapshots tab and select the snapshot you want to create a new Droplet from.
Choose a plan for the Droplet.
Under Choose datacenter region, choose the region that your VPC network resides in, then select the target VPC network from the Choose a VPC network menu.
Fill out the rest of the choices on the create page, then click Create. The new Droplet is created within your VPC network.