[Kea-users] DHCPv6: Host reservation by interface-id (18)

2021-07-06 Thread perl-list
In the DHCPv6 server, is it possible to reserve an IP address by interface-id(18)? I tried what I thought might work: { "Dhcp6": { "reservations": [ { "interface-id": "Gi0/0/1.240", "ip-addresses": [ "2001:0:2:8::abcd" ] } ] } } It produce

[Kea-users] DHCPv6: Option 18 and lease storage

2021-07-06 Thread perl-list
In Kea DHCPv6, I noticed that option 18 "interface-id" is not stored in the lease6 table in mysql. There isn't a column for it. Is it possible to include option 18 in the "logging" options if it isn't to be stored with the leases? With debug on I can see it is received: relay[0]: msg-type=12

Re: [Kea-users] DHCPv6: Host reservation by interface-id (18)

2021-07-06 Thread perl-list
"client-class": "iid1" }, { "pool": "2001:0:2:e::667-2001:0:2:e:7fff:::fffe" } ], SNIP - Original Messag

Re: [Kea-users] Unable to re-allocate address

2021-07-08 Thread perl-list
What I don't understand is why you didn't just use a straight UTC timestamp in an int or bigint field. You can add said timestamp right in your sql query as unix_timestamp(now()) which will produce an EPOCH time in the column. If you need to see it as an actual date/time for some reason, you w

Re: [Kea-users] How to use ifelse in the client-class definition

2021-07-21 Thread perl-list
Perhaps you could set the desired options within the class instead of in the subnet specification? You could have a class for PXEClient and a class for everyone else? I'm not sure the below is correct but maybe on the right track? "Dhcp4": { "client-classes": [ { "name

Re: [Kea-users] Prevent lease storage for some subnets

2021-07-21 Thread perl-list
I assume what OP is talking about is the same behavior from ISC DHCP where "fixed-address" did not store a lease so any device that matched the conditions could get the IP. - Original Message - > From: "Anders Rosendal" > To: dp-w...@dpotter.com > Cc: "kea-users" > Sent: Wednesday, Jul

Re: [Kea-users] kea-dhcp4 -t file: check the configuration file syntax and exit but fails because of interface

2021-08-27 Thread perl-list
Is it not possible to, instead, check the conf file on host2 where it will live? - Original Message - > From: "Veronique Lefebure" > To: "kea-users" > Sent: Friday, August 27, 2021 5:39:15 AM > Subject: [Kea-users] kea-dhcp4 -t file: check the configuration file syntax > and exit but fa

Re: [Kea-users] kea-dhcp4 -t file: check the configuration file syntax and exit but fails because of interface

2021-08-27 Thread perl-list
f the configuration file (such as the interface section). - Original Message - > From: "Veronique Lefebure" > To: "perl-list" , "kea-users" > > Sent: Friday, August 27, 2021 9:29:40 AM > Subject: Re: [Kea-users] kea-dhcp4 -t file: check the configur

Re: [Kea-users] Pool valid-lifetimer

