DHCP
Having installed the server, and used netplan to configure the network, the next step was to install the DHCP server. To install the server;
sudo apt install isc-dhcp-server
After the installation, to make sure the server is serving dhcp requests on the correct interface edit the /etc/default/isc-dhcp-server.
and then set up the dhcp configuration by editing the /etc/dhcp/dhcpd.conf file
If the server is to be the authoritative dhcp server for the domain, un-comment the term “authoritative;”. This means that any misconfigured client should be able to fix it’s configuration with a request to this server.
Having set the domain info and the pool of ip addresses to be served, restart the dhcp service with;
sudo systemctl restart isc-dhcp-server.service – to restart the service.
sudo systemctl enable isc-dhcp-server.service – To enable the service to run on boot.