I've got this in my config file for the DHCPv4 server (using Kea 2.4.0:

  "Dhcp4": {
    "authoritative": true,
    "valid-lifetime": 86400,
    "reservations-global": false,
    "reservations-in-subnet": true,
    "reservations-out-of-pool": true,
    "ip-reservations-unique": false,
...
    "subnet4": [
      {
        "id": 88,
        "subnet": "192.168.88.0/24",
        "pools": [
          {
          "pool": "192.168.88.64/26"
          },
          {
          "pool": "192.168.88.128/26"
          }
        ],
        "reservations": [
          {
            "hw-address": "90:2e:16:d6:a4:1e",
            "ip-address": "192.168.88.192",
            "hostname":  "balrog22",
            "user-context": {
              "name": "balrog22"
            }
          },
          {
            "hw-address": "a8:64:f1:30:88:0b",
            "ip-address": "192.168.88.192",
            "hostname":  "balrog22",
            "user-context": {
              "name": "balrog22"
            }
          },
...

In theory this should result in my laptop getting the same IPv4 address whether 
it is connected to the wired or wireless networks (which are the same 
VLAN/subnet).

However, I see this in the log:

Oct 22 08:29:55 core23-a kea-dhcp4[1650]: WARN  
ALLOC_ENGINE_V4_DISCOVER_ADDRESS_CONFLICT [hwtype=1 90:2e:16:d6:a4:1e], 
cid=[00:81:74:fa:e6:94:98:99:8d:79:c0:a3:9c:87:27:72], tid=0x262eb546: 
conflicting reservation for address 192.168.88.192 with existing lease Address: 
      192.168.88.192
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: Valid life:    86400
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: Cltt:          1697977751
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: Hardware addr: a8:64:f1:30:88:0b
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: Client id:     01:a8:64:f1:30:88:0b
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: Subnet ID:     88
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: Pool ID:       0
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: State:         default
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: Relay ID:      (none)
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: Remote ID:     (none)
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: INFO  DHCP4_LEASE_ADVERT [hwtype=1 
90:2e:16:d6:a4:1e], cid=[00:81:74:fa:e6:94:98:99:8d:79:c0:a3:9c:87:27:72], 
tid=0x262eb546: lease 192.168.88.64 will be advertised
Oct 22 08:29:55 core23-a kea-dhcp4[1650]: INFO  DHCP4_LEASE_ALLOC [hwtype=1 
90:2e:16:d6:a4:1e], cid=[00:81:74:fa:e6:94:98:99:8d:79:c0:a3:9c:87:27:72], 
tid=0x262eb546: lease 192.168.88.64 has been allocated for 86400 seconds

I'm running in the default multithreaded mode, so 'reservations-lookup-first' 
should be enabled (its default).

I must be missing something, as I believe I'm doing exactly what the ARM says I 
should do to have multiple reservations for the same IP address, but it's not 
working.
-- 
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@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to