Error when configuring DHCP server through YaST

On my Leap localhost I have a Bridge interface (br1) bonded to eth0 to run VMs, I’m trying to setup a DHCP server on said localhost in order to control all the VM’s through dhcpd options, however I’m running with issues configuring DHCP server through YaST:

  │┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐│ 
  ││br1                                                                                                                                                    ││ 
  ││(No hardware information)                                                                                                                              ││ 
  ││ *  Device Name: br1                                                                                                                                   ││ 
  ││ *  Configured with address 10.10.10.2/28                                                                                                              ││ 
  ││ *  Started automatically at boot                                                                                                                      ││ 
  ││ *  Bridge Ports: eth0 

Error message:

2025-06-05T00:57:23.591045-03:00 apple-srv systemd[1]: Starting ISC DHCPv4 Server...
2025-06-05T00:57:23.729341-03:00 apple-srv dhcpd: Internet Systems Consortium DHCP Server 4.3.6-P1
2025-06-05T00:57:23.729413-03:00 apple-srv dhcpd: Copyright 2004-2018 Internet Systems Consortium.
2025-06-05T00:57:23.729459-03:00 apple-srv dhcpd: All rights reserved.
2025-06-05T00:57:23.729511-03:00 apple-srv dhcpd: For info, please visit https://www.isc.org/software/dhcp/
2025-06-05T00:57:23.732243-03:00 apple-srv dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
2025-06-05T00:57:23.732326-03:00 apple-srv dhcpd: Config file: /var/lib/dhcp//etc/dhcpd.conf
2025-06-05T00:57:23.732374-03:00 apple-srv dhcpd: Database file: /var/lib/dhcp/db/dhcpd.leases
2025-06-05T00:57:23.732420-03:00 apple-srv dhcpd: PID file: /var/run/dhcpd.pid
2025-06-05T00:57:23.735598-03:00 apple-srv dhcpd: Internet Systems Consortium DHCP Server 4.3.6-P1
2025-06-05T00:57:23.735650-03:00 apple-srv dhcpd: Copyright 2004-2018 Internet Systems Consortium.
2025-06-05T00:57:23.735697-03:00 apple-srv dhcpd: All rights reserved.
2025-06-05T00:57:23.735743-03:00 apple-srv dhcpd: For info, please visit https://www.isc.org/software/dhcp/
2025-06-05T00:57:23.737152-03:00 apple-srv dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
2025-06-05T00:57:23.737200-03:00 apple-srv dhcpd: Config file: /etc/dhcpd.conf
2025-06-05T00:57:23.737247-03:00 apple-srv dhcpd: Database file: /db/dhcpd.leases
2025-06-05T00:57:23.737297-03:00 apple-srv dhcpd: PID file: /var/run/dhcpd.pid
2025-06-05T00:57:23.737410-03:00 apple-srv dhcpd: Wrote 0 leases to leases file.
2025-06-05T00:57:23.740251-03:00 apple-srv dhcpd: 
2025-06-05T00:57:23.740302-03:00 apple-srv dhcpd: No subnet declaration for br1 (no IPv4 addresses).
2025-06-05T00:57:23.740365-03:00 apple-srv dhcpd: ** Ignoring requests on br1.  If this is not what
2025-06-05T00:57:23.740414-03:00 apple-srv dhcpd:    you want, please write a subnet declaration
2025-06-05T00:57:23.740459-03:00 apple-srv dhcpd:    in your dhcpd.conf file for the network segment
2025-06-05T00:57:23.740504-03:00 apple-srv dhcpd:    to which interface br1 is attached. **
2025-06-05T00:57:23.740547-03:00 apple-srv dhcpd: 
2025-06-05T00:57:23.740590-03:00 apple-srv dhcpd: 
2025-06-05T00:57:23.740633-03:00 apple-srv dhcpd: Not configured to listen on any interfaces!
2025-06-05T00:57:23.740676-03:00 apple-srv dhcpd: 
2025-06-05T00:57:23.740719-03:00 apple-srv dhcpd: If you think you have received this message due to a bug rather
2025-06-05T00:57:23.740761-03:00 apple-srv dhcpd: than a configuration issue please read the section on submitting
2025-06-05T00:57:23.740803-03:00 apple-srv dhcpd: bugs on either our web page at www.isc.org or in the README file
2025-06-05T00:57:23.740846-03:00 apple-srv dhcpd: before submitting a bug.  These pages explain the proper
2025-06-05T00:57:23.740889-03:00 apple-srv dhcpd: process and the information we find helpful for debugging.
2025-06-05T00:57:23.740932-03:00 apple-srv dhcpd: 
2025-06-05T00:57:23.740980-03:00 apple-srv dhcpd: exiting.
2025-06-05T00:57:23.741487-03:00 apple-srv dhcpd[18328]: Starting ISC DHCPv4 Server
2025-06-05T00:57:23.741668-03:00 apple-srv dhcpd[18328]:   please see /var/log/rc.dhcpd.log for details ..failed
2025-06-05T00:57:23.742631-03:00 apple-srv systemd[1]: dhcpd.service: Control process exited, code=exited, status=1/FAILURE
2025-06-05T00:57:23.742919-03:00 apple-srv systemd[1]: dhcpd.service: Failed with result 'exit-code'.
2025-06-05T00:57:23.774248-03:00 apple-srv systemd[1]: Failed to start ISC DHCPv4 Server.

However my "/etc/dhcpd.conf" does include the subnet declaration:

option domain-name "my.domain";
option domain-name-servers 127.0.0.1;
ddns-update-style none;
default-lease-time 14400;
subnet 10.10.10.0 netmask 255.255.255.240 {
  option subnet-mask 255.255.255.240;
  option routers 10.10.10.0;
  range dynamic-bootp 10.10.10.3 10.10.10.14;
  default-lease-time 14400;
  max-lease-time 172800;
}

