微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

linux – 我需要发送具有多个启动选项的扩展DHCPOFFER?

根据 Wikipedia和其他几百页,您可以:

Proxy DHCP

If a PXE redirection service (Proxy DHCP) receives an extended DHCPdisCOVER,it replies with an extended DHCPOFFER to the client’s port 68/UDP (DHCP client port).

An extended DHCPOFFER contains mainly:

  • a PXE discovery Control field to recommend multicasting,broadcasting,or unicasting to contact PXE boot servers
  • a list of IP addresses of each available PXE Boot Server Type
  • a PXE Boot Menu with each entry representing a PXE Boot Server Type
  • a PXE Boot Prompt telling the user to press a certain key to see the boot menu
  • a timeout to launch the first boot menu entry if it expires

The Proxy DHCP service may also run on the same host as the standard DHCP service. Since two services cannot share port 67/UDP,the Proxy DHCP runs on port 4011/UDP and expects the extended DHCPdisCOVER packets from PXE Clients to be DHCPREQUESTs. The standard DHCP service has to send a special combination of PXE options in its DHCPOFFER,so the PXE client kNows to look for a Proxy DHCP on the same host,port 4011/UDP.

我想实现这样一个发送这些扩展响应的服务器.我不介意为此目的设置另一个守护进程,但如果我可以配置isc-dhcp-server来发送理想的响应.

(在你提出建议之前,我不能使用syslinux.这是作弊,我在EFI平台上这样做,因此有原生的PXE支持)

解决方法

dsnmasq可以做到.这是一个5班轮. http://etherboot.org/wiki/proxydhcp?s[]=dhcp&s[]=proxy

所以对我而言,目前尚不清楚为什么需要自己的服务器. DHCP和PXEBOOT是一件非常棘手的事情.使用DHCP代理,您会添加一些其他问题.因为文档含糊不清,客户端的实现很糟糕,这意味着需要对线路进行大量测试和字节检查.

原文地址:https://www.jb51.cc/linux/395769.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