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@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 list [hidden email] https://lists.isc.org/mailman/listinfo/kea-users |
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:
-- 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 [hidden email] https://lists.isc.org/mailman/listinfo/kea-users |
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, <[hidden email]> wrote:
_______________________________________________ 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 [hidden email] https://lists.isc.org/mailman/listinfo/kea-users |
Spoke too soon, I have the gateway and the lease looks good, but it's saying there's no internet plus I can't SSH to anything on the network, everything looks ok so not sure what's going on Thanks On Sat, 3 Apr 2021, 01:41 Craig Dunn, <[hidden email]> wrote:
_______________________________________________ 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 [hidden email] https://lists.isc.org/mailman/listinfo/kea-users |
On 4/2/21 6:59 PM, Craig Dunn wrote:
To be clear: your client gets a DHCP address, adds the router to the route table, but you still don't have general internet access on the client? What does the route table look like (ip route show)? Try the following: 1) Can you ping the client's DHCP address from the client? 2) Can you ping another address in the same subnet (like the gateway) from the client? 3) Can you ping an address beyond the gateway (try 8.8.8.8) from the client? 4) Can you ping www.google.com from the client (sounds like you can't)? If can successfully perform steps 1 - 3, but not 4 then you have a DNS problem. What OS version is the client running? -- 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 [hidden email] https://lists.isc.org/mailman/listinfo/kea-users |
In reply to this post by Craig Dunn
THe Kea parsers were changed to raise syntax errors on duplicated entries.
I do not remember the exact version and I can't find it in the ChangeLog. Note it applies only to parsing using flex/bison i.e. if you submit JSON by another way you still can get unexpected (e.g. no error, usually only the last entry value is taken) results. Strangely it does not seem to be illegal JSON (the spec aka ECMA 404 says nothing) but of course all JSON tools give either an error or only one value on duplicated entries of maps (Kea term) / objects (standard name). Thanks Francis Dupont <[hidden email]> _______________________________________________ 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 [hidden email] https://lists.isc.org/mailman/listinfo/kea-users |
It is down to my DNS provider I was using opendns, it connects to my WiFi no internet though. If I change it to Google's DNS it works fine, not sure what the difference is and from all the status pages it's up. On Sat, 3 Apr 2021, 08:27 Francis Dupont, <[hidden email]> wrote: THe Kea parsers were changed to raise syntax errors on duplicated entries. _______________________________________________ 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 [hidden email] https://lists.isc.org/mailman/listinfo/kea-users |
Free forum by Nabble | Edit this page |