Page 1 of 1

DHCP Proxy w/ DNSMASQ for PXE boot

Posted: 2018/07/12 20:40:13
by supertight
I need to setup a server for PXE network installs. I don't have any control over the current DHCP server.

I know I need to configure DNSMASQ to supplement the information given by the router. I cant seem to get it working. Keep getting error PXE-E53.
my dnsmasq.conf is:

Code: Select all

port=0
dhcp-range=172.16.0.0,proxy
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/var/lib/tftpboot/
I also double checked that the pxelinux.0 file was available via TFTP.
The ip for the router is "172.16.0.1" and the ip for the pxe server is "172.16.0.2"

I know I'm just missing something little, but I've googled the life out of "DNSMASQ DHCP Proxy" with no success.

Re: DHCP Proxy w/ DNSMASQ for PXE boot

Posted: 2018/07/12 21:15:12
by TrevorH
I don't have any control over the current DHCP server.
You need it. You cannot have two independent DHCP servers on the same network. Things will get very confused and, as they say, unpredictable results may occur.

Re: DHCP Proxy w/ DNSMASQ for PXE boot

Posted: 2018/07/12 21:25:43
by supertight
TrevorH wrote:
2018/07/12 21:15:12
I don't have any control over the current DHCP server.
You need it. You cannot have two independent DHCP servers on the same network. Things will get very confused and, as they say, unpredictable results may occur.
I'm fully aware only one(1) DHCP server is to be used on a network. However, As stated above, I only want DNSMASQ to supplement the extra info for PXE. NOT run as "independent DHCP server".

Re: DHCP Proxy w/ DNSMASQ for PXE boot

Posted: 2018/07/13 01:16:54
by supertight
So that's it? I get a reply from a mod who obviously didn't read past the first line, with no information. Awesome. I guess I'll just keep sitting here being frustrated.

Re: DHCP Proxy w/ DNSMASQ for PXE boot

Posted: 2018/07/13 01:56:06
by supertight
Well. Persistence strikes again for the win. After google-foo-ing my butt off and piecing together a couple of Ubuntu tutorials, I was able to get a working configuration.

To supplement the standing DHCP server with additional PXE information using DNSMASQ.
/etc/dnsmasq.conf

Code: Select all

port=0
dhcp-range="IP Range",proxy
dhcp-boot=pxelinux.0,"Server Name","Server IP"
enable-tftp
tftp-root=/var/lib/tftpboot/
pxe-service=x86PC,"net boot",pxelinux

This will supply the necessary info to the client and direct the client to the proper tftp-server for the pxe boot environment.