Files
gsb2025/roles/kea/templates/kea-dhcp4.conf.j2
2025-01-23 08:14:23 +01:00

114 lines
3.2 KiB
Django/Jinja
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"Dhcp4": {
"interfaces-config": {
"interfaces": ["{{ kea_dhcp_int }}"]
},
"control-socket": {
"socket-type": "unix",
"socket-name": "/tmp/kea4-ctrl-socket"
},
"lease-database": {
"type": "memfile"
},
"valid-lifetime": 43200,
"renew-timer": 21600,
"rebind-timer": 32400,
"expired-leases-processing": {
"reclaim-timer-wait-time": 3600,
"hold-reclaimed-time": 172800,
"max-reclaim-leases": 0,
"max-reclaim-time": 0
},
"hooks-libraries": [
{
"library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so"
},
{
"library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_stat_cmds.so"
},
{
"library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [ {
"this-server-name": "{{ kea_this_server }}",
"mode": "hot-standby",
"heartbeat-delay": 10000,
"max-response-delay": 30000,
"max-ack-delay": 5000,
"max-unacked-clients": 0,
"sync-timeout": 60000,
"peers": [
{
"name": "{{ kea_srv1 }}",
"url": "http://{{ kea_ctrl_address1 }}:8000/",
"role": "primary"
},
{
"name": "{{ kea_srv2 }}",
"url": "http://{{ kea_ctrl_address2 }}:8000/",
"role": "standby"
}
]
} ]
}
}
],
"subnet4": [
{
"subnet": "172.16.64.0/24",
"id": 1,
"interface": "enp0s9",
"pools": [
{
"pool": "172.16.64.100-172.16.64.150"
}
],
"option-data": [
{
"name": "routers",
"data": "172.16.64.254"
},
{
"name": "domain-name-servers",
"data": "172.16.0.1, 172.16.0.4"
},
{
"name": "domain-name",
"data": "gsb.lan"
},
{
"name": "domain-search",
"data": "gsb.lan"
},
],
#"reservations": [
# {
# "hw-address": "1a:1b:1c:1d:1e:1f",
# "ip-address": "192.168.1.10"
# },
# {
# "client-id": "01:11:22:33:44:55:66",
# "ip-address": "192.168.1.11"
# }
#]
}
],
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
{
"output": "stdout",
"maxsize": 2048000,
"maxver": 4
}
],
"severity": "INFO",
"debuglevel": 0
}
]
}
}