https://github.com/isc-projects/dhcp
Config
코드 블럭 |
---|
root@vyos:~# ps aux | grep dhcp
_kea 33885 0.0 0.0 1248536 25736 ? Ssl Jul22 0:22 /usr/sbin/kea-dhcp4 -c /run/kea/kea-dhcp4.conf
root@vyos:~# cat /run/kea/kea-dhcp4.conf
{
"Dhcp4": {
...
"lease-database": {
"type": "memfile",
"persist": true,
"name": "/config/dhcp/dhcp4-leases.csv"
},
...
"shared-networks": [
{
"name": "ETH5-MIRAE-NAT",
"authoritative": false,
"subnet4": [
{
"subnet": "10.80.16.0/20",
...
"valid-lifetime": 86400,
"max-valid-lifetime": 86400,
...
root@vyos:~# ls /config/dhcp
dhcp4-leases.csv dhcp4-leases.csv.2 |
Lease Database
address | hwaddr | client_id | valid_lifetime | expire | subnet_id | fqdn_fwd | fqdn_rev | hostname | state | user_context | pool_id |
---|
10.80.0.11 | 58:97:bd:49:ac:20 | 01:58:97:bd:49:ac:20 | 86400 | 1722024719 | 501 | 0 | 0 | ap5897.bd49.ac20 | 0 |
| 0 |
10.80.0.12 | 58:97:bd:48:64:34 | 01:58:97:bd:48:64:34 | 86400 | 1722027616 | 501 | 0 | 0 | ap5897.bd48.6434 | 0 |
| 0 |