# 在 IRR 中注册 Route Object

本章节介绍如何在 Internet Routing Registry (IRR) 中注册 route object。\
注册 route object 可以帮助网络运营商和上游提供商验证你 IP 前缀的 BGP 路由宣告。

## 前提条件

在注册 route object 之前，请确保：

* 你拥有 **IP 前缀** 的管理权限。
* 准备好用于宣告该 IP 地址的 ASN（Autonomous System Number），Zenlayer 弹性算力服务的 ASN 为 “`62610`”。
* 你可以访问对应的 **IRR maintainer (mntner) 账户**。
* 同时建议 发布 **RPKI 中的 ROA**。

## 操作步骤

{% stepper %}
{% step %}

#### 确认正确的 IRR 数据库

<table><thead><tr><th width="300.4644775390625">注册机构</th><th>IRR 数据库</th></tr></thead><tbody><tr><td>RIPE 区域</td><td>RIPE Database</td></tr><tr><td>APNIC 区域</td><td>APNIC IRR</td></tr><tr><td>ARIN 区域</td><td>ARIN IRR</td></tr><tr><td>其他运营机构</td><td>RADB</td></tr></tbody></table>

通常情况下：

* 欧洲资源 → RIPE IRR
* 亚太地区资源 → APNIC IRR
* 北美地区资源 → ARIN IRR
  {% endstep %}

{% step %}

#### 创建 Route Object

IRR 支持两种 route object 类型：

<table><thead><tr><th width="202.968017578125">Object 类型</th><th>用途</th></tr></thead><tbody><tr><td>route</td><td>IPv4 前缀</td></tr><tr><td>route6</td><td>IPv6 前缀</td></tr></tbody></table>

* **示例：IPv4 Route Object**<br>

  ```
  route:      203.0.113.0/24
  origin:     AS62610
  descr:      Example Network
  mnt-by:     MAINT-EXAMPLE
  changed:    noc@example.com
  source:     APNIC
  ```
* **示例：IPv6 Route Object**<br>

  ```
  route6:     2001:db8::/32
  origin:     AS62610
  descr:      Example Network IPv6
  mnt-by:     MAINT-EXAMPLE
  changed:    noc@example.com
  source:     RIPE
  ```

  \
  字段说明：

  <table><thead><tr><th width="254.2427978515625">字段</th><th>说明</th></tr></thead><tbody><tr><td>route/route6</td><td>IPv4/IPv6 前缀</td></tr><tr><td>origin</td><td>宣告该前缀的 ASN</td></tr><tr><td>descr</td><td>网络描述信息</td></tr><tr><td>mnt-by</td><td>负责该对象的维护者</td></tr><tr><td>changed</td><td>联系邮箱</td></tr><tr><td>source</td><td>IRR 数据库</td></tr></tbody></table>

{% endstep %}

{% step %}

#### 提交 Route Object

建议通过 Web Portal 提交 route object。

1. 登录对应注册机构的 Web Portal：
   * RIPE NCC (RIPE Database Webupdates): <https://apps.db.ripe.net/db-web-ui/>
   * APNIC (MyAPNIC): <https://my.apnic.net/>
   * ARIN IRR Portal: <https://account.arin.net/>
2. 进入 **Create Object**。
3. 选择 **route** 或 **route6**。
4. 填写必填字段。
5. 提交对象。
   {% endstep %}

{% step %}

#### 验证 Route Object

提交后，请确认 route object 已在 IRR 数据库中可查询。

示例查询：

```
whois -h whois.radb.net 203.0.113.0/24
```

预期输出：

```
route:      203.0.113.0/24
origin:     AS62610
source:     APNIC
```

{% endstep %}

{% step %}

#### 确保与 RPKI 一致

为了确保路由能够正常传播，请确保 IRR 中的 route object 与 RPKI 中对应的 ROA 保持一致。

以下属性必须一致：

| 属性         | IRR | RPKI |
| ---------- | --- | ---- |
| Prefix     | ✓   | ✓    |
| Origin ASN | ✓   | ✓    |

如果信息不一致，你的路由通告可能会被上游运营商拒绝。
{% endstep %}
{% endstepper %}

## 下一步操作

在注册对应的 route object 并 [注册 ROA/RPKI](/welcome/cn/elastic-compute/get-started/manage-networking/advertise-byoip/register-roa-rpki-with-rir.md) 后，你可以前往 zenConsole [宣告 BYOIP](/welcome/cn/elastic-compute/get-started/manage-networking/advertise-byoip.md)。在激活 BYOIP 之前，我们会验证 RPKI/ROA 以及对应的 route object。


---

# 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/elastic-compute/get-started/manage-networking/advertise-byoip/register-a-route-object-in-the-irr.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.
