Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] dhcpd4 fails (Read 659 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] dhcpd4 fails

When I start the service it fails.
dhcpd-pre is fine.

I added a log and it's empty.
If I run the command from the command line no output.

I see that usb tethering uses that service.
The machine that gives internet.

Re: dhcpd4 fails

Reply #1
We were just discussing this on IRC.

FWIW - try Vixies DHCP server

Re: dhcpd4 fails

Reply #2
Do you need to change the config?
Dinit log is empty but /var/log/everything.log (from syslog-ng):
Code: [Select]
Tue  5 18:18:05 artix dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Tue  5 18:18:05 artix dhcpd: Internet Systems Consortium DHCP Server 4.4.3-P1
Tue  5 18:18:05 artix dhcpd: Copyright 2004-2022 Internet Systems Consortium.
Tue  5 18:18:05 artix dhcpd: All rights reserved.
Tue  5 18:18:05 artix dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Tue  5 18:18:05 artix dhcpd: Source compiled to use binary-leases
Tue  5 18:18:05 artix dhcpd: Wrote 0 class decls to leases file.
Tue  5 18:18:05 artix dhcpd: Wrote 0 deleted host decls to leases file.
Tue  5 18:18:05 artix dhcpd: Wrote 0 new dynamic host decls to leases file.
Tue  5 18:18:05 artix dhcpd: Wrote 0 leases to leases file.
Tue  5 18:18:05 artix dhcpd:
Tue  5 18:18:05 artix dhcpd: No subnet declaration for wlan0 (10.42.0.73).
Tue  5 18:18:05 artix dhcpd: ** Ignoring requests on wlan0.  If this is not what
Tue  5 18:18:05 artix dhcpd:    you want, please write a subnet declaration
Tue  5 18:18:05 artix dhcpd:    in your dhcpd.conf file for the network segment
Tue  5 18:18:05 artix dhcpd:    to which interface wlan0 is attached. **
Tue  5 18:18:05 artix dhcpd:
Tue  5 18:18:05 artix dhcpd:
Tue  5 18:18:05 artix dhcpd: No subnet declaration for eth0 (no IPv4 addresses).
Tue  5 18:18:05 artix dhcpd: ** Ignoring requests on eth0.  If this is not what
Tue  5 18:18:05 artix dhcpd:    you want, please write a subnet declaration
Tue  5 18:18:05 artix dhcpd:    in your dhcpd.conf file for the network segment
Tue  5 18:18:05 artix dhcpd:    to which interface eth0 is attached. **
Tue  5 18:18:05 artix dhcpd:
Tue  5 18:18:05 artix dhcpd:
Tue  5 18:18:05 artix dhcpd: Not configured to listen on any interfaces!
Tue  5 18:18:05 artix dhcpd:
Tue  5 18:18:05 artix dhcpd: If you think you have received this message due to a bug rather
Tue  5 18:18:05 artix dhcpd: than a configuration issue please read the section on submitting
Tue  5 18:18:05 artix dhcpd: bugs on either our web page at www.isc.org or in the README file
Tue  5 18:18:05 artix dhcpd: before submitting a bug.  These pages explain the proper
Tue  5 18:18:05 artix dhcpd: process and the information we find helpful for debugging.
Tue  5 18:18:05 artix dhcpd:
Tue  5 18:18:05 artix dhcpd: exiting.

Is dhcp unmaintained?
https://www.isc.org/dhcp/
Quote
ISC has announced the end of maintenance for ISC DHCP as of the end of 2022.

Re: dhcpd4 fails

Reply #3
I added to /etc/dhcpd.conf:

Code: [Select]
subnet 10.42.0.0 netmask 255.255.255.0 {
  range 10.42.0.50 10.42.0.100;
  option routers 10.42.0.1;
  option domain-name-servers 8.8.8.8;
}

And it starts fine.
In everything.log there was some new error about 10.42.X.X address and wlan0.