Created
September 19, 2024 06:53
-
-
Save 11notes/a3eb65fcfe06c6c352ac5a7882554bd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Dhcp4": { | |
"authoritative": false, | |
"control-socket": { | |
"socket-name": "/run/kea/kea-dhcp4-ctrl.sock", | |
"socket-type": "unix" | |
}, | |
"interfaces-config": { | |
"interfaces": [ | |
"eth2", | |
"eth3", | |
"eth4" | |
] | |
}, | |
"expired-leases-processing": { | |
"flush-reclaimed-timer-wait-time": 25, | |
"hold-reclaimed-time": 3600, | |
"max-reclaim-leases": 100, | |
"max-reclaim-time": 250, | |
"reclaim-timer-wait-time": 10, | |
"unwarned-reclaim-cycles": 5 | |
}, | |
"lease-database": { | |
"type": "postgresql", | |
"name": "kea_db", | |
"user": "some_user", | |
"password": "lol nope", | |
"host": "localhost", | |
"port": 5432 | |
}, | |
"hosts-database": { | |
"type": "postgresql", | |
"name": "kea_db", | |
"user": "some_other_user", | |
"password": "not so much", | |
"host": "localhost", | |
"port": 5432 | |
}, | |
"loggers": [ | |
{ | |
"name": "kea-dhcp4", | |
"output_options": [ | |
{ | |
"output": "/usr/local/var/log/kea-dhcp4.log", | |
"maxsize": 10240000, | |
"maxver": 1, | |
"flush": true | |
} | |
], | |
"severity": "ERROR" | |
} | |
], | |
"multi-threading": { | |
"enable-multi-threading": true, | |
"thread-pool-size": 4 | |
}, | |
"shared-networks": [], | |
"hooks-libraries": [ | |
{ | |
"library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so" | |
}, | |
{ | |
"library": "/usr/local/lib/kea/hooks/libdhcp_pgsql_cb.so" | |
}, | |
{ | |
"library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so", | |
"parameters": {} | |
}, | |
{ | |
"library": "/usr/local/lib/kea/hooks/libdhcp_host_cmds.so" | |
}, | |
{ | |
"library": "/usr/local/lib/kea/hooks/libdhcp_flex_id.so" | |
}, | |
{ | |
"library": "/usr/local/lib/kea/hooks/libdhcp_perfmon.so" | |
}, | |
{ | |
"library": "/usr/local/lib/kea/hooks/libdhcp_run_script.so" | |
} | |
], | |
"option-data": [ | |
{ | |
"name": "domain-name-servers", | |
"data": "198.51.100.1, 198.51.100.2" | |
} | |
], | |
"subnet4": [ | |
{ | |
"id": 1, | |
"subnet": "10.8.0.0/18", | |
"pools": [ | |
{ | |
"pool": "10.8.0.2 - 10.8.63.254" | |
} | |
], | |
"option-data": [ | |
{ | |
"name": "routers", | |
"data": "10.8.0.1" | |
} | |
], | |
"relay": { | |
"ip-address": "10.8.0.1" | |
}, | |
"client-class": "SPAWN_OLT_BQLM-01-VOIP" | |
}, | |
{ | |
"id": 2, | |
"subnet": "100.64.0.0/18", | |
"pools": [ | |
{ | |
"pool": "100.64.0.2 - 100.64.63.254" | |
} | |
], | |
"option-data": [ | |
{ | |
"name": "routers", | |
"data": "100.64.0.1" | |
} | |
], | |
"relay": { | |
"ip-address": "100.64.0.1" | |
}, | |
"client-class": "SPAWN_OLT_BQLM-01-HSIA" | |
}, | |
{ | |
"id": 3, | |
"subnet": "10.24.0.0/18", | |
"pools": [ | |
{ | |
"pool": "10.24.0.2 - 10.24.63.254" | |
} | |
], | |
"option-data": [ | |
{ | |
"name": "routers", | |
"data": "10.24.0.1" | |
} | |
], | |
"relay": { | |
"ip-address": "10.24.0.1" | |
}, | |
"client-class": "SPAWN_OLT_BQLM-01-MGMT" | |
}, | |
{ | |
"id": 4, | |
"subnet": "10.9.0.0/18", | |
"pools": [ | |
{ | |
"pool": "10.9.0.2 - 10.9.63.254" | |
} | |
], | |
"option-data": [ | |
{ | |
"name": "routers", | |
"data": "10.9.0.1" | |
} | |
], | |
"relay": { | |
"ip-address": "10.9.0.1" | |
}, | |
"client-class": "SPAWN_OLT_CQLM-01-VOIP" | |
}, | |
{ | |
"id": 5, | |
"subnet": "100.65.0.0/18", | |
"pools": [ | |
{ | |
"pool": "100.65.0.2 - 100.65.63.254" | |
} | |
], | |
"option-data": [ | |
{ | |
"name": "routers", | |
"data": "100.65.0.1" | |
} | |
], | |
"relay": { | |
"ip-address": "100.65.0.1" | |
}, | |
"client-class": "SPAWN_OLT_CQLM-01-HSIA" | |
}, | |
{ | |
"id": 6, | |
"subnet": "10.25.0.0/18", | |
"pools": [ | |
{ | |
"pool": "10.25.0.2 - 10.25.63.254" | |
} | |
], | |
"option-data": [ | |
{ | |
"name": "routers", | |
"data": "10.25.0.1" | |
} | |
], | |
"relay": { | |
"ip-address": "10.25.0.1" | |
}, | |
"client-class": "SPAWN_OLT_CQLM-01-MGMT" | |
} | |
], | |
"client-classes": [ | |
{ | |
"name": "OLT", | |
"template-test": "substring(relay4[1].hex)" | |
} | |
], | |
"valid-lifetime": 604800, | |
"renew-timer": 302400, | |
"rebind-timer": 529200 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment