# 全球 VPC 与区域子网

全球虚拟私有云（VPC）允许您创建隔离的网络，管理 IP 地址，并在全球范围内建立实例之间的安全连接。

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

全球 VPC 网络为您的弹性算力实例提供互联网连接。每个全球 VPC 网络中的子网都与一个区域关联，并包含一个或多个 IP 地址范围。您可以在每个区域创建多个子网。如果全球 VPC 支持 IPv6 地址范围，子网可以启用 IPv4 和 IPv6 网络堆栈。

弹性算力实例的网卡必须连接到一个子网。当您创建弹性算力实例时，可以指定一个 VPC 网络和子网。如果您省略此配置，将使用 `default` VPC 和子网。

例如：

* 默认全球 VPC：`10.0.0.0/8`
* 香港的默认子网：`10.130.64.0/20`

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

<mark style="color:blue;">全球 VPC 必须仅关联一个</mark> [<mark style="color:purple;">安全组</mark>](/welcome/cn/elastic-compute/security/security-group.md) <mark style="color:blue;">以增强安全性。</mark>
{% endhint %}

## MTU

最大传输单元（MTU）表示在一个帧中可以发送的最大数据量，而无需分片。如果数据包大于 VPC 的 MTU，它需要被分片成更小的部分进行传输。选择合适的 MTU 值以优化网络性能。

* 1300：在某些特殊网络环境中使用的相对较小的尺寸，这些环境对数据包大小有限制
* 1500：以太网中用于数据传输的最常见尺寸
* 9000：在高性能网络中使用的较大尺寸，称为巨型帧，以提高数据传输效率

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

<mark style="color:blue;">MTU 9000 通常仅限于私有网络使用，以避免数据丢失。</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/networking/global-vpc-and-regional-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.
