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代理,您会添加一些其他问题.因为文档含糊不清,客户端的实现很糟糕,这意味着需要对线路进行大量测试和字节检查.

相关文章

insmod和modprobe加-f参数导致Invalid module format错误 这...
将ArchLinux安装到U盘 几个月前入门Arch的时候上网搜了不少安...
1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...