View Issue Details

IDProjectCategoryView StatusLast Update
0003961Alternative ArchitecturesGeneralpublic2023-08-17 23:06
ReporterYuriy Sergeev Assigned ToNeil Hanlon  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Summary0003961: dhcpd.service: Failed with result 'exit-code'
Descriptionhi, mates! I tried to setting up dhcp server on my rpi4b for local network.
I did according this https://www.linuxtechi.com/configure-dhcp-server-on-rhel-rockylinux/?utm_content=cmp-true
after 'sudo systemctl enable --now dhcpd' or 'systemctl status dhcpd.service'
I received an error:
systemctl status dhcpd.service
× dhcpd.service - DHCPv4 Server Daemon
     Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Wed 2023-05-24 00:00:14 UTC; 30s ago
       Docs: man:dhcpd(8)
             man:dhcpd.conf(5)
    Process: 440 ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid $DHCPDARGS (code=exited, status=1/FAILURE)
   Main PID: 440 (code=exited, status=1/FAILURE)
        CPU: 49ms

May 24 00:00:14 dev.local dhcpd[440]: have been made to the base software release in order to make
May 24 00:00:14 dev.local dhcpd[440]: it work better with this distribution.
May 24 00:00:14 dev.local dhcpd[440]:
May 24 00:00:14 dev.local dhcpd[440]: Please report issues with this software via:
May 24 00:00:14 dev.local dhcpd[440]: https://bugs.rockylinux.org/
May 24 00:00:14 dev.local dhcpd[440]:
May 24 00:00:14 dev.local dhcpd[440]: exiting.
May 24 00:00:14 dev.local systemd[1]: dhcpd.service: Main process exited, code=exited, status=1/FAILURE
May 24 00:00:14 dev.local systemd[1]: dhcpd.service: Failed with result 'exit-code'.
May 24 00:00:14 dev.local systemd[1]: Failed to start DHCPv4 Server Daemon.
Steps To Reproduceinstall dhcp server:
sudo dnf install dhcp-server -y
sudo vi /etc/dhcp/dhcpd.conf >>>
default-lease-time 3600;
max-lease-time 86400;
authoritative;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.10 192.168.2.100;
option routers 192.168.2.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.2.1;
}
Save & close the file.

sudo systemctl enable --now dhcpd
sudo systemctl status dhcpd
Tagsdhcp, dhcpd

Activities

Neil Hanlon

Neil Hanlon

2023-08-17 22:54

administrator   ~0004390

can you share the full output from `journalctl -xeu dhcpd.service` after it fails to start?
Yuriy Sergeev

Yuriy Sergeev

2023-08-17 22:56

reporter   ~0004391

May 24 00:00:14 dev.local systemd[1]: Starting DHCPv4 Server Daemon...
░░ Subject: A start job for unit dhcpd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit dhcpd.service has begun execution.
░░
░░ The job identifier is 87.
May 24 00:00:14 dev.local dhcpd[440]: Internet Systems Consortium DHCP Server 4.4.2b1
May 24 00:00:14 dev.local dhcpd[440]: Copyright 2004-2019 Internet Systems Consortium.
May 24 00:00:14 dev.local dhcpd[440]: All rights reserved.
May 24 00:00:14 dev.local dhcpd[440]: For info, please visit https://www.isc.org/software/dhcp/
May 24 00:00:14 dev.local dhcpd[440]: bad range, address 192.168.10.100 not in subnet 192.168.2.0 netmask 255.255.255.0
May 24 00:00:14 dev.local dhcpd[440]:
May 24 00:00:14 dev.local dhcpd[440]: This version of ISC DHCP is based on the release available
May 24 00:00:14 dev.local dhcpd[440]: on ftp.isc.org. Features have been added and other changes
May 24 00:00:14 dev.local dhcpd[440]: have been made to the base software release in order to make
May 24 00:00:14 dev.local dhcpd[440]: it work better with this distribution.
May 24 00:00:14 dev.local dhcpd[440]:
May 24 00:00:14 dev.local dhcpd[440]: Please report issues with this software via:
May 24 00:00:14 dev.local dhcpd[440]: https://bugs.rockylinux.org/
May 24 00:00:14 dev.local dhcpd[440]:
May 24 00:00:14 dev.local dhcpd[440]: exiting.
May 24 00:00:14 dev.local systemd[1]: dhcpd.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ An ExecStart= process belonging to unit dhcpd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
May 24 00:00:14 dev.local systemd[1]: dhcpd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The unit dhcpd.service has entered the 'failed' state with result 'exit-code'.
May 24 00:00:14 dev.local systemd[1]: Failed to start DHCPv4 Server Daemon.
░░ Subject: A start job for unit dhcpd.service has failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit dhcpd.service has finished with a failure.
░░
░░ The job identifier is 87 and the job result is failed.
Yuriy Sergeev

Yuriy Sergeev

2023-08-17 22:59

reporter   ~0004392

sorry, will check network settings ) just a moment
Yuriy Sergeev

Yuriy Sergeev

2023-08-17 23:01

reporter   ~0004393

Problem solved )
Neil Hanlon

Neil Hanlon

2023-08-17 23:06

administrator   ~0004394

Glad you figured it out! The `systemctl status` command truncates the output, so it is confusing.

Good luck with your DHCP server :)

Issue History

Date Modified Username Field Change
2023-08-17 22:47 Yuriy Sergeev New Issue
2023-08-17 22:47 Yuriy Sergeev Tag Attached: dhcp
2023-08-17 22:47 Yuriy Sergeev Tag Attached: dhcpd
2023-08-17 22:54 Neil Hanlon Note Added: 0004390
2023-08-17 22:56 Yuriy Sergeev Note Added: 0004391
2023-08-17 22:59 Yuriy Sergeev Note Added: 0004392
2023-08-17 23:01 Yuriy Sergeev Note Added: 0004393
2023-08-17 23:06 Neil Hanlon Note Added: 0004394
2023-08-17 23:06 Neil Hanlon Assigned To => Neil Hanlon
2023-08-17 23:06 Neil Hanlon Status new => closed
2023-08-17 23:06 Neil Hanlon Resolution open => no change required