> 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/zu-hu/assign-ip-to-tenant.md).

# 将外部 IP 地址分配给租户

为租户分配外部 IP 地址的说明，包括创建虚拟 IP 以及应用网络规则以实现租户外部访问。

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

## 为租户分配外部 IP

1. 导航到相应的主机 **外部网络仪表板**; 这应该是租户具有外部访问权限的外部网络。在大多数情况下，这将是名为“External”的网络。
2. 单击 **IP 地址** 左侧菜单中的。
3. 单击 **新建**.
4. 在 ***类型*** 字段中，选择 **虚拟 IP**.
5. 在 ***IP 地址*** 字段中，输入 **外部 IP 地址**.
6. ***主机名*** 可以留空。
7. **可选地**，可 ***描述*** 可以输入以记录额外的管理信息。
8. 在 ***所有者类型*** 下拉列表中，选择 **租户**.
9. 在 ***所有者*** 下拉列表中，选择 **租户名称**.
10. 单击 **提交** 在页面底部。
11. 从 **外部网络仪表板**，单击 **应用规则** 在左侧菜单中（以应用到主机外部网络）。

{% hint style="success" %}
**要返回外部网络仪表板，您可以点击顶部相应的面包屑导航，或使用浏览器的后退按钮。**
{% endhint %}

12. 导航到 **租户网络仪表板** （从顶部菜单：Networks > Dashboard > Tenants > 双击目标租户网络）。
13. 单击 **应用规则** （以应用到租户网络）。


---

# 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/zu-hu/assign-ip-to-tenant.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.
