[Kea-users] Raspberry PI 3B+ as DHCPv4 & DHCPv6 HA pair - auto start issue

russell aspinwall raspinwall at willows7.myzen.co.uk
Thu Jan 24 20:51:12 UTC 2019


Hi,

I have configured a pair of Raspberry PI 3B+ using Ubuntu 18.10 and Kea 
1.4.0-P1-3 which is available for Ubuntu 18.10.

In order to keep the DHCPv4 and DHCPv6 separate I have created two 
kea-ctrl-agent config files /etc/kea/kea-ctrl-agent.conf and 
/etc/kea/kea-ctrl-agent6.conf. I copied /usr/sbin/kea-ctrl-agent to 
/usr/sbin/kea-ctrl-agent6.

In the /etc/kea/kea-ctrl-agent.conf I have used the Raspberry PI IPv4 
address and port 8080 and socket /tmp/kea-dhcp4-ctrl.sock

In the /etc/kea/kea-ctrl-agent6.conf I have used the Raspberry PI IPv6 
Unique Local Unicast address and port 8081 with socket 
tmp/kea-dhcp6-ctrl.sock.

The kea-dhcp4.conf and kea-dhcp6.conf files are adjusted to use the 
correct socket and http://address:port.

I have been using systemd :( to start the kea-ctrl-agent, 
kea-ctrl-agent6, kea-dhcp4-server and kea-dhcp6-server. When I reboot 
the PI the kea-ctrl-agent is not running when I log in but the 
kea-ctrl-agent6 is running.

If I manually start

/usr/sbin/kea-crtl-agent -c /etc/kea/kea-ctrl-agent.conf &

  I get a warning but the DHCPv4 HA starts working
"Unable to use interprocess sync lockfile (No such file or directory): 
/var/run/kea/isc_kea_logger_lockfile
Unable to use interprocess sync lockfile (No such file or directory): 
/var/run/kea/isc_kea_logger_lockfile
Unable to use interprocess sync lockfile (No such file or directory): 
/var/run/kea/isc_kea_logger_lockfile
Unable to use interprocess sync lockfile (No such file or directory): 
/var/run/kea/isc_kea_logger_lockfile"

I would like to get all the services starting during a reboot, any 
pointers to get the processes running would be appreciated.

TIA



More information about the Kea-users mailing list