# DHCP：池192.168.1.0/24中无可用租约，服务器10.0.0.1

- **ID:** `networking/dhcp-server-exhausted-pool`
- **领域:** networking
- **类别:** resource_error
- **验证级别:** ai_generated
- **修复率:** 90%

## 根因

DHCP服务器已分配了配置作用域中的所有可用IP地址，且没有租约过期或释放以容纳新客户端。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| ISC DHCP 4.4 | active | — | — |
| Kea 2.4 | active | — | — |
| dnsmasq 2.89 | active | — | — |
| Windows Server 2022 DHCP | active | — | — |

## 解决方案

1. ```
   Expand the DHCP pool by adding more IP addresses to the scope: in dhcpd.conf, change 'range 192.168.1.100 192.168.1.200;' to 'range 192.168.1.100 192.168.1.250;' and restart the server
   ```
2. ```
   Manually release unused leases by clearing the DHCP lease file and restarting: rm /var/lib/dhcp/dhcpd.leases && systemctl restart isc-dhcp-server
   ```

## 无效尝试

- **** — Restarting does not free existing leases; the pool remains exhausted. (95% 失败率)
- **** — Existing leases retain their original lease time until renewal; the change only affects future leases. (80% 失败率)
