Installing and Logging DHCP - jwells24/Tech-Journal GitHub Wiki
Installing DHCP on Ubuntu
- For a tutorital on how to install and configure DHCP, follow this Ubuntu guide: Ubuntu DHCP Make sure you haved already established internet connection with netplan, and your dhcp server is allowed to communicate with the internet, as well as the necessary computers on the network.
Logging DHCP
-
Refer to this website for syntax: Conf Syntax , and refer to this file to set up proper logging to the log server: Using rsyslog
-
First, we need to edit the dhcp.conf file to enable logging through ryslog. Find log-facility and change the output to local7;.
-
Next, we need to edit the rsyslog.conf file to send the logs to graylog. In rsyslog.conf, add the host being local7* and the destination of the logs, which would be log01 at port 1514.