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