> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/knowledge-base/zh/networking/create-external-network.md).

# 如何创建外部网络

本指南提供了在 VergeOS 中创建外部网络的步骤。此示例假定 VergeOS 中的物理网络名为 **外部交换机**，新网络的 VLAN 为 **50**，并且使用的是 **静态 IP 地址** 。

## 步骤

1. **访问网络配置：**
   * 导航到 **网络** > **新建外部**.
2. **配置网络设置：**
   * **网络名称**：为您的网络输入一个名称。在本示例中，使用 **WAN1**.
   * **第二层类型**：设置为 **VLAN**.
   * **第二层 ID**：输入 VLAN ID，在本示例中为 **50**.
   * **MTU**：保持为 **1500** （高级用户可根据需要进行调整）。
   * **接口网络**：选择物理网络，在本示例中为 **外部交换机**.
3. **配置网络路由器：**
   * **IP 地址类型**：选择 **静态**。（如果使用 DHCP，请在此处选择它，并跳过其余路由器步骤）。
   * **IP 地址**：输入此网络的 IP 地址。示例： **192.168.212.2**.
   * **网络地址**：以 CIDR 格式输入网络地址。示例： **192.168.212.0/24**.
   * **网关监控**：建议启用此功能以提高网络可靠性。
4. **保存并激活网络：**
   * 点击 **保存** 并等待网络启动。一旦其显示为 **运行中**，继续设置路由规则。
5. **添加默认路由规则：**
   * 点击 **规则** 并在 **新建**.
   * **规则名称**：为此规则输入一个名称，例如 **默认路由**.
   * **操作**：选择 **路由**.
   * **方向**：选择 **出站**.
   * **源和目标筛选条件**：保持为 **任意** 以及 **默认** ，因为这是默认路由。
   * **目标**:
     * **类型**：选择 **IP/自定义**.
     * **目标 IP**：输入您网关的路由器 IP。示例： **192.168.212.1**.
   * 点击 **保存**，然后 **应用规则**.

## 反馈

{% hint style="info" %}
**需要帮助吗？**

如果您在创建外部网络时有任何问题或遇到任何故障，请联系我们的支持团队寻求帮助。
{% endhint %}

***

{% hint style="info" %}
**文档信息**

* 上次更新：2024-10-30
* VergeOS 版本：4.12.6
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.verge.io/knowledge-base/zh/networking/create-external-network.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
