> 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/run-the-platform/zh/wang-luo/assign-external-ip.md).

# 将外部 IP 地址分配给内部网络

通过自动创建入站连接的路由规则，将公共外部 IP 地址分配给内部 VergeOS 网络。

外部 IP 地址可以分配给内部网络。分配外部 IP 时，会自动创建相应的路由规则。

## 将外部 IP 分配给内部网络

1. 从 **外部网络仪表板**，点击 **IP 地址** 左侧菜单中的。
2. 单击 **新建**.
3. 在 ***类型*** 字段中，选择 **虚拟 IP**
4. 在 ***IP 地址*** 字段中，输入 **公网 IP 地址**.
5. 输入 ***主机名***.
6. 可选地， ***描述*** 可以输入以记录额外的管理信息。
7. 在 ***所有者类型*** 下拉列表中，选择 **网络**.
8. 在 ***所有者*** 下拉列表中，选择 **内部网络的名称**.
9. 单击 **提交**.
10. 在仍处于 **外部网络仪表板**，点击 **应用规则** 左侧菜单中（以应用于外部网络）。
11. 导航到 **内部网络仪表板**
12. 单击 **应用规则** （以应用于内部网络）。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.verge.io/run-the-platform/zh/wang-luo/assign-external-ip.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
