View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003961 | Alternative Architectures | General | public | 2023-08-17 22:47 | 2023-08-17 23:06 |
Reporter | Yuriy Sergeev | Assigned To | Neil Hanlon | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | no change required | ||
Summary | 0003961: dhcpd.service: Failed with result 'exit-code' | ||||
Description | hi, 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 Reproduce | install 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 | ||||
Tags | dhcp, dhcpd | ||||
can you share the full output from `journalctl -xeu dhcpd.service` after it fails to start? | |
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. |
|
sorry, will check network settings ) just a moment | |
Problem solved ) | |
Glad you figured it out! The `systemctl status` command truncates the output, so it is confusing. Good luck with your DHCP server :) |
|
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 |