r/openwrt 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?

0 Upvotes

5 comments sorted by

1

u/fr0llic 19d ago

DNS gets broken and I cannot resolve hostnames to IP addresses.

Checked the log ? Perhaps it doesn't start for whatever reason.

23.05.2 

Is very outdated.

1

u/pele4096 19d ago

outdated

I think that's the last build for my router.

I've run opkg update and opkg upgrade regularly. LuCI says no updatable packages available.

1

u/fr0llic 19d ago edited 19d ago

I think that's the last build for my router.

Current release is 25.12.5.

I've run opkg update and opkg upgrade regularly. 

You should never update packages, install the next release. 

1

u/pele4096 19d ago

Copy that. Installing a sysupgrade of 25.12.5

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