# /etc/kea/kea-dhcp4.conf # This file will be identical on both primary and stand-by servers. # This file includes other files for the server-specific information. # Add subnets, pools, host reservations, etc, to this file. # One can then copy the updated file to both servers without further changes. { "Dhcp4": { "control-socket": { "socket-type": "unix", "socket-name": "/var/run/kea/dhcp4.sock" }, "interfaces-config": { "interfaces": [ "ens3" ] }, "lease-database": { "type": "memfile", "name": "/var/lib/kea/dhcp4.leases", "persist": true }, "hooks-libraries": [ { "library": "libdhcp_ha.so", "parameters": { "high-availability": [ { "mode": "hot-standby", "peers": [ { "name": "alpha", "url": "http://192.0.2.6:8004/", "role": "primary" }, # alpha { "name": "bravo", "url": "http://192.0.2.7:8004/", "role": "standby" } # bravo ] # peers } ] # high-avail } # params } # libdhcp_ha ], # hooks "subnet4": [ { "id": 4001, "subnet": "192.0.2.0/24", "pools": [ { "pool": "192.0.2.100 - 192.0.2.199" } ] # pools } # subnet 4001 ] # subnets } # dhcp4 } # root