> 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/routing-between-internal-vergeio-networks.md).

# 在内部 VergeOS 网络之间路由

以下是在 VergeOS 平台上在两个网络之间建立路由的简单方法。

## 在第一个网络上创建一条网络规则，将流量路由到第二个网络

1. 导航到您希望从中路由流量的第一个网络。
2. 在网络仪表板中，单击 **规则** 左侧导航菜单中的
3. 在 **规则** 菜单，单击 **新建** 以创建新的网络规则。
4. 按以下设置配置该规则：
   * **规则**:
     * 名称： *表示此规则是到第二个网络的路由的名称。*
     * 操作： **路由**
     * 协议： **任意**
     * 方向： **出站**
   * **源**:
     * 类型： **我的网络地址**
   * **目标**:
     * 类型： **其他网络地址**
     * 网络： *第二个网络的名称*
   * **目标**:
     * 类型： **其他网络 DMZ IP**
     * 目标网络： *第二个网络的名称*
5. 完成此规则后，单击 **提交** 以保存该规则。

***

## 在第一个网络上创建一条网络规则，允许来自第二个网络的流量

1. 在同一网络仪表板中，单击 **规则** 左侧导航菜单中的
2. 在 **规则** 菜单，单击 **新建** 以创建新的网络规则。
3. 按以下设置配置该规则：
   * **规则**:
     * 名称： *表示此规则允许来自第二个网络的流量的名称。*
     * 操作： **接受**
     * 协议： **任意**
     * 方向： **入站**
   * **源**:
     * 类型： **其他网络地址**
     * 网络： *第二个网络的名称*
   * **目标**:
     * 类型： **我的网络地址**
4. 完成此规则后，单击 **提交** 以保存该规则。
5. 点击 **应用规则** 以启用该规则。

{% hint style="info" %}
在第一个网络上完成这两条规则后，您还需要在第二个网络上创建相同的规则。
{% endhint %}

***

## 在第二个网络上创建一条网络规则，将流量路由到第一个网络

1. 导航到 **第二个** 您希望从中路由流量的网络。
2. 在网络仪表板中，单击 **规则** 左侧导航菜单中的
3. 在 **规则** 菜单，单击 **新建** 以创建新的网络规则。
4. 按以下设置配置该规则：
   * **规则**:
     * 名称： *表示此规则是到第一个网络的路由的名称。*
     * 操作： **路由**
     * 协议： **任意**
     * 方向： **出站**
   * **源**:
     * 类型： **我的网络地址**
   * **目标**:
     * 类型： **其他网络地址**
     * 网络： *第一个网络的名称*
   * **目标**:
     * 类型： **其他网络 DMZ IP**
     * 目标网络： *第一个网络的名称*
5. 完成此规则后，单击 **提交** 以保存该规则。

***

## 在第二个网络上创建一条网络规则，允许来自第一个网络的流量

1. 在同一网络仪表板中，单击 **规则** 左侧导航菜单中的
2. 在 **规则** 菜单，单击 **新建** 以创建新的网络规则。
3. 按以下设置配置该规则：
   * **规则**:
     * 名称： *表示此规则允许来自第一个网络的流量的名称。*
     * 操作： **接受**
     * 协议： **任意**
     * 方向： **入站**
   * **源**:
     * 类型： **其他网络地址**
     * 网络： *第一个网络的名称*
   * **目标**:
     * 类型： **我的网络地址**
4. 完成此规则后，单击 **提交** 以保存该规则。
5. 点击 **应用规则** 以启用该规则。

***

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

* 最后更新：2024-08-29
* 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/routing-between-internal-vergeio-networks.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.
