blob: 9380a3c2ac7242d7d5c421a9375c68e5fba6baa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
curl -X POST -H "Content-Type: application/json" -d '{ "command": "lease4-get", "arguments": { "subnet-id": 152, "ip-address": "147.87.152.14"}, "service": [ "dhcp4" ] }' http://localhost:8000/ | jq
··curl -X POST -H "Content-Type: application/json" -d '{ "command": "config-reload", "service": [ "dhcp4" ] }' http://localhost:8000/
»·······»·······curl -X POST -H "Content-Type: application/json" -d '{ "command": "config-reload", "service": [ "dhcp6" ] }' http://localhost:8000/
»·······»·······curl -X POST -H "Content-Type: application/json" -d '{ "command": "config-reload", "service": [ "d2" ] }' http://localhost:8000/
- man muss immer die subnet id mitgeben
- mac adressen als identifier sind nur in ipv4 erlabut, nicht in ipv6
mein beispiel:
# get a lease6
curl -X POST -H "Content-Type: application/json" -d '
{ "command": "lease6-get", "arguments": { "subnet-id": 601000054,
"ip-address": "2a07:6b41:18:12:15:0:1:9"}, "service": [ "dhcp6" ] }'
http://localhost:8000/ | jq
# delete lease6
curl -X POST -H "Content-Type: application/json" -d '
{ "command": "lease6-del", "arguments": { "subnet-id": 601000054,
"ip-address": "2a07:6b41:18:12:15:0:1:9"}, "service": [ "dhcp6" ] }'
http://localhost:8000/ | jq
docu:
https://kea.readthedocs.io/en/latest/arm/hooks.html#libdhcp-lease-cmds-so-lease-commands-for-easier-lease-management
|