大网数据广告活动
服务器运维问答

ISC DHCP Server "Dynamic and static leases present"

· 52CE 我爱测

i have a problem similar to Fixed and dynamic IPs in ISC DHPD lead to double lease In my DHCP-Log I often receive warnings like Jan 21 10:20:56 dc2 dhcpd: Dynamic and static leases present for 192.168.1.107. Jan 21 10:20:56 dc2 d…

问题原文

原帖链接 · user333163 · CC BY-SA 3.0

i have a problem similar to Fixed and dynamic IPs in ISC DHPD lead to double lease

In my DHCP-Log I often receive warnings like

Jan 21 10:20:56 dc2 dhcpd: Dynamic and static leases present for 192.168.1.107.
Jan 21 10:20:56 dc2 dhcpd: Remove host declaration Ares or remove 192.168.1.107
Jan 21 10:20:56 dc2 dhcpd: from the dynamic address pool for 192.168.1.0/24
Jan 21 10:20:56 dc2 dhcpd: DHCPREQUEST for 192.168.1.107 from 00:24:d7:de:60:50 via eth0
Jan 21 10:20:56 dc2 dhcpd: DHCPACK on 192.168.1.107 to 00:24:d7:de:60:50 via eth0

I am a bit confused and cannot imagine, why this errors appear? Yesterday I also had the problem, that one of my computers did't got the IP from the static entry. Instead he got an IP of the dynamic pool.

This is my dhcpd.conf

subnet 192.168.1.0 netmask 255.255.255.0 {

   option domain-name-servers 192.168.1.8;
   option domain-name "x";
   ddns-domainname "x";
   ddns-rev-domainname "in-addr.arpa.";
   option routers 192.168.1.2;
   option broadcast-address 192.168.1.255;
   option domain-search "x";
   option ntp-servers 192.168.1.8;
   option subnet-mask 255.255.255.0;
   option netbios-name-servers 192.168.1.205; #192.168.1.205;

   # Einige Einstellungen fuer WPAD Probleme
   option wpad "\n";
   # Bekannte Geraete
   pool {
        range 192.168.1.1 192.168.1.169;
        deny unknown-clients;
        }
   # Unbekannte Geraete
   pool {
        range 192.168.1.170 192.168.1.199;
        allow unknown-clients;
        }
   # Peripherie
   pool {
        range 192.168.1.200 192.168.1.240;
        deny unknown-clients;
        }
#       default-lease-time 600;
#       max-lease-time 7200;
}
#

# Reserveriungen...
include "/etc/dhcp/reservations.conf";

My intention was that only 192.168.1.170 - 199 is free for the dynamic area. Is the configuration wrong?

Cheers, Lukas

社区高分解答

原帖链接 · Diamond · CC BY-SA 3.0

The error says it all, you have both static and dynamic lease present for the same ip address range.

In the following you have defined a dynamic lease:

# Bekannte Geraete
   pool {
        range 192.168.1.1 192.168.1.169;
        deny unknown-clients;
        }

Therefore you shouldn't configure static lease from this range anymore. I guess you have static lease configured from that same range here:

"/etc/dhcp/reservations.conf"

To resolve this, change the dynamic pool (Bekannte Geraete) as below or remove it, if you want to reserve it just for static lease only.

# Bekannte Geraete
       pool {
            range 192.168.1.1 192.168.1.169;
            deny all clients;
            }

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-01-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。