linux – 如何解决dhcp3中的“无免费租约”问题?

linux – 如何解决dhcp3中的“无免费租约”问题?,第1张

概述我没有面临免费租赁问题.我正在构建一个新服务器.我已经成功安装了ltsp.然后,我配置了dhcp.这是我的dhcpd.conf文件. option subnet-mask 255.255.255.0;option broadcast-address 192.168.12.255;option routers 192.168.12.205;option domain-name-servers 我没有面临免费租赁问题.我正在构建一个新服务器.我已经成功安装了ltsp.然后,我配置了dhcp.这是我的dhcpd.conf文件.
option subnet-mask 255.255.255.0;option broadcast-address 192.168.12.255;option routers 192.168.12.205;option domain-name-servers 192.168.12.205;default-lease-time 600;max-lease-time 7200;next-server 192.168.12.205;option root-path "192.168.12.205:/opt/ltsp/i386/";subnet 192.168.12.0 netmask 255.255.255.0  {range 192.168.12.55 192.168.12.100;        host clIEnt1 {                option root-path "192.168.12.205:/opt/ltsp/i386/";                filename "/ltsp/i386/pxelinux.0";                harDWare ethernet 00:1d:72:04:8d:a9;                fixed-address 192.168.12.69;        }}

错误是,

Dec 27 18:18:35 Dennis dhcpd: Wrote 0 leases to leases file.Dec 27 18:23:27 Dennis dhcpd: DHCPdisCOVER from 00:1d:72:04:8d:a9 via eth0: network 192.168.12/24: no free leases

我在互联网上提到并尝试过.但是,我无法修复.

你能指导我解决这个问题吗?

解决方法 您的dhcpd可能需要对租约文件的写访问权.

从http://manpages.ubuntu.com/manpages/lucid/man5/dhcpd.leases.5.html开始:

When dhcpd is first installed,there is no lease database. However,
dhcpd requires that a lease database be present before it will start.
To make the initial lease database,just create an empty file
called /var/lib/dhcp3/dhcpd.leases. You can do this with:

touch /var/lib/dhcp3/dhcpd.leases

这应该可以解决您的问题.

总结

以上是内存溢出为你收集整理的linux – 如何解决dhcp3中的“无免费租约”问题?全部内容,希望文章能够帮你解决linux – 如何解决dhcp3中的“无免费租约”问题?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1040446.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存