(rant) this has been a messy week. I added IPv6. Things that have worked for years have quit. Ugh.(/rant)
For no apparent reason dhcpd (v4) has decided to not work.
$ systemctl start dhcpd.service
Job for dhcpd.service failed because the control process exited with error code.
See "systemctl status dhcpd.service" and "journalctl -xe" for details.
Journal:
2019-11-16T21:27:57-0700 sma-server3 dhcpd[29103]: Starting ISC DHCPv4 Server
2019-11-16T21:27:57-0700 sma-server3 dhcpd[29103]: please see /var/log/rc.dhcpd.log for details ..failed
2019-11-16T21:27:57-0700 sma-server3 systemd[1]: dhcpd.service: Control process exited, code=exited status=1
2019-11-16T21:27:57-0700 sma-server3 systemd[1]: Failed to start ISC DHCPv4 Server.
2019-11-16T21:27:57-0700 sma-server3 systemd[1]: dhcpd.service: Unit entered failed state.
2019-11-16T21:27:57-0700 sma-server3 systemd[1]: dhcpd.service: Failed with result 'exit-code'.
rc.dhcpd.log
Config file: /etc/dhcpd.conf
Database file: /db/dhcpd.leases
PID file: /var/run/dhcpd.pid
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 39 leases to leases file.
No subnet declaration for eth0 (no IPv4 addresses).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **
Not configured to listen on any interfaces!
dhcp subnet that is supposedly “undeclared”. There has been no problem with this for years.
I have started it manually (systemctl start dhcpd.service), well after the interface is ready and has been operating for a while.
I have tried stripping the subnet definition to its minimum. No joy.
Nov 17 14:33:38 erlangen systemd[1]: Starting ISC DHCPv4 Server...
-- Subject: A start job for unit dhcpd.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit dhcpd.service has begun execution.
--
-- The job identifier is 6602.
**Nov 17 14:33:38 erlangen dhcpd[7947]: Starting ISC DHCPv4 Server ... set DHCPD_INTERFACE in /etc/sysconfig/dhcpd..skipped
Nov 17 14:33:38 erlangen systemd[1]: dhcpd.service: Control process exited, code=exited, status=6/NOTCONFIGURED**
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit dhcpd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 6.
Nov 17 14:33:38 erlangen systemd[1]: dhcpd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit dhcpd.service has entered the 'failed' state with result 'exit-code'.
Nov 17 14:33:38 erlangen systemd[1]: Failed to start ISC DHCPv4 Server.
-- Subject: A start job for unit dhcpd.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit dhcpd.service has finished with a failure.
--
-- The job identifier is 6602 and the job result is failed.
What is your DHCPD_INTERFACE?
erlangen:~ # head /etc/dhcpd.conf
# /etc/dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# *** PLEASE CONFIGURE IT FIRST ***
#
# Don't forget to set the DHCPD_INTERFACE in the
# /etc/sysconfig/dhcpd file.
#
erlangen:~ #
Are you using the YaST DHCP server module or are you configuring some other way?
I have used the Yast facility.
I have used Webmin to modify the conf.
I have manually (re-)created the conf.
I had done none of those previous to its failure to launch this week.
It does not matter. Always the same error (see the OP).
$ ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1460 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:24:8c:9a:f4:f4 brd ff:ff:ff:ff:ff:ff
Did you disable IPv4 when you enabled IPv6?
In other words, how did you enable IPv6?
There is no IPv4 address at all configured for eth0.
You’ll need to configure an IPv4 address (preferably static) and make sure IPv4 hasn’t been disabled.
Reviewing your posts, I don’t see that you’ve posted your etho interface file.
I enabled a DHCPD6 service on another host. It had a RA as well.
There is no IPv4 address at all configured for eth0.
True. There was an option to add a (secondary?) IPv4 address, which I did.
You’ll need to configure an IPv4 address (preferably static)
Bingo!
Yes, by replacing the IPv6 address with an IPv4 address, DHCP started as expected.
It would seem that the secondary IPv4 entry was insufficient.