linux – dhcp服务器提供“没有免费租约”错误,尽管应该有可用的
发布时间:2020-12-13 16:35:48 所属栏目:Linux 来源:网络整理
导读:我们有一个小型HPC集群,大约有40台机器运行Rocks Linux Distro 6.2(基于Centos 6.6).在过去的几天里,我一直在努力为系统增加6台机器.前3个是成功的,但我不能启动其他3台机器. / var / log / messages显示“no free leases”错误,如下所示: [root@topaz ~]#
我们有一个小型HPC集群,大约有40台机器运行Rocks
Linux Distro 6.2(基于Centos 6.6).在过去的几天里,我一直在努力为系统增加6台机器.前3个是成功的,但我不能启动其他3台机器. / var / log / messages显示“no free leases”错误,如下所示:
[root@topaz ~]# tail -n3 /var/log/messages Jun 29 17:56:00 topaz dhcpd: DHCPDISCOVER from d0:bf:9c:03:3b:40 via eth0: network 10.1.0.0/16: no free leases Jun 29 17:56:03 topaz dhcpd: DHCPDISCOVER from d0:bf:9c:03:3b:40 via eth0: network 10.1.0.0/16: no free leases Jun 29 17:56:07 topaz dhcpd: DHCPDISCOVER from d0:bf:9c:03:3b:40 via eth0: network 10.1.0.0/16: no free leases 除前端外,所有机器只有本地IP.应该有足够的IP可用于分配给这些新机器.似乎没有任何意外的机器连接到网络: [root@topaz ~]# arp -a | awk '{ print $2 }' | sort (10.1.255.215) (10.1.255.216) (10.1.255.217) (10.1.255.218) (10.1.255.219) (10.1.255.220) (10.1.255.221) (10.1.255.222) (10.1.255.223) (10.1.255.224) (10.1.255.225) (10.1.255.226) (10.1.255.227) (10.1.255.228) (10.1.255.229) (10.1.255.230) (10.1.255.231) (10.1.255.232) (10.1.255.233) (10.1.255.234) (10.1.255.235) (10.1.255.236) (10.1.255.237) (10.1.255.238) (10.1.255.239) (10.1.255.240) (10.1.255.241) (10.1.255.242) (10.1.255.243) (10.1.255.244) (10.1.255.245) (10.1.255.246) (10.1.255.247) (10.1.255.248) (10.1.255.249) (10.1.255.250) (10.1.255.251) (10.1.255.252) (10.1.255.253) (10.1.255.254) (193.140.197.1) (193.140.197.110) (193.140.197.160) (193.140.197.30) (193.140.197.36) 我们的租约文件不显示任何条目: [root@topaz ~]# cat /var/lib/dhcpd/dhcpd.leases # The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid " 00 01 00 01 37 06r351x347321350 31 06"; 我们的配置文件如下所示: [root@topaz ~]# cat /etc/dhcp/dhcpd.conf ddns-update-style none; subnet 10.1.0.0 netmask 255.255.0.0 { default-lease-time 1200; max-lease-time 1200; option routers 10.1.1.1; option subnet-mask 255.255.0.0; option domain-name "local"; option domain-name-servers 10.1.1.1; option broadcast-address 10.1.255.255; option interface-mtu 1500; group "local" { host topaz-eth0 { hardware ethernet 78:E7:D1:E8:19:06; option host-name "topaz"; fixed-address 10.1.1.1; filename "pxelinux.0"; next-server 10.1.1.1; } host topaz-eth2 { hardware ethernet 78:E7:D1:E8:19:0A; option host-name "topaz"; fixed-address 10.1.1.1; filename "pxelinux.0"; next-server 10.1.1.1; } host topaz-eth3 { hardware ethernet 78:E7:D1:E8:19:0C; option host-name "topaz"; fixed-address 10.1.1.1; filename "pxelinux.0"; next-server 10.1.1.1; } host compute-2-0-eth0 { hardware ethernet 00:23:7d:9f:6f:ca; option host-name "compute-2-0"; fixed-address 10.1.255.254; filename "pxelinux.0"; next-server 10.1.1.1; } host compute-2-0-eth1 { hardware ethernet 00:23:7d:a0:20:e4; option host-name "compute-2-0"; fixed-address 10.1.255.254; filename "pxelinux.0"; next-server 10.1.1.1; } host compute-0-0-eth0 { hardware ethernet 1c:c1:de:76:6f:40; option host-name "compute-0-0"; fixed-address 10.1.255.253; filename "pxelinux.0"; next-server 10.1.1.1; } host compute-0-0-eth1 { hardware ethernet 1c:c1:de:76:6f:44; option host-name "compute-0-0"; fixed-address 10.1.255.253; filename "pxelinux.0"; next-server 10.1.1.1; } (goes on like this) } 我不明白为什么我会收到这个错误.任何帮助表示赞赏. 解决方法
看起来您错过了范围定义或这些框的特定主机条目,与其MAC匹配. 除非你的失败的盒子在列表中“继续这样”,否则他们将不会分配任何地址.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |