I changed to duid and it works. Seems to be my infrastructure that doesn't forward MAC ADDRESS in BOOT REQUEST through relays from clients to the server.
Sorry for the noise. Thanks anyway. Jeronimo Em seg., 31 de mai. de 2021 às 11:36, Jeronimo <[email protected]> escreveu: > Please, help me! > > Jerônimo > > Em sáb., 29 de mai. de 2021 às 12:36, Jeronimo <[email protected]> > escreveu: > >> Hi, >> >> I am trying to configure host reservations in shared-networks on Kea >> DHCP6 v1.8.2 >> >> My subnet6 definition: >> >> "subnet6": [ >> { >> "calculate-tee-times": true, >> "id": 2, >> "option-data": [], >> "pd-pools": [], >> "pools": [ >> { >> "option-data": [], >> "pool": "2804:1f20:706:802::2-2804:1f20:706:802::ffff" >> } >> ], >> "preferred-lifetime": 300, >> "rebind-timer": 200, >> "relay": { >> "ip-addresses": [] >> }, >> "renew-timer": 100, >> "reservation-mode": "all", >> "reservations": [ >> { >> "client-classes": [], >> "hostname": "", >> "hw-address": "00:50:01:00:01:00", >> "ip-addresses": [ >> "2804:1f20:706:802::3" >> ], >> "option-data": [], >> "prefixes": [] >> }, >> { >> "client-classes": [], >> "hostname": "", >> "hw-address": "00:50:01:00:06:00", >> "ip-addresses": [ >> "2804:1f20:706:802::cafe:3" >> ], >> "option-data": [], >> "prefixes": [] >> }, >> { >> "client-classes": [], >> "hostname": "", >> "hw-address": "00:50:01:00:08:00", >> "ip-addresses": [ >> "2804:1f20:706:802::beef" >> ], >> "option-data": [], >> "prefixes": [] >> } >> ], >> "store-extended-info": false, >> "subnet": "2804:1f20:706:802::/64", >> "t1-percent": 0.5, >> "t2-percent": 0.8, >> "valid-lifetime": 400 >> } >> ], >> >> On logs I see clients renewing leases but the server does not offer the >> reserved address: >> >> kea-dhcp6.log: >> 2021-05-29 12:33:09.356 DEBUG [kea-dhcp6.dhcp6/8833.139819606342720] >> DHCP6_CLASS_ASSIGNED >> duid=[00:04:2c:9b:60:f9:26:02:2e:6e:94:f0:4e:7f:2e:a7:ea:ff], tid=0x8be47e: >> client packet has been assigned to the following class(es): UNKNOWN >> 2021-05-29 12:33:09.358 INFO [kea-dhcp6.leases/8833.139819606342720] >> DHCP6_LEASE_ADVERT >> duid=[00:04:2c:9b:60:f9:26:02:2e:6e:94:f0:4e:7f:2e:a7:ea:ff], tid=0x8be47e: >> lease for address 2804:1f20:706:802::4 and iaid=3042863103 will be advertised >> 2021-05-29 12:33:09.358 DEBUG [kea-dhcp6.dhcp6/8833.139819606342720] >> DHCP6_CLASS_ASSIGNED >> duid=[00:04:2c:9b:60:f9:26:02:2e:6e:94:f0:4e:7f:2e:a7:ea:ff], tid=0x8be47e: >> client packet has been assigned to the following class(es): ALL, UNKNOWN >> 2021-05-29 12:33:10.423 DEBUG [kea-dhcp6.dhcp6/8833.139819606342720] >> DHCP6_CLASS_ASSIGNED >> duid=[00:04:2c:9b:60:f9:26:02:2e:6e:94:f0:4e:7f:2e:a7:ea:ff], tid=0x4a70f2: >> client packet has been assigned to the following class(es): UNKNOWN >> 2021-05-29 12:33:10.427 INFO [kea-dhcp6.leases/8833.139819606342720] >> DHCP6_LEASE_ALLOC >> duid=[00:04:2c:9b:60:f9:26:02:2e:6e:94:f0:4e:7f:2e:a7:ea:ff], tid=0x4a70f2: >> lease for address 2804:1f20:706:802::4 and iaid=3042863103 has been >> allocated for 400 seconds >> 2021-05-29 12:33:10.428 DEBUG [kea-dhcp6.dhcp6/8833.139819606342720] >> DHCP6_CLASS_ASSIGNED >> duid=[00:04:2c:9b:60:f9:26:02:2e:6e:94:f0:4e:7f:2e:a7:ea:ff], tid=0x4a70f2: >> client packet has been assigned to the following class(es): ALL, UNKNOWN >> >> Complete kea-dhcp6.conf is: >> { >> "Dhcp6": { >> "calculate-tee-times": true, >> "control-socket": { >> "socket-name": "/tmp/kea6-ctrl-socket", >> "socket-type": "unix" >> }, >> "ddns-generated-prefix": "myhost", >> "ddns-override-client-update": false, >> "ddns-override-no-update": false, >> "ddns-qualifying-suffix": "", >> "ddns-replace-client-name": "never", >> "ddns-send-updates": true, >> "decline-probation-period": 86400, >> "dhcp-ddns": { >> "enable-updates": false, >> "max-queue-size": 1024, >> "ncr-format": "JSON", >> "ncr-protocol": "UDP", >> "sender-ip": "0.0.0.0", >> "sender-port": 0, >> "server-ip": "127.0.0.1", >> "server-port": 53001 >> }, >> "dhcp-queue-control": { >> "capacity": 64, >> "enable-queue": false, >> "queue-type": "kea-ring6" >> }, >> "dhcp4o6-port": 0, >> "expired-leases-processing": { >> "flush-reclaimed-timer-wait-time": 25, >> "hold-reclaimed-time": 3600, >> "max-reclaim-leases": 100, >> "max-reclaim-time": 250, >> "reclaim-timer-wait-time": 10, >> "unwarned-reclaim-cycles": 5 >> }, >> "hooks-libraries": [ >> { >> "library": "/usr/local/lib/kea/hooks/libdhcp_mysql_cb.so" >> }, >> { >> "library": "/usr/local/lib/kea/hooks/libdhcp_bootp.so" >> }, >> { >> "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so" >> }, >> { >> "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so" >> } >> ], >> "host-reservation-identifiers": [ >> "hw-address", >> "duid" >> ], >> "hostname-char-replacement": "", >> "hostname-char-set": "[^A-Za-z0-9.-]", >> "interfaces-config": { >> "interfaces": [ >> "eth0/2804:1f20:706:801::14" >> ], >> "re-detect": true >> }, >> "lease-database": { >> "host": "x.x.x.x", >> "name": "xxxxx", >> "password": "xxxxxx", >> "port": 3306, >> "type": "mysql", >> "user": "keadhcp" >> }, >> "loggers": [ >> { >> "debuglevel": 99, >> "name": "dhcp6", >> "output_options": [ >> { >> "output": "/usr/local/var/log/kea-dhcp6.log" >> } >> ], >> "severity": "DEBUG" >> } >> ], >> "mac-sources": [ >> "any" >> ], >> "multi-threading": { >> "enable-multi-threading": false, >> "packet-queue-size": 64, >> "thread-pool-size": 0 >> }, >> "option-data": [ >> { >> "always-send": true, >> "code": 23, >> "csv-format": true, >> "data": "xxx:xxxx:xxxx::x", >> "name": "dns-servers", >> "space": "dhcp6" >> } >> ], >> "option-def": [], >> "preferred-lifetime": 300, >> "rebind-timer": 200, >> "relay-supplied-options": [ >> "65" >> ], >> "renew-timer": 100, >> "reservation-mode": "all", >> "sanity-checks": { >> "lease-checks": "warn" >> }, >> "server-id": { >> "enterprise-id": 0, >> "htype": 0, >> "identifier": "", >> "persist": true, >> "time": 0, >> "type": "LLT" >> }, >> "server-tag": "", >> "shared-networks": [ >> { >> "calculate-tee-times": true, >> "interface": "eth0", >> "name": "dhcp-clients-dev", >> "option-data": [ >> { >> "always-send": true, >> "code": 23, >> "csv-format": true, >> "data": "xxxx:xxxx:xxxx:xxxx::xx", >> "name": "dns-servers", >> "space": "dhcp6" >> } >> ], >> "preferred-lifetime": 300, >> "rapid-commit": false, >> "rebind-timer": 200, >> "relay": { >> "ip-addresses": [] >> }, >> "renew-timer": 100, >> "store-extended-info": false, >> "subnet6": [ >> { >> "calculate-tee-times": true, >> "id": 2, >> "option-data": [], >> "pd-pools": [], >> "pools": [ >> { >> "option-data": [], >> "pool": "2804:1f20:706:802::2-2804:1f20:706:802::ffff" >> } >> ], >> "preferred-lifetime": 300, >> "rebind-timer": 200, >> "relay": { >> "ip-addresses": [] >> }, >> "renew-timer": 100, >> "reservation-mode": "all", >> "reservations": [ >> { >> "client-classes": [], >> "hostname": "", >> "hw-address": "00:50:01:00:01:00", >> "ip-addresses": [ >> "2804:1f20:706:802::3" >> ], >> "option-data": [], >> "prefixes": [] >> }, >> { >> "client-classes": [], >> "hostname": "", >> "hw-address": "00:50:01:00:06:00", >> "ip-addresses": [ >> "2804:1f20:706:802::cafe:3" >> ], >> "option-data": [], >> "prefixes": [] >> }, >> { >> "client-classes": [], >> "hostname": "", >> "hw-address": "00:50:01:00:08:00", >> "ip-addresses": [ >> "2804:1f20:706:802::beef" >> ], >> "option-data": [], >> "prefixes": [] >> } >> ], >> "store-extended-info": false, >> "subnet": "2804:1f20:706:802::/64", >> "t1-percent": 0.5, >> "t2-percent": 0.8, >> "valid-lifetime": 400 >> } >> ], >> "t1-percent": 0.5, >> "t2-percent": 0.8, >> "valid-lifetime": 400 >> } >> ], >> "statistic-default-sample-age": 0, >> "statistic-default-sample-count": 20, >> "store-extended-info": false, >> "subnet6": [ >> { >> "calculate-tee-times": true, >> "id": 999, >> "interface": "eth0", >> "option-data": [ >> { >> "always-send": true, >> "code": 23, >> "csv-format": true, >> "data": "2804:1f20:0:1000::52", >> "name": "dns-servers", >> "space": "dhcp6" >> } >> ], >> "pd-pools": [], >> "pools": [ >> { >> "option-data": [], >> "pool": "2804:1f20:706:801::5-2804:1f20:706:801::10" >> } >> ], >> "preferred-lifetime": 300, >> "rapid-commit": false, >> "rebind-timer": 200, >> "relay": { >> "ip-addresses": [] >> }, >> "renew-timer": 100, >> "reservations": [], >> "store-extended-info": false, >> "subnet": "2804:1f20:706:801::/64", >> "t1-percent": 0.5, >> "t2-percent": 0.8, >> "valid-lifetime": 400 >> } >> ], >> "t1-percent": 0.5, >> "t2-percent": 0.8, >> "valid-lifetime": 400 >> } >> } >> >> I don't have ideia why it is not working. Any help? >> >> Regards, >> >> Jeronimo >> >> >> >> >> >>
_______________________________________________ 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 [email protected] https://lists.isc.org/mailman/listinfo/kea-users
