oxwivi
December 7, 2023, 10:37am
5
The only useful posts that I found are these two:
I was also having the same issue described by OP when setting multiple dhcp-match / dhcp-boot options via uci commands, so I decided to take full control and edit /etc/dnsmasq.conf directly (see https://openwrt.org/docs/guide-user/base-system/dhcp.dnsmasq#etcdnsmasqconf )
I ended up adding this uncomplicated block in there:
###################################
# TFTP Server custom configutation
####################################
enable-tftp
#tftp-root=/root/tftp
# Set tags based on client arc…
The format appears to have changed slightly for the upcoming 22.03 release , the rules now look like this:
config match
option networkid 'bios'
option match '60,PXEClient:Arch:00000'
I added this syslinux based example to the wiki as it was very useful, and under-documented as you say. If you want to add another working one for iPXE I'm sure many would find it handy
According to the first post, you don't even need your own TFTP server. But it seems like this can't be done on LuCi, would've been very helpful for quick set up and changes.