Problem: DHCP Service Does Not Start

Problem

The DHCP service does not offer IP addresses to your clients.

Solution

Step 1

Make sure the app itself is installed and configured on the server.

root@ucs:~# univention-app domain
ucs.multi.ucs:
UCS: 4.4-2 errata376
Installed: dhcp-server=12.0 samba4=4.10
Upgradable: 

ucs2.multi.ucs:
UCS: 4.4-2 errata389
Installed: 
Upgradable:

Step 2

Try to (re-) start the service:
systemctl restart univention-dhcp

Step 3

Check log files (/var/log/daemon.log and /var/log/syslog) for errors:

Nov 24 06:25:19 ucs dhcpd[26977]: LDAP line 5: subnet 10.9.4.0 netmask 255.255.0.0: bad subnet number/mask combination.
Nov 24 06:25:19 ucs dhcpd[26977]: subnet 10.9.4.0 netmask 255.255.0.0
Nov 24 06:25:19 ucs dhcpd[26977]:                                   ^
Nov 24 06:25:19 ucs dhcpd[26977]: LDAP: cannot parse dhcpService entry 'cn=bs,cn=dhcp,ou=AB,dc=school,dc=multi,dc=ucs'
Nov 24 06:25:19 ucs dhcpd[26977]: Configuration file errors encountered -- exiting
Nov 24 06:25:19 ucs dhcpd[26977]: 
Nov 24 06:25:19 ucs dhcpd[26977]: If you think you have received this message due to a bug rather
Nov 24 06:25:19 ucs dhcpd[26977]: than a configuration issue please read the section on submitting
Nov 24 06:25:19 ucs dhcpd[26977]: bugs on either our web page at www.isc.org or in the README file
Nov 24 06:25:19 ucs dhcpd[26977]: before submitting a bug.  These pages explain the proper
Nov 24 06:25:19 ucs dhcpd[26977]: process and the information we find helpful for debugging..
Nov 24 06:25:19 ucs dhcpd[26977]: 
Nov 24 06:25:19 ucs dhcpd[26977]: exiting.
Nov 24 06:25:20 ucs univention-s4-connector[26896]: Starting Univention S4 Connector: univenti

Solution

Netmask and network have to match for DHCP service.
In the above example enter netmask and network as follows in UMC:

Network 10.9.0.0
Netmask 255.255.0.0

or:

Network 10.9.4.0
Netmask 255.255.255.0
Mastodon