DHCP 日志显示(无免费租约)

DHCP 日志显示(无免费租约)

我已经在 ubuntu 20.04 中设置了新的 isc-dhcp-server。所有客户端都已连接但显示日志(没有免费租约)

客户端仅连接25台机器。

sudo tail -f /var/log/syslog
Sep  9 09:43:57 ggn-dhcp-srv dhcpd[49319]: DHCPDISCOVER from b6:df:34:66:aa:41 via eth2: network 172.16.136.0/23: no free leases
Sep  9 09:43:58 ggn-dhcp-srv dhcpd[49319]: DHCPDISCOVER from 9a:33:bb:83:f9:16 via eth2: network 172.16.136.0/23: no free leases
Sep  9 09:44:01 ggn-dhcp-srv dhcpd[49319]: DHCPDISCOVER from b6:df:34:66:aa:41 via eth2: network 172.16.136.0/23: no free leases
Sep  9 09:44:05 ggn-dhcp-srv dhcpd[49319]: DHCPDISCOVER from d2:84:01:b4:b1:b8 via eth1: network 172.16.160.0/19: no free leases
Sep  9 09:44:06 ggn-dhcp-srv dhcpd[49319]: DHCPDISCOVER from 9a:33:bb:83:f9:16 via eth2: network 172.16.136.0/23: no free leases
Sep  9 09:44:08 ggn-dhcp-srv dhcpd[49319]: DHCPDISCOVER from d2:84:01:b4:b1:b8 via eth1: network 172.16.160.0/19: no free leases
Sep  9 09:44:09 ggn-dhcp-srv dhcpd[49319]: DHCPDISCOVER from d2:84:01:b4:b1:b8 via eth1: network 172.16.160.0/19: no free leases
Sep  9 09:44:10 ggn-dhcp-srv dhcpd[49319]: DHCPDISCOVER from b6:df:34:66:aa:41 via eth2: network 172.16.136.0/23: no free leases

猫/etc/dhcp/dhcpd.conf 在此处输入图片描述 很多 IP 都是免费的,但仍然显示 ** 没有免费租约 **

答案1

您的池配置中有deny unknown-clients,这意味着客户端只有在某个部分中为其 MAC 地址定义了静态 DHCP 保留时才能从 DHCP 接收地址host。我在您发布的配置文件中没有看到任何这些。

听起来您不想使用静态保留,因此只需删除该deny unknown-clients;行并重新启动 dhcpd。

相关内容