# 创建二层网络

如果您需要二层网络连接 - [**二层网络**](/welcome/cn/cloud-networking/overview/concepts.md#private-connect)，请按照以下步骤操作。

## 前提条件

* 您已使用邮箱[**注册账号**](/welcome/cn/platform/account-management/create-an-account.md)并登录[**zenConsole**](https://console.zenlayer.com/)。
* 如果您需要连接到云服务，您的公共云提供商应为以下之一：Amazon Web Service、腾讯云、谷歌云、阿里云和微软云。\
  更多公共云提供商即将支持。

## 操作步骤

在 zenConsole 的左上角，依次点击 **产品** > **云网络** > **二层网络** > [**创建二层网络**](https://console.zenlayer.com/sdn/network/create/ptp)。\
创建二层网络的整体步骤如下所示。具体操作请参阅相关章节的链接。

<div align="left"><figure><img src="/files/ozaEgTBbD7ThGo5VZHqV" alt="" width="563"><figcaption><p>创建二层网络连接</p></figcaption></figure></div>

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

点击 <img src="/files/6QMiY8oznRX3ZPFsK814" alt="" data-size="line"> 修改您二层网络的标签名称。您也可以点击 **添加描述** 为二层网络添加注释。

### 2. 添加接入点

选择两个接入点作为您二层网络的源端和目的端。\
您可能有以下选项：

* [**数据中心**](/welcome/cn/cloud-networking/get-started/create-a-layer-2-connection/select-a-data-center-as-access-point.md)
* [**公共云**](/welcome/cn/cloud-networking/get-started/create-a-layer-2-connection/select-a-public-cloud-as-access-point.md)

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

<mark style="color:blue;">请注意，腾讯云和谷歌云暂时无法通过二层网络连接。</mark>
{% endhint %}

### 3. 配置带宽上限

[**配置带宽上限**](/welcome/cn/cloud-networking/get-started/create-a-layer-2-connection/configure-network-information.md) 以设置您二层网络连接的两个接入点之间的带宽上限。

### 4. 确认订单并支付

## 后续操作

在公共云控制台或线下进行更多操作。

### 对于公共云接入点

在您公共云提供商的相应控制台上[**验证云连接**](/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-2-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.
