Hello,

I'm trying to use Kea 1.6 with MariaDB in a project. Setup and install Kea + 
MariaDB cluster was fine. I then manually inserted a subnet and DHCP scope to 
database for testing. I had to insert manually because there is no way to add a 
subnet to database through Kea interface. Is there a better way to add a subnet 
via Kea interface?

I then used config-get command to get server's configuration but no subnet was 
shown and the server's log also said that it found no subnet. I had one in 
database so what could be the problem there?

Part of server's configuration is attached.


Thanks,

Dan Nguyen
"Dhcp4": {
    "server-tag": "my-dhcp4",
    "interfaces-config": {
        "interfaces": [ "enp0s8" ],
        "dhcp-socket-type": "raw"
    },
    "control-socket": {
        "socket-type": "unix",
        "socket-name": "/tmp/kea-dhcp4-ctrl.sock"
    },
    "lease-database": {
        "type": "mysql",
        "name": "name",
        "user": "user",
        "password": "pass",
        "host": "sample.com",
        "port": 3306
    },
    "config-control": {
        "config-databases": [
            {
                "type": "mysql",
                "name": "name",
                "user": "user",
                "password": "pass",
                "host": "sample.com",
                "port": 3306
            }
        ],
        "config-fetch-wait-time": 20
    },
    "hosts-database": {
        "type": "mysql",
        "name": "name",
        "user": "user",
        "password": "pass",
        "host": "sample.com",
        "port": 3306
    },
    "expired-leases-processing": {
        "reclaim-timer-wait-time": 10,
        "flush-reclaimed-timer-wait-time": 25,
        "hold-reclaimed-time": 3600,
        "max-reclaim-leases": 100,
        "max-reclaim-time": 250,
        "unwarned-reclaim-cycles": 5
    },
    "hooks-libraries": [
        {
                "library": "/opt/kea/lib/kea/hooks/libdhcp_lease_cmds.so"
        },
        {
                "library": "/opt/kea/lib/kea/hooks/libdhcp_mysql_cb.so"
        }
    ],
    "loggers": [
    {
        "name": "kea-dhcp4",
        "output_options": [
            {
                "output": "/opt/kea/var/log/kea-dhcp4.log",
                "flush": true,
                "maxsize": 1048576
            }
        ],
        "severity": "DEBUG",
        "debuglevel": 99
    }
  ]
}
_______________________________________________
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to