Ask Your Question

F28: How to start dhcp server?

asked 2018-09-05 06:00:26 -0500

berndbausch gravatar image

Feeling extremely stupid, as I am sure there are millions of Fedora deployments that run DHCP servers.

I would expect this to work:

systemctl start dhcpd

But after installing dhcp-server, systemd knows nothing about DHCP. Is there another package that I need to install? If not, could somebody share their systemd unit file for dhcpd?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-09-05 07:24:38 -0500

Steel93 gravatar image

It is usually the NetworkManager service that deals with the dhcp.


systemctl status NetworkManager

if the status is "Active" the dhcp service is already working

in alternative you can try:

systemctl start NetworkManager

and for start at the boot

systemctl enable NetworkManager
edit flag offensive delete link more


Thanks, but I have the strong suspicion that just running NetworkManager is not enough. I have it running. I also installed the dhcp-server package and copied a working dhcpd.conf to my Fedora PC.

This command gets no response from the PC:

sudo nmap --script broadcast-dhcp-discover -e enp0s25

but it does get a response from the home DHCP server (which uses the same dhcpd.conf).

berndbausch gravatar imageberndbausch ( 2018-09-05 23:46:12 -0500 )edit

Does that mean you already have a dhcp server in your network? If so, do not add another one.

NetworkManager will only configure a dhcp client, and does not do anything with any dhcp server.

villykruse gravatar imagevillykruse ( 2018-09-06 05:26:09 -0500 )edit

Question Tools


Asked: 2018-09-05 06:00:26 -0500

Seen: 249 times

Last updated: Sep 05 '18