# 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`.
* 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.

{% 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="/files/RVOTPctpMvuR1u8ohQOc" 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](/welcome/bare-metal/get-started/create-a-virtual-private-cloud.md) for more details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.console.zenlayer.com/welcome/bare-metal/get-started/upgrade-to-vpc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
