# 宣告 BYOIP

您可以将自己拥有的公有路由 IP 地址（BYOIPs）宣告给对等 ASN，使 BYOIPs 在网络基础设施内可达并可访问。

## 前提条件

要成功宣告您的 BYOIPs，您需要具备以下条件：

1. **有效的宣告前缀**\
   \&#xNAN;**-** 您的 AS 被授权发起路由，这可以在主流 IRR 数据库中查询，例如：[https://radb.net](https://radb.net/)。\
   \- 您的路由已通过 RPKI 认证；
2. **用于宣告 BYOIPs 的 BGP 会话**\
   确保 BGP 会话的 IP 版本与要宣告的 IP 前缀版本匹配。

## 操作步骤

<div align="left"><figure><img src="/files/xkzduMmk8KBJievSKmWR" alt="" width="563"><figcaption><p>宣告 BYOIP</p></figcaption></figure></div>

1. 在 zenConsole 的左上角，转到 **产品** > **全球 BGP** > **BYOIP** > **宣告 BYOIP**。
2. 选择您希望用于宣告 BYOIP 的 BGP 会话。
3. 输入 IP 前缀。
4. 更多设置\
   \- 为您的 BYOIP 选择一个资源组\
   \- 为您的 BYOIP 添加备注
5. 单击 **立即宣告**。

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

* <mark style="color:blue;">确保 BGP 会话的 IP 版本与要宣告的 IP 前缀版本相同。</mark>
* <mark style="color:blue;">网络掩码不应超过 64 位。</mark>
* <mark style="color:blue;">只有授权的 AS 可以宣告 IP 前缀。确认您的 IP 所有权并验证：</mark>
  * <mark style="color:blue;">RADB 授权；</mark>
  * <mark style="color:blue;">RPKI 认证。</mark>
    {% endhint %}

## 结果

您的 BYOIP 被宣告后，您可以在 BYOIP 列表中找到它。

<div align="left"><figure><img src="/files/pcIdKcop3RR1PQkDESzA" alt=""><figcaption><p>BYOIP 列表</p></figcaption></figure></div>

如需，您可以删除已宣告的 BYOIP 并重新宣告。

## 下一步操作

宣告您的 BYOIP 后，您可以[**测试宣告的 IP 是否可达**](/welcome/cn/global-bgp/advertise-byoip/test-advertised-ip-reachable-or-not.md)。


---

# 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/global-bgp/advertise-byoip.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.
