为 PXE 启动提供单独的 TFTP 和 DHCP 服务器

为 PXE 启动提供单独的 TFTP 和 DHCP 服务器

这看起来很简单,但我找不到任何实际信息:是否可以有两个独立的服务器,一个运行 dnsmasq 执行 DHCP,而 TFTP(或 HTTP)服务器在单独的机器上运行?

答案1

来自 dnsmasq 示例配置

# An example of dhcp-boot with an external TFTP server: the name and IP
# address of the server are given after the filename.
# Can fail with old PXE ROMS. Overridden by --pxe-service.
#dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.3

# If there are multiple external tftp servers having a same name
# (using /etc/hosts) then that name can be specified as the
# tftp_servername (the third option to dhcp-boot) and in that
# case dnsmasq resolves this name and returns the resultant IP
# addresses in round robin fasion. This facility can be used to
# load balance the tftp load among a set of servers.
#dhcp-boot=/var/ftpd/pxelinux.0,boothost,tftp_server_name

相关内容