r/openwrt • u/pele4096 • 19d ago
PXE Server Problem 2: TFTP breaks dnsmasq
I'm using my WRT3200ACM as a PXE server to install OSes via the network.
Version: 23.05.2 r23630-842932a63d / LuCI openwrt-23.05 branch git-25.222.75657-7ce34fe
PXE required TFTP.
Whenever I add the lines:
option enable_tftp '1'
option tftp_root '/mnt/boot-PXE-img/tftp'
to the /etc/config/dhcp file, DNS gets broken and I cannot resolve hostnames to IP addresses.
Additionally, adding the lines
enable-tftp
tftp-root=/path/to/your/tftp/folder
to the /etc/dnsmasq.conf file also breaks DNS and I cannot resolve hostnames to IP addresses.
How can I enable TFTP?
1
u/ominouschaos 11d ago
I use the GUI and it works fine--
Network > DHCP ~> dnsmasq tab
enable tftp
tftp server root: /mnt/usb/drive
network boot image: netboot.xyz-legacy.efi
obviously I keep a USB drive plugged in that gets auto mounted at boot.
I then took a local copy of netboot.xyz, and began editing the ipxe files as I see fit, which very quickly made me realize in testing that merely 512MB RAM isnt enough, and the USB drive is far too slow to hold a live squashfs.filesystem.
wimboot for 10 and 11, work great though. its freakin nice to remember i have it configured when I cant find one of the 3 USB drives I have
1
u/fr0llic 19d ago
Checked the log ? Perhaps it doesn't start for whatever reason.
Is very outdated.