Ask Your Question
1

F28: How to start dhcp server?

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

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
0

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

Steel93 gravatar image

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

Try:

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

Comments

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 -0600 )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 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 98 times

Last updated: Sep 05