# 配置路由信息

## 前提条件

* 如果您添加了虚拟私有云，无需配置路由信息。请直接前往 [带宽配置](/welcome/cn/cloud-networking/get-started/create-a-layer-3-connection/configure-network-information.md)。
* 如果您添加了边缘网关并启用了高可用性，仅支持边界网关协议 (BGP) 路由。
* 如果您的网络较小，可以选择静态路由。如果您的网络较大且设备支持边界网关协议 (BGP)，我们建议使用 BGP 来处理网络段的变化。

## BGP 路由

<div align="left"><figure><img src="/files/gEuWYbhp8AXmZ7Sdb5wY" alt="" width="563"><figcaption><p>BGP 路由配置</p></figcaption></figure></div>

边界网关协议 (BGP) 通常用于维护包含许多路由器的复杂网络。BGP 将内网划分为路由器组，或称 AS（自治系统），这些组之间具有可信的路由。您必须在网络中的路由器上定义 AS 号，并配置至少一个包含至少一个对等体的组。BGP 支持 BGP 认证 (message-digest algorithm 5) 来保护消息。

## 静态路由

<div align="left"><figure><img src="/files/B4z4icP8BfpX8YM6zLFN" alt="" width="563"><figcaption><p>静态路由配置</p></figcaption></figure></div>

静态路由通常用于只有少数几个路由器的小型网络，或在安全性是问题的情况下。每个静态路由器必须单独配置和维护。

* **本地私有 IP 地址**：在您的数据中心/公有云/边缘网关访问点上配置的私网 IP 地址。
* **对等私有 IP 地址**：在 Zenlayer 骨干 POP 上配置的私网 IP 地址。
* **本地 ASN**：您的数据中心/公有云/边缘网关访问点的 ASN。仅在边界网关协议 (BGP) 配置中可用。
* **对等 ASN**：Zenlayer ASN。默认为 62610，不可更改。仅在边界网关协议 (BGP) 配置中可用。
* **BGP MD5（可选）**：BGP 认证 (message-digest algorithm 5) 密钥。仅在边界网关协议 (BGP) 配置中可用。


---

# 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/configure-routing-information.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.
