From ArchWiki
Revision as of 18:48, 4 August 2013 by WayneS (talk | contribs)
Jump to: navigation, search

The part about editing this file to have dhcpd listen on a particular interface appears outdated:


I was able to get it to listen on a specific interface by editing this file:


This works, but I am not sure that this is the best place to make the edit. Can anyone suggest a better place, or confirm this is the best place?

I created the file /etc/systemd/system/dhcpd4@.service, which did not exist in /usr/lib/systemd/system/
# nano /etc/systemd/system/dhcpd4\@.service
Description=IPv4 DHCP server on %I

ExecStart=/usr/sbin/dhcpd -4 -q -pf /run/ %I

And enabled with:
# systemctl enable dhcpd4@eno1.service
which seems to work, although I am not sure it is the correct way either.
WayneS (talk) 18:48, 4 August 2013 (UTC)