[Kea-users] Configured but gateway is not being delivered by dhcp
Craig Dunn
sendai789 at googlemail.com
Fri Apr 2 18:14:17 UTC 2021
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20210402/bead5185/attachment.htm>
More information about the Kea-users
mailing list