> 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/network-blocks.md).

# 网络块

### 网络块概览

VergeOS 中的网络块是一种强大的方式，可将多个 IP 地址分配给租户或网络中的工作负载。与虚拟交换机端口相比，更推荐使用这种方法，因为 VergeOS 侧重于第 3 层连接，避免了与第 2 层连接（如虚拟交换机端口）相关的常见问题。网络块还允许将公网 IP 地址直接分配给内部网络或租户中的虚拟机。

### 创建网络块

1. 在 **VergeOS 界面**，导航到 **外部网络** ，网络块将从此处生成。
2. 在左侧菜单中，选择 **网络块**，然后点击 **新建**.
3. 请输入网络块信息，采用 **CIDR 表示法** （例如，a.b.c.d/n）。
4. 要在创建时将该块分配给租户，请设置 **所有者类型** 更改为 **租户**，然后从中选择租户 **所有者** 下拉菜单。
5. 提交您的操作以创建该块。
6. 要应用自动创建的规则，请选择 **外部** 页眉中的面包屑导航以返回网络仪表板。然后，选择 **应用规则** 左侧菜单中的该项，或点击通知弹窗。

### 从网络块创建网络

1. 使用必要的凭据登录租户的 URL。
2. 导航到 **网络**，然后前往 **外部网络仪表板**.
3. 在左侧菜单中，选择 **网络块**.
4. 选择分配给该租户的网络块。
5. 点击 **新建网络** 在左侧菜单中。
6. 为新网络指定一个 **name**。其余详细信息将根据 CIDR 信息预先填充。
7. 如有必要，可修改表单中的任何详细信息，然后提交以创建网络。
8. 创建后，系统将重定向到新网络的仪表板。必要的路由和接受规则将自动设置，但请注意 **默认情况下，入站流量将被丢弃**。请添加适当的防火墙规则以允许入站访问。
9. **开启** 使用左侧菜单中的选项来管理该网络。
10. 将任何所需的虚拟机分配到该网络，并 **测试连接**.

***


---

# 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/network-blocks.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.
