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

addresshwaddrclient_idvalid_lifetimeexpiresubnet_idfqdn_fwdfqdn_revhostnamestateuser_contextpool_id
10.80.0.1158:97:bd:49:ac:2001:58:97:bd:49:ac:2086400172202471950100ap5897.bd49.ac200
0
10.80.0.1258:97:bd:48:64:3401:58:97:bd:48:64:3486400172202761650100ap5897.bd48.64340
0


  • 레이블 없음