[Kea-users] KEA and pxeboot
Stephen Berg (Code 7309)
stephen.berg at nrlssc.navy.mil
Mon Feb 28 15:27:26 UTC 2022
On 2/28/22 07:38, Stephen Berg (Code 7309) via Kea-users wrote:
> The kea server and this client are both on the same subnet.
>
> dhcp-socket-type is set to "raw".
>
I think I found the problem. I'm setting up kea to be dhcp for about 5
or 6 subnets. Eventually I'll set up relay agents on the other subnets
right now I've just got three subnets to set up and I'm testing on just
one client that is on the same subnet as kea.
If I comment out the other subnets out of the kea-dhcp4.conf file I get
a good dhcp reservation and pxeboot. I've added "id" to each subnet and
that doesn't break it. But then when I reenable the other other subnets
I'm back to failing.
So now I've got the config shown below. I've sanitized most everything
but the setup matches what I've got here. I also have the reservations
listed in an included file but I'm showing them as inline here. I
wouldn't think that would make a difference. The client called host6 is
the one I'm trying to pxeboot currently. When the first and second
subnets are enabled nothing seems to work. If I only have the
192.168.8.0/24 subnet enabled I get a good dhcp lease and pxeboot works.
--------------
// This is kea-dhcp4.conf
{
"Dhcp4": {
// Add names of your network interfaces to listen on.
"interfaces-config": {
"interfaces": [ "eth0" ],
"dhcp-socket-type": "raw"
},
"control-socket": {
"socket-type": "unix",
"socket-name": "/tmp/kea4-ctrl-socket"
},
"lease-database": {
"type": "mysql",
"name": "kea",
"user": "kea",
"password": "pw-goes-here",
"host": "localhost",
"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
},
"renew-timer": 43200,
"rebind-timer": 75600,
"valid-lifetime": 86400,
"option-data": [
{
"name": "domain-name-servers",
"data": "192.168.100.20, 192.168.100.10"
},
{
"name": "domain-name",
"data": "example.com"
},
{
"name": "domain-search",
"data": "thisorg.example.com, example.com"
},
{
"name": "default-ip-ttl",
"data": "0xf0"
}
],
"subnet4": [
{
"id": 2,
"subnet": "192.168.2.0/24",
"option-data": [ { "name": "routers", "data": "192.168.2.1"
} ],
"reservations": [
{ "ip-address": "192.168.2.25", "hostname": "host1",
"hw-address": "aa:aa:aa:bb:bb:bb" },
{ "ip-address": "192.168.2.26", "hostname": "host2",
"hw-address": "bb:bb:bb:cc:cc:cc" }
]
},
{
"id": 4,
"subnet": "192.168.4.0/24",
"option-data": [ { "name": "routers", "data": "192.168.4.1"
} ],
"reservations": [
{ "ip-address": "192.168.4.35", "hostname": "host3",
"hw-address": "aa:aa:aa:bb:bb:dd" },
{ "ip-address": "192.168.4.36", "hostname": "host4",
"hw-address": "bb:bb:bb:cc:cc:ee" }
]
},
{
"id": 8,
"subnet": "192.168.8.0/24",
"option-data": [ { "name": "routers", "data": "192.168.8.1" } ],
"reservations": [
{ "ip-address": "192.168.8.45", "hostname": "host5",
"hw-address": "aa:aa:aa:bb:bb:ff" },
{ "ip-address": "192.168.8.46", "hostname": "host6",
"hw-address": "bb:bb:bb:cc:cc:11",
"next-server": "192.168.8.9", "boot-file-name": "pxelinux.0" }
]
}
],
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
{
"output": "/var/log/kea/kea-dhcp4.log"
}
],
"severity": "DEBUG",
"debuglevel": 99
}
]
}
}
--
Stephen Berg, IT Specialist, Ocean Sciences Division, Code 7309
Naval Research Laboratory
stephen.berg at nrlssc.navy.mil <- (Preferred contact)
W: (228) 688-5738
DSN: (312) 823-5738
C: (228) 365-0162
More information about the Kea-users
mailing list