DHCP Proxy w/ DNSMASQ for PXE boot

Issues related to configuring your network
Post Reply
supertight
Posts: 171
Joined: 2017/02/07 21:47:51

DHCP Proxy w/ DNSMASQ for PXE boot

Post by supertight » 2018/07/12 20:40:13

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.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: DHCP Proxy w/ DNSMASQ for PXE boot

Post by TrevorH » 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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

supertight
Posts: 171
Joined: 2017/02/07 21:47:51

Re: DHCP Proxy w/ DNSMASQ for PXE boot

Post by supertight » 2018/07/12 21:25:43

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".

supertight
Posts: 171
Joined: 2017/02/07 21:47:51

Re: DHCP Proxy w/ DNSMASQ for PXE boot

Post by supertight » 2018/07/13 01:16:54

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.

supertight
Posts: 171
Joined: 2017/02/07 21:47:51

Re: DHCP Proxy w/ DNSMASQ for PXE boot

Post by supertight » 2018/07/13 01:56:06

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.

Post Reply