我有一个发送DHCPDISCOVER的远程客户端机器.
服务器正在响应DHCPOFFER,但没有DHCPACK.
服务器正在响应DHCPOFFER,但没有DHCPACK.
这大约每30秒从同一主机重复一次.有什么我可以做远程或我需要让某人重新启动它吗?它在数据中心,所以我可能要去那里做!
谢谢你的建议.我已经重新启动了所有机器,但我仍有问题.我认为我的配置存在问题.这看起来是否正确?
- #
- # /etc/dhcpd.conf for primary DHCP server
- #
- authoritative;
- ddns-update-style none;
- deny duplicates;
- default-lease-time 600;
- max-lease-time 3600;
- # Our fixed hosts
- host host2 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address x.x.x.202; }
- host host3 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address x.x.x.203; }
- host host4 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address x.x.x.204; }
- host host5 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address x.x.x.205; }
- subnet x.x.x.128 netmask 255.255.255.128 {
- option subnet-mask 255.255.255.128;
- option broadcast-address x.x.x.255;
- option routers x.x.x.129;
- option domain-name-servers 8.8.8.8,8.8.4.4;
- # Testing pool.
- pool {
- max-lease-time 300; # 5 minutes
- range x.x.x.250 x.x.x.254;
- deny known-clients;
- }
- # Our hosts - I didn't have this pool declaration before,do I need it if I want
- # the hosts to be running dhcp but always get the same address?
- pool {
- max-lease-time 1800;
- range x.x.x.200 x.x.x.220;
- deny unknown-clients;
- }
- }
解决方法
它会:
- CLIENT -> DHCPDISCOVER
- SERVER -> DHCPOFFER
- CLIENT -> DHCPREQUEST
- SERVER -> DHCPACK
您在描述中的DHCPACK之前缺少DHCPREQUEST.
如果客户端与DHCP服务器位于不同的子网上,则DHCPOFFER将单播发送到端口67 UDP上的DHCP中继. DHCP中继代理将UDPOFFER广播到UDP端口68上的子网.
我将研究与DHCPOFFER相关的连接问题.跟踪它并查看它是否找到返回客户端的路径,如果确实如此,为什么客户端不是DHCPREQUEST:地址.
常见的dhcp中继代理是特定接口下cisco交换机中的“ip helper-address”选项.