# DHCPv6：收到快速提交选项，但服务器2001:db8::1未返回任何IA_NA地址

- **ID:** `networking/dhcpv6-rapid-commit-failure`
- **领域:** networking
- **类别:** protocol_error
- **验证级别:** ai_generated
- **修复率:** 76%

## 根因

使用快速提交选项（两消息交换）的DHCPv6客户端从服务器收到了缺少任何IA_NA（非临时地址）选项的回复，表明服务器没有可分配的地址，通常是由于地址池耗尽或DHCPv6作用域配置错误。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| ISC DHCP 4.4.3 | active | — | — |
| Kea 2.4.1 | active | — | — |
| dnsmasq 2.90 | active | — | — |
| systemd-networkd 254 | active | — | — |

## 解决方案

1. ```
   In Kea: modify 'subnet6' section to increase pool size, e.g., 'pool': '2001:db8::/64' to '2001:db8::/56'
   ```
2. ```
   In systemd-networkd: add 'IPv6AcceptRA=yes' to the .network file and remove DHCPv6 settings.
   ```

## 无效尝试

- **Removing the rapid-commit option from the DHCPv6 client configuration to force a four-message exchange.** — The server still has no addresses to assign; the four-message exchange will also fail with a NoAddressAvailable status. (90% 失败率)
- **Extending the default-lease-time to reduce address exhaustion.** — Does not create new addresses; if the pool is exhausted, longer leases only delay the problem. (70% 失败率)
