How to test a new dhcp server

I would like to test the working of a dhcp server which I'm setting up on different system to my actual dhcp server - host 1

Should I just stop host 1 then start host 2, and after testing do the reversal.

I'm trying to set up host 2 as a PXE server and not really clear what is required.

Do I actually need a DHCP server on host 1, or is it simply sufficient to set the NEXT-SERVER parameter on the host 1's config to point at host 2's TFTPD?
 
I did my testing on an isolated hub so I didn't need to worry about confusing the rest of the network.

You should be able to add a clause to your existing DHCP server that matches the MAC address of the target host to point it to host 2 via next-server.

To verify that part is working, you can tail /var/log/xferlog on host 2 and also /var/log/daemon.log on the DHCP server when your PXE client boots.
 
I give to dhcpd the name of the interface as argument, and a crossover cable is connected to that interface leading to the computer booting with PXE.

You need tftp for pxe booting, in order that the client download the kernel.
 
(I'm actually in the middle of getting my NFS server file system sorted for PXE boot)
Did it with a Raspberry 0. As far as I remember, you need a world tree shared in TFTP and not visible from outside. since it assumes always-root like single-user mode. It was to be able to boot a price list display without SD-card because they die too often. (They are much better now, doing years with a class 10 TDK. It doesn't seem to happen so much anymore)
 
You can peek here to see where I'm at: https://forums.freebsd.org/threads/diskless-pxe-boot-stuck.101117/#post-736408 (and that link is for 11.0-RELEASE).
I had this set up many years ago but it was always a little hit and miss.

My first interest in PXE was about ten years ago when I came across this guide:=


I'm currently trying to get this working again as I haven't touched it in years.

PXE booting is what I want to set up most so that I can back up a lot of laptop hard disks.
 
I'm trying to set up the NEXT-SERVER option in dnsmasq

using:

dhcp-option=option:66,192.168.1.250

and get this error when re-starting

dnsmasq: bad dhcp-option at line 25 of /usr/local/etc/dnsmasq.conf

What am I missing here?
 
Back
Top