# 升级到 VPC

## 前提条件

* 您在区域中创建子网，在可用区中创建虚拟私有云。一个可用区由多个区域组成，例如，可用区 `LAX-C_D_E` 包括 `LAX-C`、`LAX-D` 和 `LAX-E`。
* 每个可用区的虚拟私有云配额：\
  \- 1 个默认虚拟私有云，IP 地址块为 `10.0.0.0/16`\
  \- 2 个自定义虚拟私有云
* 每个区域的子网配额：\
  \- 1 个默认子网，其 IP 地址块为虚拟私有云 IP 地址块的子集，即 `10.0.X.0/24`\
  \- 5 个自定义子网
* 您可以更改子网的 IP 地址块：\
  \- 子网为自定义子网;\
  \- 自定义子网下无实例;\
  \- 自定义子网可用。

{% hint style="info" %} <mark style="color:blue;">**注意事项**</mark>

* <mark style="color:blue;">网络掩码无法修改。</mark>
* <mark style="color:blue;">迁移至虚拟私有云的子网所在区域应为虚拟私有云可用区的子集。</mark>
* <mark style="color:blue;">迁移至虚拟私有云的子网 IP 地址块应为虚拟私有云 IP 地址块的子集。</mark>
* <mark style="color:blue;">同一虚拟私有云下的子网 IP 地址块不能重叠。</mark>
* <mark style="color:blue;">一旦删除虚拟私有云，该虚拟私有云下无实例的子网及其关联的 IP 地址也会被删除。</mark>
* <mark style="color:blue;">一旦子网迁移至虚拟私有云，就不能再迁移到其他虚拟私有云。请提前规划您的私有网络。</mark>
  {% endhint %}

## 操作步骤

1. 前往 **虚拟私有云** > **子网**，找到您想要升级的隔离子网。
2. 点击 **升级至虚拟私有云**。

   <figure><img src="/files/5ibxBy9D637V69u4QJ4v" alt=""><figcaption><p>升级至虚拟私有云</p></figcaption></figure>

   * 如果存在合适的虚拟私有云，您可以直接选择；
   * 如果没有合适的虚拟私有云，您可以点击 **新建虚拟私有云**。详情请参阅 [创建虚拟私有云](/welcome/cn/bare-metal/get-started/create-a-virtual-private-cloud.md)。


---

# 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/cn/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.
