# 自带 IP 配置指南

## 设置流程

![设置流程 — 从 ROA 到绑定 EIP](/files/0Ru0EA8pPknasnkTNack)

步骤 **1–2** 在 Zenlayer 之外进行，传播可能需要数小时。步骤 **3–5** 在 Console 中操作，通常数分钟内完成。

| # | 任务         | 操作位置                                                                                       | 需要设置的内容                                  |
| - | ---------- | ------------------------------------------------------------------------------------------ | ---------------------------------------- |
| 1 | 发布 ROA     | 您 RIR 的 RPKI 门户                                                                            | `(前缀, 源 ASN)` 授权 · `maxLength` 覆盖您将宣告的前缀 |
| 2 | 确认传播       | 任意公共 RPKI 验证器                                                                              | `(前缀, ASN)` 解析结果为 `Valid`                |
| 3 | 检查受支持的 ASN | [弹性 IPv4 → BYOIP](https://console.zenlayer.com/zec/cidrBlock) → **受支持的 ASN**               | 您的源 ASN 在列表中                             |
| 4 | 创建客户 CIDR  | [弹性 IPv4 → BYOIP](https://console.zenlayer.com/zec/cidrBlock/byoip/create) → **添加客户 CIDR** | CIDR · ISP 线路 · 源 ASN                    |
| 5 | 分配并绑定 EIP  | [弹性 IPv4](https://console.zenlayer.com/zec/elastic-ip) → **分配 EIP**                        | 目标池 = CIDR 详情页显示的池 ID                    |

步骤 4 触发 RPKI 验证和宣告。验证通过且 EIP 池暴露后，CIDR 进入**活跃**状态。

## 日常运营操作

| 任务         | Console 路径                                                                                                         |
| ---------- | ------------------------------------------------------------------------------------------------------------------ |
| 查看客户 CIDR  | [BYOIP](https://console.zenlayer.com/zec/cidrBlock) → 点击 CIDR 所在行 → **详情**标签。显示 ISP、源 ASN、池 ID、客户自有标记及每个 IP 的分配状态。 |
| 更新源 ASN    | CIDR 详情页 → **更新源 ASN**。请先发布新的 ROA；提交时 Console 将重新运行 RPKI 检查。                                                       |
| 从客户 IP 池分配 | [弹性 IPv4](https://console.zenlayer.com/zec/elastic-ip) → **分配 EIP** → 将**池**设置为客户 IP 池 ID。验证返回 EIP 上的客户自有标记。       |
| 将 EIP 释放回池 | [弹性 IPv4](https://console.zenlayer.com/zec/elastic-ip) → 找到对应 EIP → **释放**。地址将返回客户 IP 池，可再次分配。                     |
| 删除客户 CIDR  | CIDR 详情页 → **删除**。若有地址仍处于已分配状态，删除将失败；请先解绑并释放 EIP。                                                                  |
| 退役 ROA     | 您 RIR 的 RPKI 门户                                                                                                    |

更新、分配和删除操作均会重新检查创建时的保证：ASN 变更需要 RPKI 为 `Valid`；分配需要池存在；删除需要 CIDR 已被清空。


---

# 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/networking/01-overview-4/07-configuration-guide.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.
