# 创建子网

区域子网允许您在指定区域内自定义子网配置，以帮助增强网络架构，实现精确控制和更高的效率。

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

<mark style="color:blue;">默认子网不能被删除。</mark>
{% endhint %}

## 操作步骤

1. 转到 **子网** > **创建子网**。

   <div align="left"><figure><img src="/files/1GNMtn58ZlbSEbgNRjfm" alt="" width="563"><figcaption></figcaption></figure></div>
2. 选择全球 VPC 和子网所属的区域。
3. 选择子网的 IP 堆栈类型。支持 **内网 IP** 和 **内网 IP & 内网 IPv6** 堆栈类型。创建后，IP 堆栈只能从内网 IP 更改为内网 IP & 内网 IPv6，不能反向更改。
   * 内网 IP\
     配置子网的内网 IP 范围。
   * 内网 IP & 内网 IPv6\
     配置子网的内网 IP 范围和内网 IPv6 范围。\
     如果所选的 VPC 支持内网 IPv6 访问，您可以选择公有和内网 IPv6 访问类型。将为您分配一个 'fdxxxxxx:xxxx::/64' 网络范围。
4. 标记子网。

## 更多操作

转到 **子网** > **操作** 以执行以下操作。

* 修改内网 IPv4 范围\
  当实例添加到子网中时，您不能更改内网 IPv4 范围。请先移除实例，然后再修改 IPv4 范围。您只能在子网所属的 VPC 范围内更改 IPv4 范围。
* 分配内网 IPv4\
  为子网中的所需实例分配内网 IPv4 地址。
* 更改 IP 堆栈类型

  <div align="left"><figure><img src="/files/TOo6nh3xEfbbMBMHR4XB" alt="" width="557"><figcaption></figcaption></figure></div>

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

<mark style="color:blue;">IP 堆栈只能从内网 IP 更改为内网 IPv4 & 内网 IPv6，不能反向更改。</mark>
{% endhint %}


---

# 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/elastic-compute/get-started/manage-networking/create-a-subnet.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.
