on my network its already exist a router that do dhcp, boot in this network i need to boot a diskless system that use pxe to boot from network, while the pxe server is using dnsmasq to serve O/S, but currently this dnsmasq act as dhcp server too, so there are multiple dhcp server on the same network
how to run pxe server without act as dhcp server by using dnsmasq ?
this is my command line to dnsmasq, somehow if i dont specify dhcp ip range, the client wont receive IP and wont boot
dnsmasq --enable-tftp --tftp-root=/var/state/dnsmasq/root \
--dhcp-boot=pxelinux.0,"$IP",$IP \
--dhcp-range=192.168.1.10,192.168.1.252,proxy,2552.255.255.0,192.168.1.255 --log-dhcp \
--dhcp-option=3,192.168.1.1
You need a BOOTP and TFTP server. You could set "next-server" to your current DHCP server setting to your TFTP server too. You won't be able to run remote boot without correct BOOTP server set to TFTP server (next-server).
First you need a BOOTP/DHCP server to setup the client network configuration and inform what server will be used for PXE/TFTP server. Then you need a PXE/TFTP server to host PXE files, it's two different services which dnsmasq handles.
Lets consider the already in place DHCP server and your PXE server reside on different PCs.
In this case the DHCP component of the PXE server must be configured as a proxyDHCP and there will be no conflicts with the main DHCP.
You can configure dnsmasq as proxyDHCP.