# Upgrade to VPC

## Prerequisites

* You create subnets in zones, and VPCs in availability regions. An availability region consists of several zones, for example, the availability region `LAX-C_D_E` consists of `LAX-C`, `LAX-D` and `LAX-E`.&#x20;
* VPC quota in each availability region:\
  \- 1 default VPC with the IP range of `10.0.0.0/16`\
  \- 2 custom VPCs
* Subnet quota in each zone:\
  \- 1 default subnet with a subset of its VPC IP range, that is `10.0.X.0/24`\
  \- 5 custom subnets
* You can change the IP range of the subnet:\
  \- The subnet is a custom subnet;\
  \- No instances under the custom subnet;\
  \- The custom subnet is available.&#x20;

{% hint style="info" %} <mark style="color:blue;">**Note**</mark>

* <mark style="color:blue;">The network mask cannot be modified.</mark>
* <mark style="color:blue;">The zone of the subnet migrated to a VPC should be a subset of the VPC availability region.</mark>
* <mark style="color:blue;">The IP range of the subnet migrated to a VPC should be a subset of the VPC IP range.</mark>
* <mark style="color:blue;">IP ranges of subnets under the same VPC cannot be overlapped.</mark>
* <mark style="color:blue;">Once you delete the VPC, subnets without instances under this VPC, and associated IP addresses will also be deleted.</mark>
* <mark style="color:blue;">Once a subnet is migrated into a VPC, you cannot migrate it into another VPC. Please plan you private networking in advance.</mark>
  {% endhint %}

## Procedures

1. Go to **Virtual Private Cloud** > **Subnet**, find the isolated subnet you want to upgrade.
2. Click **Upgrade to VPC**.

   <figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2FC67u8bQis3uXOFiRTzSe%2Fimage.png?alt=media&#x26;token=315ad99f-f485-4477-a97e-ba9ab3f46a91" alt=""><figcaption><p>Upgrade to VPC</p></figcaption></figure>

   * If an appropriate VPC exists, you can select it directly;
   * If no appropriate VPC exists, you can click **New VPC**. See [Create a VPC](https://docs.console.zenlayer.com/welcome/bare-metal/get-started/create-a-virtual-private-cloud) for more details.
