Web lists-archives.com

dhcp service problem on stretch




Hi,

Just installed my first stretch server using the 9.5 DVD1, installed the normal system environment, no desktop just a ssh server, and added the isc dhcp server.
I transferred my original dhcpf.conf file, stripped what I did not need in the new environment and expected no problems. However...

It seems the dhcp service does not want to start but I have no idea why.
I have stripped my dhcpd.conf down to barely nothing and a regular test gives no errors but the service refuses to start, why?

Testing the config, no error
=====================
linom1:~# /usr/sbin/dhcpd -t -cf /etc/dhcp/dhcpd.conf
Internet Systems Consortium DHCP Server 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
linom1:~#

Starting the service, error
=====================
linom1:~# service isc-dhcp-server start
Job for isc-dhcp-server.service failed because the control process exited with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.

And just for the fun of it, the /etc/dhcpd/dhcpd.conf file
-----<quote>---------------
linom1:~# cat /etc/dhcp/dhcpd.conf
shared-network om1-lan.tio.nl {
  subnet 172.16.72.0 netmask 255.255.254.0 {
    option routers 172.16.72.1;
    option domain-name "tio.nl";
    # Dyanamic range
    range 172.16.73.200 172.16.73.240;
  }
}
-----<quote>---------------
And the 172.16.72.0/23 network is definitely in range for this dhcp server
================
linom1:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:50:56:8a:3c:ee brd ff:ff:ff:ff:ff:ff
    inet 172.16.72.19/23 brd 172.16.73.255 scope global ens192
       valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:fe8a:3cee/64 scope link
       valid_lft forever preferred_lft forever

Also the logging is not very helpful
=========================
linom1:~# systemctl status isc-dhcp-server.service
● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-09-06 17:47:42 CEST; 12min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1668 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/isc-dhcp-server.service
           └─1409 /usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf

Sep 06 17:47:42 linom1 systemd[1]: Starting LSB: DHCP server...
Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: /etc/init.d/isc-dhcp-server: 50: /etc/init.d/isc-dhcp-server: cannot open /etc/dhcp/dhcpd6.conf: No
Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: Launching both IPv4 and IPv6 servers (please configure INTERFACES in /etc/default/isc-dhcp-server if
Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: Starting ISC DHCPv4 server: dhcpddhcpd service already running (pid file /var/run/dhcpd.pid currenty
Sep 06 17:47:42 linom1 systemd[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
Sep 06 17:47:42 linom1 systemd[1]: Failed to start LSB: DHCP server.
Sep 06 17:47:42 linom1 systemd[1]: isc-dhcp-server.service: Unit entered failed state.
Sep 06 17:47:42 linom1 systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
lines 1-17/17 (END)

Who can help me?

Bonno Bloksma