Use for PXE
It would be great if there was a little more on using dhcpd with a tftp server to enable pxe network installs. I realise there's a link here to the Arch Wiki PXE page, but that page only talks about dnsmasq, not dhcpd+tftpd. pxeboot installs are in fact the only area I've ever found otherwise superb Arch documentation to be lacking. Even some sort of cross-correlation between how it's done with dnsmasq and equivalent procedures with dhcp/tftp would be helpful, if that's possible. --Bananabrain (talk) 00:02, 7 August 2015 (UTC)
"pid" files for services
"Service file." If we are going to run separate instances for network interfaces, we should use different "pid" files for them, is not it? So the service file should contain the following.
[Service] PIDFile=/run/dhcpd4-%I.pid ExecStart=/usr/bin/dhcpd -4 -q -cf /etc/dhcpd.conf -pf /run/dhcpd4-%I.pid %I
Listening on only one interface - Configuring dhcpd
In order to exclude an interface, you must create an empty declaration for the subnet that will be configured on that interface.
But the documentation says that the DHCP daemon will only listen on interfaces for which it finds a subnet declaration in the /etc/dhcp/dhcpd.conf file. It can easily be proven. I've added declaration for 192.168.2.0/24 and got this log message:
No subnet declaration for wifi (192.168.1.11). ** Ignoring requests on wifi. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface wifi is attached. ** Andrei Korshikov (talk) 19:51, 21 March 2022 (UTC)
- I have tried the guide on the wiki itself, and can confirm that the above is true.
I will update the wiki.I have added Template:Accuracy and Template:Out of date statuses to the relevant sections, hopefully someone else can confirm the removal and/or discuss it here.