2021-08-27 Thread perl-list
Yes. You can do it just like this in the subnet section (this is for DHCPv6 but i imagine v4 is similar): "subnet6": [ { "valid-lifetime": 600, "preferred-lifetime": 540, "subnet": "2001:0

Re: [Kea-users] Leases storage format

2021-09-15 Thread perl-list
I believe: select hex(hwaddr) from lease4; will get you an ASCII mac address. Someone correct me if I'm wrong. - Original Message - > From: "egor grijuc" > To: "Klaus Steden" , ad...@mailsrv.globnet.md > Cc: "kea-users" > Sent: Wednesday, September 15, 2021 3:02:00 AM > Subject: Re: [

Re: [Kea-users] ISC-KEA with MariaDB on Debian Buster Startup Sequence

2021-09-22 Thread perl-list
I don't know for sure as I have so far managed to largely avoid "systemd" but do have some small experience with it. radiusd.service on one of my servers has this: After=syslog.target network-online.target ipa.service dirsrv.target krb5kdc.service mysql.service mariadb.service postgresql.servic

Re: [Kea-users] ISC-KEA with MariaDB on Debian Buster Startup Sequence

2021-09-22 Thread perl-list
e mysql.service and mariadb.service service entries only. > Regards, > PeterP >> On 22 Sep 2021, at 14:26, perl-list wrote: >> I don't know for sure as I have so far managed to largely avoid "systemd" >> but do >> have some small experience with

Re: [Kea-users] ISC-KEA with MariaDB on Debian Buster Startup Sequence

2021-09-22 Thread perl-list
cp4 -c /etc/kea/kea-dhcp4.conf > ExecReload=/bin/kill -HUP $MAINPID > [Install] > WantedBy=multi-user.target > Thank you, > PeterP. >> On 22 Sep 2021, at 14:35, perl-list wrote: >> find /etc/ | grep isc-kea-dhcp4-server.service >> its in there somewhere I as

Re: [Kea-users] DHCH NAK through relay

2021-09-30 Thread perl-list
I don't know if that is possible, but it sounds like a hack to me if it is. I would suggest looking into your relay agent. Some of them allow the "hiding" of the real server such that the end client never sees what IP the actual server has (ie: relay agent swaps out dhcp-server-identifier valu

Re: [Kea-users] Vendor specific options (Option 43 + 60)

2021-11-16 Thread perl-list
> "test": "substring(option[60].hex,0,6) == 'ArubaAP'", Assuming your configuration is correct, it could be that the substring is wrong being the only problem. ArubaAP is 7 characters and your substring is 0,6 as in start at position 0 and include the next 6 characters would only get ArubaA

Re: [Kea-users] Vendor specific options (Option 43 + 60)

2021-11-16 Thread perl-list
You mentioned it is being added to these classes from the log file: ALL, VENDOR_CL_ArubaInstantAP, UNKNOWN ALL can be ignored. UNKNOWN is a special class that can also be ignored. It is also being added to some autogenerated class of VENDOR_CL_ArubaInstantAP it seems. Perhaps you can make u

Re: [Kea-users] valid-lifetime is short than preferred lifetime

2022-01-18 Thread perl-list
Veronique, Preferred lifetime needs to be somewhat lower than valid lifetime: "valid-lifetime": 86400, "preferred-lifetime": 79200, I would not set (at least while you are trying to resolve this): >> "min-valid-lifetime": 86400, >> "max-valid-lifetime": 86400, >> "renew-timer": 32400, >> "rebin

Re: [Kea-users] Globally cut circuit id option

2022-01-26 Thread perl-list
You can use substring to do that. Here is an example of it in use: match if substring (option dhcp-client-identifier, 1, 3) = "RAS"; see also `man dhcp-eval` substring (data-expr, offset, length) The substring operator evaluates the data expression and returns the substring of the re

Re: [Kea-users] Globally cut circuit id option

2022-01-26 Thread perl-list
disregard my previous message - wrong email list - was answering Kea list with the original DHCP configurations :) - Original Message - > From: "perl-list" > To: "kea-users" > Sent: Wednesday, January 26, 2022 8:22:25 AM > Subject: Re: [Kea-users] Globa

Re: [Kea-users] recover from split brain?

2022-02-09 Thread perl-list
I think he was asking what happens if the servers can't see each other and both start answering clients, possibly creating IP conflicts that must be resolved at some point. Imagine a split fiber ring where the servers can't see each other and the clients on each half of the ring can't see each

Re: [Kea-users] Adding static /32 routes with Kea run_script hook

2022-04-25 Thread perl-list
You may want to look into the high availability hook https://kea.readthedocs.io/en/latest/arm/hooks.html?highlight=high%20availability#ha-high-availability as it can be configured to send lease state changes to some arbitrary listener such that you could make a software program that listens to t

Re: [Kea-users] Kea with sysrepo error

2022-05-06 Thread perl-list
Could it also be that his header files for sysrepo are located in /usr/local/include/ and the configure script needs to be told to look there? - Original Message - > From: "Andrei Pavel" > To: "kea-users" > Sent: Friday, May 6, 2022 9:36:31 AM > Subject: Re: [Kea-users] Kea with sysrepo

Re: [Kea-users] One PD pool for multiple subnets

2022-06-08 Thread perl-list
as far as I understand, that isn't possible. It probably should be given the way prefix delegation works, but that wasn't how they chose to design it (at least the way I understand it). Each prefix must be part of a particular subnet which can all be grouped together under a single shared netw

Re: [Kea-users] KEA upgrade 2.0.2 Empty DUIDs are not allowed

2022-06-17 Thread perl-list
" DHCP4_PACKET_PROCESS_STD_EXCEPTION exception occurred during packet processing: Empty DUIDs are not allowed " DHCPv4? Why would there be a DUID in DHCPv4? I would do a packet capture of the client traffic and see if there is indeed a DUID field in it somewhere and if it is indeed empty... t

Re: [Kea-users] ALLOC_ENGINE_V6_ALLOC_NO_LEASES_HR and ALLOC_ENGINE_V6_ALLOC_UNRESERVED

2022-06-22 Thread perl-list
memfile is supported "lease-database": { "type": "memfile", "persist": true, "name": "/var/state/kea/dhcp6.leases" }, Kea should periodically launch kea-lfc to cleanup the lease file in the case of memfile. I'm not sure about other lease storage metho

Re: [Kea-users] Kea and on-commit

2022-10-18 Thread perl-list
You can also send lease data somewhere using the high availability hook in the passive-backup configuration: https://kea.readthedocs.io/en/latest/arm/hooks.html#passive-backup-configuration You could create a listener that captures the data and does something with it (assumedly, whatever /usr/l

Re: [Kea-users] dhcp6 address assignment

2022-10-18 Thread perl-list
>1. I used to assign same ipv6 address for the same machine which was dial > boot >linux/windows. It was possible by assigning same ipv6 address to both DUIDs >before. But in kea this is not allowed. I found out there is a possibility > to >assign ipv6 address by MAC address whi

Re: [Kea-users] dhcp6 address assignment

2022-10-19 Thread perl-list
- Original Message - > From: "Marek Greško via Kea-users" > To: "Dan Oachs" > Cc: "kea-users" > Sent: Wednesday, October 19, 2022 12:59:56 PM > Subject: Re: [Kea-users] dhcp6 address assignment > Hello, > I run into another problems with this. To simplify the migration I use global >

Re: [Kea-users] Config line breaking / multiple vendor class identifiers

2022-10-31 Thread perl-list
This may be beyond the scope of what you were asking, but you can store some or all of the config in MySQL/MariaDB: https://kb.isc.org/docs/using-the-kea-configuration-backend which may make this particular aspect easier to manage. - Original Message - > From: "Andrew Peterson via Kea

Re: [Kea-users] Problems setting up HA

2022-11-09 Thread perl-list
Are you running the control agent? Mine shown below is for dhcp6, but i'm sure the config is similar. $ /usr/sbin/kea-ctrl-agent -c /etc/kea-ctrl-agent.conf $ cat /etc/kea-ctrl-agent.conf { "Control-agent": { "http-host": "10.0.0.1", "http-port": 8000, "control-socke

Re: [Kea-users] Problems setting up HA

2022-11-09 Thread perl-list
t;>> Does the "control-socket" definition in your kea-dhcp4 configuration >>> match >>> the "control-socket" definition in the /etc/kea-ctrl-agent.conf file? >>> /Peter >>> On 09/11/2022 11.22, perl-list wrote: >>>> Are

Re: [Kea-users] Problems setting up HA

2022-11-09 Thread perl-list
> On Wed, Nov 9, 2022 at 12:38 PM perl-list < [ mailto:perl-l...@network1.net | > perl-l...@network1.net ] > wrote: >> The other one is still receiving the packets, it just isn't doing anything >> with >> them unless it becomes the active device (assuming y

Re: [Kea-users] yet another question about multiple subnets %)

