大网数据广告活动
服务器运维问答

When configuring dnsmasq for PXE booting, why do I need to change undionly.kpxe to undionly.0?

· 52CE 我爱测

I have configured dnsmasq to PXE boot iPXE clients by referring them to a HTTP server ( matchbox in this case). I have also configured it to deal with older PXE clients by placing a copy of iPXE in the root of my TFTP server to a…

问题原文

原帖链接 · dippynark · CC BY-SA 3.0

I have configured dnsmasq to PXE boot iPXE clients by referring them to a HTTP server (matchbox in this case). I have also configured it to deal with older PXE clients by placing a copy of iPXE in the root of my TFTP server to allow these older clients to chainload to iPXE. To do this, I have used the following line in my dnsmasq.conf:

dhcp-boot=tag:!ipxe,undionly.kpxe

I have placed the undionly.kpxe file at the root of my TFTP server, however a few places say that you need to symlink or copy undionly.kpxe to undionly.kpxe.0 or undionly.0 (CoreOS, FOG Wiki).

Firstly, why does dnsmasq not look for the exact filename you specify in the config and secondly which one is the correct one, undionly.0 or undionly.kpxe.0?

已采纳解答

原帖链接 · Junkhacker · CC BY-SA 3.0

the filename ending in .0 is only relevant for versions of dnsmasq prior to 2.76. from the changelog of 2.76:

Subtle change in the semantics of "basename" in --pxe-service. The historical behaviour has always been that the actual filename downloaded from the TFTP server is . where is an integer which corresponds to the layer parameter supplied by the client. It's not clear what the function of the "layer" actually is in the PXE protocol, and in practise layer is always zero, so the filename is .0 The new behaviour is the same as the old, except when includes a file suffix, in which case the layer suffix is no longer added. This allows sensible suffices to be used, rather then the meaningless ".0". Only in the unlikely event that you have a config with a basename which already has a suffix, is this an incompatible change, since the file downloaded will change from name.suffix.0 to just name.suffix

if you are using a version of dnsmasq after 2.76 just use the actual filename. if using a version from prior, use "filename".0

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-11-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。