# 创建三层网络

如果您需要三层网络连接 - [**三层网络**](/welcome/cn/cloud-networking/overview/concepts.md#cloud-router)，可以按照以下步骤进行。

## 前提条件

* 您已经[**注册了一个账号**](/welcome/cn/platform/account-management/create-an-account.md)并使用您的电子邮件登录了[**zenConsole**](https://console.zenlayer.com/)。
* 如果您需要连接到云服务，您的公共云提供商应为以下之一：AWS 云, 腾讯云, 谷歌云, 阿里云, 和微软云。\
  更多公共云提供商将很快支持。
* 对于虚拟私有云连接，具有相同 IP 范围的子网内的实例无法相互通信。请提前合理规划子网的 IP 范围，以避免连接异常。

## 操作步骤

在 zenConsole 的左上角，导航至 **产品** > **云网络** > **三层网络** > [**创建三层网络**](https://console.zenlayer.com/sdn/router/create)。\
创建三层网络的总体步骤如下所示。详细操作请参考各章节的具体链接。

<div align="left"><figure><img src="/files/0GGu909Cy46LZBcG2ui2" alt="" width="482"><figcaption><p>创建三层网络</p></figcaption></figure></div>

### 1. 标记您的三层网络

点击 <img src="/files/6QMiY8oznRX3ZPFsK814" alt="" data-size="line"> 来修改您的私有连接的标签名称。您也可以点击 **添加描述** 来给私有连接添加备注。

### 2. 添加接入点

您需要添加至少 2 个、最多 10 个接入点，并配置路由和网络信息以启动连接。将来您可以进行更新。\
您可能有以下选项添加接入点：

* [**裸机数据中心**](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/select-a-data-center-as-access-point.md)
* [**公共云**](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/select-a-public-cloud-as-access-point.md)
* [**裸机**](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/select-a-vpc-as-access-point.md)
* [**边缘网关**](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/select-virtual-edge-as-access-point.md)
* [**弹性算力**](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/select-elastic-compute-as-access-point.md)

{% hint style="info" %} <mark style="color:blue;">**注意**</mark>

<mark style="color:blue;">目前，您只能在三层网络中添加一个阿里云接入点。</mark>
{% endhint %}

### 3. 配置路由

如果您添加了数据中心、公共云或边缘网关等接入点，需要配置路由协议以实现网络通信。如果您添加了虚拟私有云，则直接配置接入带宽。

您可能有以下选项，如果您的设备支持边界网关协议 (BGP)，我们建议使用 BGP 来处理网络段变化。

* [**BGP 路由**](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/configure-routing-information.md#bgp-routing)
* [**静态路由**](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/configure-routing-information.md#static-routing)

{% hint style="info" %} <mark style="color:blue;">**注意**</mark>

<mark style="color:blue;">对于边缘网关连接，您需要在配置路由之前配置 IPsec 隧道。详情请参见</mark> [<mark style="color:purple;">**IPsec 隧道配置**</mark>](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/select-virtual-edge-as-access-point.md#ipsec-tunnel-configuration) <mark style="color:blue;">。</mark>
{% endhint %}

### 4. 配置接入带宽

[**配置每个接入点的接入带宽**](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/configure-network-information.md)。

## 下一步操作

更多离线或公共云控制台上的操作。

### 对于公共云接入点

在您公共云提供商的对应控制台上[**验证您的云连接**](/welcome/cn/cloud-networking/get-started/validate-connection-in-public-cloud.md)。

### 对于数据中心接入点

联系 Zenlayer 支持或您的数据中心运营商以离线方式建立交叉连接。

## 结果

在您的跳线离线建立并且您的云连接在公共云控制台验证完成后，相应点的状态将变为**不可用**，您将收到一封通知邮件。

一旦所有接入点的状态变为**不可用**，您的三层网络状态也将变为**不可用**。

{% hint style="info" %} <mark style="color:blue;">**注意**</mark>

* <mark style="color:blue;">在所有接入点都处于不可用状态且您的连接处于不可用状态之前，三层网络的计费不会开始。</mark>
* <mark style="color:blue;">您的端口计费将在以下情况下开始：</mark>
  * <mark style="color:blue;">端口处于不可用状态时。</mark>
  * <mark style="color:blue;">您提交订单后15天内，无论您的三层网络是否已建立。</mark>
* <mark style="color:blue;">您的云连接计费将在以下情况下开始：</mark>\ <mark style="color:blue;">在公共云控制台上验证您的云连接后。</mark>
  {% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.console.zenlayer.com/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