2022-11-11 Thread perl-list
> i don't speak english very well, but doesn't it say here that it's possible? > > RFC 8415 DHCP for IPv6 November 2018 > 6.6. Multiple Addresses and Prefixes > DHCP allows a client to receive multiple addresses. During typical > operation, a client sends one instance of an IA_NA

Re: [Kea-users] yet another question about multiple subnets %)

2022-11-15 Thread perl-list
> but i want several addresses AT THE SAME TIME. this is stated in rfc8415. and > here is what is said about rfc8415 in the kea documentation: > > The server will allocate, renew, or rebind a maximum of one lease for a > particular IA option (IA_NA or IA_PD) sent by a client. RFC 8415 al

Re: [Kea-users] How to best update the KEA configuration on a HA hot-standby KEA setup

2022-11-16 Thread perl-list
The hot-standby will only start after some criteria are met. Some of the parameters are tunable. See: https://kea.readthedocs.io/en/kea-1.8.1/arm/hooks.html#load-balancing-configuration Not sure if you can tune it to start responding within a 30 to 35 second window. We just modify the confi

Re: [Kea-users] yet another question about multiple subnets %)

2022-11-17 Thread perl-list
> where do you see even a word about this in the documentation? in any > documentation, not only for kea, the "shared network" is referred to as a > pooled pool of addresses from which the dhcp server will take an address to > assign to the client. could you quote exactly the place where it says