[Kea-users] KEA DHCP 1.8.2 will only allocate IP addresses to devices with random MAC addresses

kpiq at jj10.net kpiq at jj10.net
Sat Jul 10 23:06:00 UTC 2021


Folks

I am a new user and deviced a High Availability DHCP4 server
configuration.    My network uses VLANs (with their corresponding IP
subnets) and my switches are set with DHCP relay pointing to my two KEA
DHCP servers.

The IP subnet/VLAN setup is as follows:

   - VLAN 1 - 10.0.0.0/24
   - VLAN 10 - 10.10.0.0/24
   - VLAN 11 - 10.11.0.0/24
   - 12 - all others follows same pattern, using the VLAN ID as the 2nd
   node of the IP address
   - 13
   - 14
   - 15

The Layer 2/3 switch, with IP routing enabled, is: 10.0.0.5.   It
is set with DHCP relay to 10.10.0.13 and 10.10.0.15, the DHCP servers
running KEA DHCP.

The DHCP servers only have one IP address enabled, on VLAN 10.   The
switch ports for the DHCP servers are set as untagged VLAN 1, tagged
VLANs 10,11,12,13,14,15.

Users  (with permanent MAC addresses) from VLANs 1, 10, and 12 have
been tested and can initially allocate IP addresses using DHCP.  When
those devices are powered off and later turned on they fail to obtain
an IP addressd from the DHCP servers.   Only when I change the device
setup to use random MAC addresses will they be able to renew their IP
assignments.   

Here's my kea-dhcp4.conf on DHCP server1.   The same file is used on
DHCP server2, replacing ""this-server-name": "server1"," for ""this-
server-name": "server2",".   Both server1 and server2 are successfully
passing name resolution on both servers.    The kea log on both servers
are also showing their corresponding sync activity is successful.

{

"Dhcp4": 

{
"hooks-libraries": 
[
{
"library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_stat_cmds.so"
},
{
"library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so",
"parameters": { }
}, 
{
"library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",
"parameters": 
{
"high-availability": 
[
{
"this-server-name": "server1",
"mode": "load-balancing",
"heartbeat-delay": 15000,
"max-response-delay": 20000,
"max-ack-delay": 10000,
"max-unacked-clients": 5,
"peers": 
[
{
"name": "server1",
"url": "http://10.10.0.13:8000/",
"role": "primary",
"auto-failover": true
}, 
{
"name": "server2",
"url": "http://10.10.0.15:8000/",
"role": "secondary",
"auto-failover": true
}
] 
}
]
}
}
],

"interfaces-config": {
"interfaces": ["enp1s0.10"],
"dhcp-socket-type": "udp"

},

"control-socket": 
{
"socket-type": "unix",
"socket-name": "/run/kea/kea-dhcp4-ctrl.sock"
},

"lease-database": 
{
"type": "memfile",
"lfc-interval": 3600
},

"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": 900,
# "rebind-timer": 1800,
"valid-lifetime": 86400,

"option-data": 
[
{
"name": "domain-name-servers",
"data": "10.0.0.1,10.10.0.15",
"always-send": true
},
{
"name": "domain-name",
"data": "lan",
"always-send": true
},
{
"name": "domain-search",
"data": "lan",
"always-send": true
},
{
"name": "ntp-servers",
"data": "45.79.111.167,50.205.244.24,132.163.97.6",
"always-send": true
}
],

"subnet4": [
{
"subnet": "10.0.0.0/24",
"id": 0,
"pools": [ { "pool": "10.0.0.110 - 10.0.0.199" } ],
"option-data": 
[
{
"name": "subnet-mask",
"data": "255.255.255.0",
"always-send": true
},
{
"name": "domain-search",
"data": "lan",
"always-send": true
},
{
"name": "routers",
"data": "10.0.0.1",
"always-send": true
}
],
"relay": 
{
"ip-address": "10.0.0.5"
}
},
{
"subnet": "10.10.0.0/24",
"id": 10,
"pools": [ { "pool": "10.10.0.110 - 10.10.0.199" } ],
"option-data": 
[
{
"name": "subnet-mask",
"data": "255.255.255.0",
"always-send": true
},
{
"name": "domain-search",
"data": "lan",
"always-send": true
},
{
"name": "routers",
"data": "10.10.0.5",
"always-send": true
}
]
### DHCP CLIENTS IN THE SAME NETWORK AS THE SERVER DON'T NEED RELAY ###
},
{
"subnet": "10.11.0.0/24",
"id": 11,
"pools": [ { "pool": "10.11.0.110 - 10.11.0.199" } ],
"option-data": 
[
{
"name": "subnet-mask",
"data": "255.255.255.0",
"always-send": true
},
{
"name": "domain-search",
"data": "lan",
"always-send": true
},
{
"name": "routers",
"data": "10.11.0.5",
"always-send": true
}
],
"relay": 
{
"ip-address": "10.11.0.5"
}
},
{
"subnet": "10.12.0.0/24",
"id": 12,
"pools": [ { "pool": "10.12.0.110 - 10.12.0.199" } ],
"option-data": 
[
{
"name": "subnet-mask",
"data": "255.255.255.0",
"always-send": true
},
{
"name": "domain-search",
"data": "lan",
"always-send": true
},
{
"name": "routers",
"data": "10.12.0.5",
"always-send": true
}
],
"relay": 
{
"ip-address": "10.12.0.5"
}
},
{
"subnet": "10.13.0.0/24",
"id": 13,
"pools": [ { "pool": "10.13.0.110 - 10.13.0.199" } ],
"option-data": 
[
{
"name": "subnet-mask",
"data": "255.255.255.0",
"always-send": true
},
{
"name": "domain-search",
"data": "lan",
"always-send": true
},
{
"name": "routers",
"data": "10.13.0.5",
"always-send": true
}
],
"relay": 
{
"ip-address": "10.13.0.5"
}
},
{
"subnet": "10.14.0.0/24",
"id": 14,
"pools": [ { "pool": "10.14.0.110 - 10.14.0.199" } ],
"option-data": 
[
{
"name": "subnet-mask",
"data": "255.255.255.0",
"always-send": true
},
{
"name": "domain-search",
"data": "lan",
"always-send": true
},
{
"name": "routers",
"data": "10.14.0.5",
"always-send": true
}
],
"relay": 
{
"ip-address": "10.14.0.5"
}
},
{
"subnet": "10.15.0.0/24",
"id": 15,
"pools": [ { "pool": "10.15.0.110 - 10.15.0.199" } ],
"option-data": 
[
{
"name": "subnet-mask",
"data": "255.255.255.0",
"always-send": true
},
{
"name": "domain-search",
"data": "lan",
"always-send": true
},
{
"name": "routers",
"data": "10.15.0.5",
"always-send": true
}
],
"relay": 
{
"ip-address": "10.15.0.5"
}
}

],

"loggers": [
{


"name": "kea-dhcp4",
"output_options": [
{
"output": "/var/log/kea/kea-dhcp4.log"
}
],
"severity": "INFO", 
"debuglevel": 40
}
]
}
}

Is this normal?   Am I missing something from my KEA DHCP4
configuration?

Regards

Pedro Serrano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20210710/5c5a3279/attachment.htm>


More information about the Kea-users mailing list