linux – DHCPDISCOVER / DHCPOFFER,但没有DHCPACK

前端之家收集整理的这篇文章主要介绍了linux – DHCPDISCOVER / DHCPOFFER,但没有DHCPACK前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个发送DHCPDISCOVER的远程客户端机器.
服务器正在响应DHCPOFFER,但没有DHCPACK.

这大约每30秒从同一主机重复一次.有什么我可以做远程或我需要让某人重新启动它吗?它在数据中心,所以我可能要去那里做!

谢谢你的建议.我已经重新启动了所有机器,但我仍有问题.我认为我的配置存在问题.这看起来是否正确?

  1. #
  2. # /etc/dhcpd.conf for primary DHCP server
  3. #
  4.  
  5. authoritative;
  6. ddns-update-style none;
  7. deny duplicates;
  8. default-lease-time 600;
  9. max-lease-time 3600;
  10.  
  11. # Our fixed hosts
  12. host host2 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address x.x.x.202; }
  13. host host3 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address x.x.x.203; }
  14. host host4 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address x.x.x.204; }
  15. host host5 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address x.x.x.205; }
  16.  
  17. subnet x.x.x.128 netmask 255.255.255.128 {
  18. option subnet-mask 255.255.255.128;
  19. option broadcast-address x.x.x.255;
  20. option routers x.x.x.129;
  21. option domain-name-servers 8.8.8.8,8.8.4.4;
  22.  
  23. # Testing pool.
  24. pool {
  25. max-lease-time 300; # 5 minutes
  26. range x.x.x.250 x.x.x.254;
  27. deny known-clients;
  28. }
  29.  
  30. # Our hosts - I didn't have this pool declaration before,do I need it if I want
  31. # the hosts to be running dhcp but always get the same address?
  32. pool {
  33. max-lease-time 1800;
  34. range x.x.x.200 x.x.x.220;
  35. deny unknown-clients;
  36. }
  37. }

解决方法

它会:
  1. CLIENT -> DHCPDISCOVER
  2. SERVER -> DHCPOFFER
  3. CLIENT -> DHCPREQUEST
  4. SERVER -> DHCPACK

您在描述中的DHCPACK之前缺少DHCPREQUEST.

如果客户端与DHCP服务器位于不同的子网上,则DHCPOFFER将单播发送到端口67 UDP上的DHCP中继. DHCP中继代理将UDPOFFER广播到UDP端口68上的子网.

我将研究与DHCPOFFER相关的连接问题.跟踪它并查看它是否找到返回客户端的路径,如果确实如此,为什么客户端不是DHCPREQUEST:地址.

常见的dhcp中继代理是特定接口下cisco交换机中的“ip helper-address”选项.

猜你在找的Linux相关文章