> 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/plan-and-deploy/zh/shi-shi-zhi-nan/network-design.md).

# 网络设计

请先查看 [核心概念](/plan-and-deploy/zh/shi-shi-zhi-nan/concepts.md) ，以便在查看本文档之前进一步了解 VergeOS 网络类型。

{% hint style="info" %}
**以下网络模型旨在提供冗余**
{% endhint %}

## 通用要求（所有网络设计模型）

{% hint style="info" %}
**对于超过 2 个节点的环境，需要交换机以实现** [**核心 Fabric 网络**](/overview/zh/glossary.md#core-fabric-network)
{% endhint %}

### 核心 Fabric 网络要求

* 所有核心 Fabric 网络交换机端口均配置巨型帧
  * 最小 MTU 大小为 9000
  * 建议的 MTU 大小为 **9216** 及以上
* 允许节点之间的广播流量
* 核心 Fabric 网络 1 和 2 分别位于 **各自的** 专用 Layer 2 网络上
* 位于同一站点的 VergeOS 系统的核心 Fabric 网络需要彼此完全隔离
* 核心 Fabric 网络上节点之间的网络延迟应 <0.05ms（无交换跳数）

{% hint style="warning" %}
**核心 Fabric 网络 - 节点之间无交换跳数**

所有节点必须连接到同一个交换结构，并且 **交换跳数为零** 位于其间。在核心 Fabric 路径中增加交换跳数会引入延迟，可能会显著影响集群性能和稳定性。此要求适用于所有核心 Fabric 网络。
{% endhint %}

### 外部网络要求

* 所有外部网络交换机端口均配置标准 MTU（1500）
  * 如工作负载需要，可选用巨型帧（9000-9216）
* 外部网络配置为 VLAN 中继（802.1Q 标记）
* 中继端口上允许多个 VLAN 用于工作负载/租户隔离
* 建议使用 LACP（802.3ad）绑定以实现冗余和带宽聚合
  * 支持主动-备份绑定作为替代方案
* 网络延迟 <1ms 适用于大多数工作负载
* 可路由到上游网络（网关、互联网、其他基础设施）
* 允许生成树协议（标准 Layer 2 运行）

## Layer 2 绑定 + 专用核心 Fabric

此模型为外部网络、UI 和 API 管理网络使用绑定的 Layer 2 网络，同时为核心 Fabric 流量保留专用的 Layer 2 网络。

### 使用场景

* 高性能生产环境
* 使用分布式交换机的现有 VMware 环境
* 希望将虚拟机直接部署到 VergeOS 外部 VLAN 中的环境

### 要求

* 每个节点 4 个 10/25/40/100GbE 网络端口
* 支持堆叠（MLAG）的交换基础设施 - 用于外部网络

### 网络配置

* 4 个 VergeOS 物理网络：
  * 核心 Fabric 网络 1
  * 核心 Fabric 网络 2
  * 外部网络 1 - 主绑定
  * 外部网络 2 - 次绑定
* 核心 Fabric 网络 1 和 2 分别位于 **各自的** 专用 Layer 2 网络上
* 用于 UI/API 管理的单个 VLAN（位于主绑定外部网络上）
* 工作负载所需的任何其他 VLAN（位于主绑定外部网络上）

### 示意图

![Layer 2 绑定 + 专用核心](/files/4abc35e582feaed251378286a81ca429c7fe2700)

## Layer 3 动态 + 专用核心 Fabric

此模型为外部网络、UI 和 API 管理网络使用动态公布的 Layer 3 网络，同时为核心 Fabric 流量保留专用的 Layer 2 网络。

### L3+DC 的使用场景

* 高性能生产环境
* 大规模部署
* 需要高级网络分段的环境

### 要求

* 每个控制器节点 4 个 10/25/40/100Gb 网络适配器端口
* 可供 VergeOS 建立对等连接的系统外 Layer 3 网络
* 支持 BGP、OSPF 或 EIGRP
* 将 VergeOS 内部网络用于工作负载

### 网络配置

* 4 个 VergeOS 物理网络：
  * 核心 Fabric 网络 1
  * 核心 Fabric 网络 2
  * 外部网络 1
  * 外部网络 2
* 核心 Fabric 网络 1 和 2 分别位于 **各自的** 专用 Layer 2 网络上
* 用于 UI/API 管理的单个动态公布网络
* 工作负载所需的任何其他动态公布网络

### 示意图

![Layer 3 绑定 + 专用核心](/files/934ee68d8fa886980fea406a2a25e5d646d068d9)

## Layer 3 静态 + 专用核心 Fabric

此模型为外部网络、UI 和 API 管理网络使用绑定的 Layer 3 网络，同时为核心 Fabric 流量保留专用的 Layer 2 网络。

### L3+DC 的使用场景

* 高性能生产环境
* 大规模部署
* 需要高级网络分段的环境

### 要求

* 每个控制器节点 4 个 10/25/40/100Gb 网络适配器端口
* 支持堆叠（MLAG）的交换基础设施 - 用于外部网络
* 用于外部网络的支持 Layer 3 的交换基础设施
* 将 VergeOS 内部网络用于工作负载

### 网络配置

* 4 个 VergeOS 物理网络：
  * 核心 Fabric 网络 1
  * 核心 Fabric 网络 2
  * 外部网络 1 - 主绑定
  * 外部网络 2 - 次绑定
* 核心 Fabric 网络 1 和 2 分别位于 **各自的** 专用 Layer 2 网络上
* 用于 UI/API 管理的单个静态路由网络
* 工作负载所需的任何其他静态路由网络

### 示意图

![Layer 3 绑定 + 专用核心](/files/34576a26005f60102de2be5f9b692c051bd6a458)

## 使用 2 个网络端口的 Layer 2 静态

在此模型中，所有网络（核心 Fabric、外部/管理、工作负载）都合并为单个绑定的 VergeOS 物理网络。

### 2 个网络端口的使用场景

* 概念验证
* 小型边缘部署
* 灾难恢复设置
* 开发工作负载
* 裸金属云提供商

{% hint style="info" %}
**在此系统设计中，您路由到 VergeOS 的每个静态分配网络都将是非冗余的**
{% endhint %}

### 2 个网络端口的要求

* 每个节点 2 个 10/25/40/100GbE 网络适配器端口
* 支持 VLAN 中继并可在交换机上设置本征 VLAN

### 2 个网络端口的网络配置

* 2 个物理网络
  * 核心 Fabric 网络 1
  * 核心 Fabric 网络 2
* 所有网络均使用 VLAN 标记
* 核心网络 VLAN 设为本征 VLAN
* 用于 UI/API 管理的单个 VLAN（任一核心 Fabric 网络）
* 工作负载所需的任何其他 VLAN（任一核心 Fabric 网络）

### 2 个网络端口的示意图

![Layer 2 绑定](/files/1e91627f432088f5233e338be88a0846504b0bd7)

通过根据您的具体使用场景和需求选择合适的网络设计模型，您可以确保 VergeOS 部署获得最佳性能和可扩展性。


---

# 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/plan-and-deploy/zh/shi-shi-zhi-nan/network-design.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.
