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

Craig Dunn sendai789 at googlemail.com
Sat Apr 3 00:41:25 UTC 2021


Hi Joshua,

Yes I figured it out just before seeing you're message, I took the conf
file from the documentation which, didn't have the routers option included
so I added manually.

Should have realised it would need brackets around each one.

Thanks for getting back to me though

On Sat, 3 Apr 2021, 00:30 Joshua Schaeffer, <jschaeffer at harmonywave.com>
wrote:

> 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",
>             "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",
>             "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 listKea-users at lists.isc.orghttps://lists.isc.org/mailman/listinfo/kea-users
>
>
> --
> Thanks,
> Joshua Schaeffer
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20210403/e40177af/attachment.htm>


More information about the Kea-users mailing list