[Kea-users] Configured but gateway is not being delivered by dhcp

Joshua Schaeffer jschaeffer at harmonywave.com
Fri Apr 2 23:29:33 UTC 2021


Looks like a syntax error:
*
**YOU HAVE:*
"option-data":[
    {
        "name": "routers",
        "data": "192.168.0.1",

        "name": "domain-name-servers",
        "data": "208.67.222.222, 208.67.220.220"
}]

*SHOULD BE:*
"option-data":[
    {
        "name": "routers",
        "data": "192.168.0.1"
    },
    {
        "name": "domain-name-servers",
        "data": "208.67.222.222, 208.67.220.220"
    }
]

On 4/2/21 12:14 PM, Craig Dunn wrote:
> Hi all,
>
> After a few days (and a rogue missing comma) I got the kea service to start.
>
> Something weird though my phone got a new DHCP lease from kea and browsing seemed really flaky, turns out even thought I had an IP and DNS I didn't get the gateway IP. I thinks it's set correctly my conf file is:
>
> GNU nano 3.2                     kea-dhcp4.conf                               
> {
> # DHCPv4 configuration starts on the next line
> "Dhcp4": {                                                                      
> # First we set up global values
>     "valid-lifetime": 4000,
>     "renew-timer": 1000,
>     "rebind-timer": 2000,
>
> # Next we set up the interfaces to be used by the server.                           "interfaces-config": {
>         "interfaces": [ "eth0" ]
>     },
>
> # And we specify the type of lease database
>     "lease-database": {
>         "type": "memfile",
>         "persist": true,
>         "name": "/var/lib/kea/dhcp4.leases"
>     },
>
> # Finally, we list the subnets from which we will be leasing addresses.
>     "subnet4": [
>         {
>             "subnet": "192.168.0.0/24 <http://192.168.0.0/24>",
>             "pools": [
>                 {
>                      "pool": "192.168.0.50 - 192.168.0.149"
>                 }],
>
>             "option-data":[
>                 {
>
>
> pi at DHCP1:/etc/kea $ cat kea-dhcp4.conf
> {
> # DHCPv4 configuration starts on the next line
> "Dhcp4": {
>
> # First we set up global values
>     "valid-lifetime": 4000,
>     "renew-timer": 1000,
>     "rebind-timer": 2000,
>
> # Next we set up the interfaces to be used by the server.
>     "interfaces-config": {
>         "interfaces": [ "eth0" ]
>     },
>
> # And we specify the type of lease database
>     "lease-database": {
>         "type": "memfile",
>         "persist": true,
>         "name": "/var/lib/kea/dhcp4.leases"
>     },
>
> # Finally, we list the subnets from which we will be leasing addresses.
>     "subnet4": [
>         {
>             "subnet": "192.168.0.0/24 <http://192.168.0.0/24>",
>             "pools": [
>                 {
>                      "pool": "192.168.0.50 - 192.168.0.149"
>                 }],
>
>             "option-data":[
>                 {
>                      "name": "routers",
>                      "data": "192.168.0.1",
>
>                      "name": "domain-name-servers",
>                      "data": "208.67.222.222, 208.67.220.220"
>                 }]
>
>             }
>         ]
>     }
> }
> # DHCPv4 configuration ends with the next line
>
> Is there anything I'm missing? I have checked multiple conf files online and it seems fine.
>
> _______________________________________________
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users

-- 
Thanks,
Joshua Schaeffer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20210402/bab23692/attachment-0001.htm>


More information about the Kea-users mailing list