networking resource_error ai_generated true

DHCP: No free leases in pool 192.168.1.0/24, server 10.0.0.1

ID: networking/dhcp-server-exhausted-pool

Also available as: JSON · Markdown · 中文
90%Fix Rate
88%Confidence
1Evidence
2023-11-05First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
ISC DHCP 4.4 active
Kea 2.4 active
dnsmasq 2.89 active
Windows Server 2022 DHCP active

Root Cause

The DHCP server has assigned all available IP addresses in the configured scope, and no leases have expired or been released to accommodate new clients.

generic

中文

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

Official Documentation

https://www.isc.org/dhcp/

Workarounds

  1. 95% success 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
    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. 90% success Manually release unused leases by clearing the DHCP lease file and restarting: rm /var/lib/dhcp/dhcpd.leases && systemctl restart isc-dhcp-server
    Manually release unused leases by clearing the DHCP lease file and restarting: rm /var/lib/dhcp/dhcpd.leases && systemctl restart isc-dhcp-server

中文步骤

  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

Dead Ends

Common approaches that don't work:

  1. 95% fail

    Restarting does not free existing leases; the pool remains exhausted.

  2. 80% fail

    Existing leases retain their original lease time until renewal; the change only affects future leases.