我正在尝试配置 PXE 设置,其中我的 Ubuntu Server 22.04.3 LTS 将充当 TFTP 服务器 + ProxyDHCP(当前 DHCP 服务器必须保持不变)。我用谷歌搜索了很多,并尝试了很多不同的配置,但没有成功。让我向您展示当前的 /etc/dnsmasq.conf 内容:
#to disable DNS server
port=0
#enable TFTP server and set its root path
enable-tftp
tftp-root=/free/pxe
#enable ProxyDHCP server. The address 192.168.1.2 corresponds to the subnet in which the ProxyDHCP server will act (I read somewhere that any address inside the IP subnet is valid for this)
#The address 192.168.1.2 is that of my Ubuntu Server.
interface=enp2s0
dhcp-range=192.168.1.2,proxy
#boot configuration files for PXE clients
# boot config for BIOS systems
dhcp-match=set:bios-x86,option:client-arch,0
dhcp-boot=tag:bios-x86,firmware/ipxe.pxe
# boot config for UEFI systems
dhcp-match=set:efi-x86_64,option:client-arch,7
dhcp-match=set:efi-x86_64,option:client-arch,9
dhcp-boot=tag:efi-x86_64,firmware/ipxe.efi
目前,TFTP 服务器无法工作(尝试使用我的 Windows 10 作为 TFTP 客户端),并且在尝试 PXE 启动时,出现错误“未收到启动文件名”。
如果需要,我可以提供更多信息。
谁能告诉我如何正确配置 dnsmasq 来修复 TFTP 和 ProxyDHCP 功能?