Kea(DHCPサーバ)のインストール

https://www.isc.org/download/#Kea

作業手順

cd /opt
wget https://downloads.isc.org/isc/kea/1.6.0/kea-1.6.0.tar.gz
tar xvf kea-1.6.0.tar.gz

sudo apt -y install automake libtool pkg-config build-essential ccache
sudo apt -y install libboost-dev libboost-system-dev liblog4cplus-dev libssl-dev

./configure
make
make install

cat <<EOF | sudo tee /etc/systemd/system/kea-dhcp4.service
[Unit]
Description=Kea DHCPv4 Server
Documentation=man:kea-dhcp4(8)
Wants=network-online.target
After=network-online.target
After=time-sync.target

[Service]
ExecStart=/usr/local/sbin/kea-dhcp4 -c /usr/local/etc/kea/kea-dhcp4.conf

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo ldconfig

cd /usr/local/etc/kea
sudo cp kea-dhcp4.conf kea-dhcp4.conf.org