Log does not say “you have no subnet declaration”. Log says, dhcpd cannot determine subnet declaration for the br1 interface:

Upload full output (of course, as root) of

journalctl -b --no-pager --full

to https://paste.opensuse.org/

1 Like

Hmmm, strange… after my previous report, I shutdown my DHCP server Leap machine, now I’ve turned it on in order to get the output you requested, I on /var/log/messages I see this:

2025-06-05T19:03:28.284002-03:00 apple-srv systemd[1]: Starting ISC DHCPv4 Server...
2025-06-05T19:03:28.449243-03:00 apple-srv dhcpd: Internet Systems Consortium DHCP Server 4.3.6-P1
2025-06-05T19:03:28.449317-03:00 apple-srv dhcpd: Copyright 2004-2018 Internet Systems Consortium.
2025-06-05T19:03:28.449349-03:00 apple-srv dhcpd: All rights reserved.
2025-06-05T19:03:28.449381-03:00 apple-srv dhcpd: For info, please visit https://www.isc.org/software/dhcp/
2025-06-05T19:03:28.452012-03:00 apple-srv dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
2025-06-05T19:03:28.452065-03:00 apple-srv dhcpd: Config file: /var/lib/dhcp//etc/dhcpd.conf
2025-06-05T19:03:28.452107-03:00 apple-srv dhcpd: Database file: /var/lib/dhcp/db/dhcpd.leases
2025-06-05T19:03:28.452139-03:00 apple-srv dhcpd: PID file: /var/run/dhcpd.pid
2025-06-05T19:03:28.454982-03:00 apple-srv dhcpd: Internet Systems Consortium DHCP Server 4.3.6-P1
2025-06-05T19:03:28.455024-03:00 apple-srv dhcpd: Copyright 2004-2018 Internet Systems Consortium.
2025-06-05T19:03:28.455058-03:00 apple-srv dhcpd: All rights reserved.
2025-06-05T19:03:28.455102-03:00 apple-srv dhcpd: For info, please visit https://www.isc.org/software/dhcp/
2025-06-05T19:03:28.456174-03:00 apple-srv dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
2025-06-05T19:03:28.456258-03:00 apple-srv dhcpd: Config file: /etc/dhcpd.conf
2025-06-05T19:03:28.456317-03:00 apple-srv dhcpd: Database file: /db/dhcpd.leases
2025-06-05T19:03:28.456349-03:00 apple-srv dhcpd: PID file: /var/run/dhcpd.pid
2025-06-05T19:03:28.456378-03:00 apple-srv dhcpd: Wrote 0 leases to leases file.
2025-06-05T19:03:28.495362-03:00 apple-srv dhcpd: Listening on LPF/br1/00:25:00:ee:6b:53/10.10.10.0/28
2025-06-05T19:03:28.495475-03:00 apple-srv dhcpd: Sending on   LPF/br1/00:25:00:ee:6b:53/10.10.10.0/28
2025-06-05T19:03:28.495548-03:00 apple-srv dhcpd: Sending on   Socket/fallback/fallback-net
2025-06-05T19:03:28.496174-03:00 apple-srv dhcpd: Server starting service.
2025-06-05T19:03:28.498205-03:00 apple-srv dhcpd[20071]: Starting ISC DHCPv4 Server [chroot]..done
2025-06-05T19:03:28.498794-03:00 apple-srv systemd[1]: Started ISC DHCPv4 Server.
# systemctl status dhcpd
● dhcpd.service - ISC DHCPv4 Server
     Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; preset: disabled)
     Active: active (running) since Thu 2025-06-05 19:03:28 -03; 18s ago
    Process: 20071 ExecStart=/usr/lib/dhcp/dhcpd -4 start (code=exited, status=0/SUCCESS)
   Main PID: 20196 (dhcpd)
      Tasks: 1 (limit: 4915)
        CPU: 177ms
     CGroup: /system.slice/dhcpd.service
             └─20196 /usr/sbin/dhcpd -4 -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid -chroot /var/lib/dhcp -lf /db/dhcpd.leases -user dhcpd -group >

Jun 05 19:03:28 apple-srv dhcpd[20187]: Config file: /etc/dhcpd.conf
Jun 05 19:03:28 apple-srv dhcpd[20187]: Database file: /db/dhcpd.leases
Jun 05 19:03:28 apple-srv dhcpd[20187]: PID file: /var/run/dhcpd.pid
Jun 05 19:03:28 apple-srv dhcpd[20187]: Wrote 0 leases to leases file.
Jun 05 19:03:28 apple-srv dhcpd[20187]: Listening on LPF/br1/00:25:00:ee:6b:53/10.10.10.0/28
Jun 05 19:03:28 apple-srv dhcpd[20187]: Sending on   LPF/br1/00:25:00:ee:6b:53/10.10.10.0/28
Jun 05 19:03:28 apple-srv dhcpd[20187]: Sending on   Socket/fallback/fallback-net
Jun 05 19:03:28 apple-srv dhcpd[20196]: Server starting service.
Jun 05 19:03:28 apple-srv dhcpd[20071]: Starting ISC DHCPv4 Server [chroot]..done
Jun 05 19:03:28 apple-srv systemd[1]: Started ISC DHCPv4 Server.

So it seems to be working now? I’m not sure if you still need the output for journalctl -b --no-pager --full

If dhcpd is working, my question would be, why did it work after a restart? I’ll do some more digging and close the ticket as resolved if nothing comes up. Thanks for your support as always, @arvidjaar !

Alright, so everything seems fine now! I’m not sure what was that but I will monitor dhcpd for a while. Thanks as always for the great help! I’m getting more and more comfortable with Leap thanks to all of you guys!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.