dnsmasq
is the only required package to create a dhcp & tftp server.
sudo apt-get install dnsmasq
- In /etc/dnsmasq.conf, add the lines:
dhcp-boot=pxelinux.0
# dhcp ip pool
dhcp-range=192.168.1.60,192.168.1.70,12h
# Router
dhcp-option=3,192.168.1.1
# Enable dnsmasq's built-in TFTP server
enable-tftp
# Set the root directory for files available via FTP.
tftp-root=/var/lib/tftpboot
- Download the appropriate netboot.tar.gz file from http://cdimage.ubuntu.com/netboot/
- Unpack into a suitable directory, e.g. /var/lib/tftpboot
tar -xvzf netboot.tar.gz -C /var/lib/tftpboot/
chown -R nobody:nogroup /var/lib/tftpboot
- Restart the dnsmasq
sudo systemctl restart dnsmasq
Hello. Thank you for the detailed publication. Relatively recently interested in a similar topic. Actual information on this topic was found here https://veadug.com/apps/ I recommend reading. I think you will be interested. Thank.