Re: [Kea-users] HA with kea-dhcp4: beginner questions

2022-11-23 Thread Darren Ankney
On Wed, Nov 23, 2022 at 6:09 AM Stefan G. Weichinger wrote: > > > Greetings, I subscribed to this list 5 minutes ago because this morning > we had a event I can't yet fully explain. > > A few weeks ago I set up a kea-HA-cluster of 2 Debian-11 nodes using the > 2.3.2 packages from the isc-repos. >

Re: [Kea-users] HA with kea-dhcp4: beginner questions

2022-11-23 Thread Darren Ankney
ou said adc2 was the primary). I guess that may have been the point that your onsite administrator unplugged adc1. Is there anything that is not labeled kea-dhcp4.ha-hooks in the logfile earlier than this? On Wed, Nov 23, 2022 at 6:52 AM Stefan G. Weichinger wrote: > > Am 23.11.22 um 1

Re: [Kea-users] HA with kea-dhcp4: beginner questions

2022-11-23 Thread Darren Ankney
> Yes, about that. I copied that block from the docs, I assume: > > https://kea.readthedocs.io/en/kea-2.3.2/arm/logging.html#example-logger-configurations > > Currently I have logs until around 1am back. But only with severity "INFO" > > I increase "maxsize" to its default of 10 MB and "maxver" to

Re: [Kea-users] HA with kea-dhcp4: beginner questions

2022-11-23 Thread Darren Ankney
I just noticed your date/time pattern: %d{%j %H:%M:%S.%q} %c %m You might want to change to %D{%Y-%m-%d %H:%M:%S.%q %Z} %-5p [%c/%i.%t] %m (or at least capitalize the %D as I think the content in {} is a description of the output you want from %D). You can also add a %Z in the format message to

Re: [Kea-users] HA with kea-dhcp4: beginner questions

2022-11-24 Thread Darren Ankney
> Aside from the logs: > > no problems since yesterday. I think I won't be able to find the reason > for that outage anymore. Perhaps not, but you should have some insight into the next one (if it occurs)! -- ISC funds the development of this software with paid support subscriptions. Contact us

Re: [Kea-users] Assigning unique /64 to each CPE for IA_NA

2022-11-28 Thread Darren Ankney
The simplest answer is found in the documentation: https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp6-srv.html#subnet-and-prefix-delegation-pools though your exact implementation may require slightly different configurations (example: multiple prefix pools). Example from the documentation shown bel

Re: [Kea-users] Assigning unique /64 to each CPE for IA_NA

2022-11-29 Thread Darren Ankney
On Tue, Nov 29, 2022 at 4:28 AM Xuo Guoto via Kea-users wrote: > > Thanks for your reply, Darren. > > I went through the configuration and made a similar configuration to give it > a try. My objective was to get a IA_NA address, with each client getting a > single address, bu from different /64

Re: [Kea-users] Assigning unique /64 to each CPE for IA_NA

2022-11-29 Thread Darren Ankney
On Tue, Nov 29, 2022 at 6:29 AM Xuo Guoto via Kea-users wrote: > > Thanks for the suggestion, I have made changes as suggested. > > --- Original Message --- > On Tuesday, November 29th, 2022 at 4:19 PM, Darren Ankney > wrote: > > > "pools": [ >

Re: [Kea-users] option-def

2022-11-29 Thread Darren Ankney
On Tue, Nov 29, 2022 at 7:26 PM Alan Batie wrote: > failed to initialize Kea server: configuration error using file > '/etc/kea/kea-dhcp4.conf': /etc/kea/kea-dhcp4.conf:259.9-20: got > unexpected keyword "option-def" in subnet4 map. I think that option-def is only valid at the global level or in

Re: [Kea-users] DHCPv6 option 16 and built in client class

2022-12-01 Thread Darren Ankney
I don't presently have DHCPv6 setup in my home network, but my kea server for DHCPv4 seems to be assigning the clients to the vendor classes: 2022-12-01 19:22:40.600 DEBUG [kea-dhcp4.packets/4325.139964547753856] DHCP4_QUERY_DATA [hwtype=1 5c:a6:e6:46:d1:8c], cid=[01:5c:a6:e6:46:d1:8c], tid=0x3d90

Re: [Kea-users] Ping timeout and one lease per client

2022-12-02 Thread Darren Ankney
I don't think there is an analog to the ping test, but there is a "limits" library: https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#limits-limits-to-manage-lease-allocation-and-packet-processing It is a hook library that does require a support subscription to access, but there is a mechani

Re: [Kea-users] KEA sends valid-lifetime = 0

2022-12-02 Thread Darren Ankney
https://www.rfc-editor.org/rfc/rfc3315#section-22.6 "In a message sent by a server to a client, the client MUST use the values in the preferred and valid lifetime fields for the preferred and valid lifetimes." I believe that the server is telling the client to not use the address with the 0 lengt

Re: [Kea-users] KEA sends valid-lifetime = 0

2022-12-02 Thread Darren Ankney
ntacted veronique since the issue we > encounter is similar. > > In this case both IA_ADDR's IP's are the same, one with correct lifetime, > and one with zero lifetime, which may cause the client to glitch (which > happens in my case) > > > On Fri, Dec 2, 202

Re: [Kea-users] Example of how to combine host reservations and class tests?

2022-12-05 Thread Darren Ankney
Nathan, Something like the below would work. However, the test for being a member of office-printers or public-printers would need to be changed. I didn't know what parameter would cause that to be the case so I just used an example. Also, you shouldn't need member KNOWN in your test unless you

Re: [Kea-users] DHCPv6 option 16 and built in client class

2022-12-06 Thread Darren Ankney
client-class": "CLASS3" } ], "pd-pools": [ { "prefix": "2001:0:2::", "prefix-len"

Re: [Kea-users] Hook Development - Rust

2022-12-08 Thread Darren Ankney
If nothing else, perhaps you could make use of the run_script hook: https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#run-script-run-script-support-for-external-hook-scripts You could probably write the "script" in whatever language you want, including rust, or at least that's the way I interp

Re: [Kea-users] Hook Development - Rust

2022-12-09 Thread Darren Ankney
(I believe it is slower than a hook, and it's limited) I would prefer to > write a "native" one. > > I sure wish it would have been implemented differently, as something like > gRPC + protobuf! > > > > From: Darren Ankn

Re: [Kea-users] Hook Development - Rust

2022-12-09 Thread Darren Ankney
657/is-python-faster-and-lighter-than-c > and type safety). I assume something is wrong with how I'm linking against > Kea, but I don't know. Unfortunately, the debug log during hook loading is > not terribly helpful. I am confident it's possible, though. > > >

Re: [Kea-users] ipv6 being ignored

2022-12-09 Thread Darren Ankney
Try removing the "relay" statement as you don't need it as far as I can tell. You are supposed to only need to use that if you need to select a different subnet than what matches the IP in the "Link address" option of the relayed packet. But you have the same subnet configured as what you have l

Re: [Kea-users] subclass handling in kea-dhcp

2022-12-14 Thread Darren Ankney
“subclass” in ISC DHCP was a “speed hack” according to the manual pages. Basically, you are going to want to create a class called “denyClients” adding the macs that you want to deny to the class (https://kea.readthedocs.io/en/kea-2.2.0/arm/classify.html) possibly something like the below: “cl

Re: [Kea-users] PD-Pool hook events

2022-12-15 Thread Darren Ankney
> > When the PD-pool lease gets renewed the hook does not have the single IP > lease info which is used as nexthop for PD route. Did the client renew the single IP lease at the same time or did the client only renew the prefix perhaps renewing the single IP lease at a different time? -- I

Re: [Kea-users] Can KEA trigger webhooks?

2022-12-22 Thread Darren Ankney
I believe the short answer would be no. However, as you noted, there is the call to run an external script. You might be able to do something with that. If you are just wanting lease information out of Kea when it allocates a lease to someone, have a look at the HA hook (https://kea.readthedo

Re: [Kea-users] Kea-Lease documentation

2022-12-22 Thread Darren Ankney
In kea that is handled periodically by kea-lfc (https://kea.readthedocs.io/en/kea-2.2.0/man/kea-lfc.8.html). Kea executes this process periodically, but you can run it yourself as well, if you like. > On Dec 22, 2022, at 5:33 AM, Kraishak Mahtha wrote: > > Hi Marcin, > > Thanks for the quick

Re: [Kea-users] Can KEA trigger webhooks?

2022-12-23 Thread Darren Ankney
"role": "backup" }] }] } }], JSON will be sent to http://192.168.56.66:8000 <http://192.168.56.66:8000/> and http://192.168.56.99:8000/ each time something happens (new lease, renewal, release) So you could have some type of

Re: [Kea-users] Monitoring a Kea cluster

2022-12-27 Thread Darren Ankney
What we did, 20+ years ago, was implement a rudimentary DHCPv4 client in perl as a module for the monitoring software we use. We only implemented “renew” functionality. On all of the DHCP servers that we wanted to monitor, we had the subnet of the monitoring cluster configured as a pool. Then

Re: [Kea-users] Monitoring a Kea cluster

2022-12-27 Thread Darren Ankney
I had a thought regarding how you could implement some sort of monitoring solution for DHCPv6. I don’t think you could implement a client but it should be possible to pretend to be a relay agent to perform a monitoring function for DHCPv6 like I described for DHCPv4. I think that is the way th

Re: [Kea-users] Load-Balancing Network issue between Relay and Kea

2023-01-02 Thread Darren Ankney
Assuming the configuration on “server1” is the same excepting “this-server-name”, you don’t seem to have a configuration issue. How many clients are going un-acked? Is this DHCPv4 or DHCPv6? The behavior you are expecting is influenced by the 'the values of the “secs” field’ in DHCPv4. In

Re: [Kea-users] Monitoring a Kea cluster

2023-01-03 Thread Darren Ankney
}, 3) you might change “Wants=“ to “Requires=“ as apparently “Wants=“ will let the kea service still start even if the network-online.target hasn’t properly started. Though you might be better served by #1 above. > On Jan 3, 2023, at 3:20 AM, Stefan G. Weichinger wrote: > > Am 2

Re: [Kea-users] Disable multicast Listening

2023-01-04 Thread Darren Ankney
I’m assuming we are talking about DHCPv6 here. I don’t believe there is a way to cause the server to not listen to the multicast address. I believe RFC 8415 requires that the server listen on that address. You could limit the server to listening on the loopback interface. Then you could use

Re: [Kea-users] Kea Upgrade Question

2023-01-04 Thread Darren Ankney
You can directly upgrade. If you are using database backend, be sure and check the version there as well. > On Jan 3, 2023, at 8:16 PM, JT ISC wrote: > > Hello, > > I might be overlooking the documentation somewhere, but I wanted to be sure. > > I have been running Kea 2.0.1. Can you direct

Re: [Kea-users] Kea System Requirements

2023-01-04 Thread Darren Ankney
That is highly dependent on the number of clients you will be serving. There really is no easy way to answer that question. Have a look at dhcperf. you can use that to simulate the expected client load and see if your server can handle it. > On Jan 3, 2023, at 8:20 PM, JT ISC wrote: > > Wh

Re: [Kea-users] Kea MySQL & Advanced Features Requirements

2023-01-04 Thread Darren Ankney
I don’t know for sure, but you could certainly download the package for your system and check dependancies. If MySQL / MariaDB shows up, then it was compiled with such support: https://cloudsmith.io/~isc/repos/kea-2-2/groups/ > On Jan 3, 2023, at 8:28 PM, JT ISC wrote: > > I have a question

Re: [Kea-users] Some duplicates leases on my Lease File

2023-01-05 Thread Darren Ankney
can you share any relevant configurations involving an example device that is exhibiting this behavior? > On Jan 5, 2023, at 4:15 PM, Marcos Renato da Silva Junior > wrote: > > Hi, > > I seeing some duplicates leases on my Lease File (kea-leases4.csv), > apparently one with device hostname a

Re: [Kea-users] Some duplicates leases on my Lease File

2023-01-08 Thread Darren Ankney
gt; } > ], > "reservations": [ > { "hostname": "sltecpc3", "hw-address": "00:e1:4c:11:01:d6", > "ip-address": "192.168.2.151” } This is what I was looking for. I think what is happe

Re: [Kea-users] IPV6 client gets the wrong IP for sometime after a reboot

2023-01-17 Thread Darren Ankney
The trouble is that the server has no way to know it’s the same client if the DUID is unstable. If the mac address is available, you can assign a reservation based on that. Then it wouldn’t matter what DUID the client provides. This is the same behavior as in ISC DHCP concerning DHCPv6. It i

Re: [Kea-users] lease4-get-all is giving stale data

2023-01-25 Thread Darren Ankney
If the lease is still active (ie: the expire time is in the future), regardless of if the subnet is configured, I think it will still appear in the list. I don’t believe that LFC checks your configuration or anything. It is just meant to keep your leases file from growing uncontrollably. I do

Re: [Kea-users] Problem during running DHCP server on VLAN interface

2023-01-28 Thread Darren Ankney
I’m not sure if you can listen directly on a VLAN. I don’t seem to find the word VLAN in the ARM (https://kea.readthedocs.io/en/kea-2.2.0/). Try: $ ip link show 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00

Re: [Kea-users] Option 43 problems

2023-02-05 Thread Darren Ankney
Hi Michael, You might need to add: "always-send": true to { "name": "openpnp", "space": "vendor-encapsulated-options-space", "code": 5, "data": "5A1D;K4;B2;I192.168.100.10", "always-send": true } You can check by looking at the DISCOVER and REQUEST packets in your DEBUG p

Re: [Kea-users] Option 43 problems

2023-02-05 Thread Darren Ankney
"subnet4": > [ > { "option-data": > [ > { "always-send": true, "code": 5, "data": > "A1D;K4;B2;I192.168.100.10", "name": "openpnp", "space": > "vendor-encapsulate

Re: [Kea-users] CIDR or range notation in relay lists when using shared-networks?

2023-02-22 Thread Darren Ankney
Hello Klaus, In addition to what Peter said, another option would be to use shared networks and add the subnet for relays along with the subnet of addresses that you wish to allocate to the clients to a shared network. See: https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html#shared-networ

Re: [Kea-users] CIDR or range notation in relay lists when using shared-networks?

2023-02-23 Thread Darren Ankney
["192.168.120.0/24", "192.168.152.0/26", "192.168.184.0/26", > "192.168.216.0/25", "192.168.252.0/25", "192.168.88.0/24"] > """ > > or perhaps more accurately as this: > > """ > ["192.168

Re: [Kea-users] CIDR or range notation in relay lists when using shared-networks?

2023-02-23 Thread Darren Ankney
t domain. > > cheers, > Klaus > > On Thu, Feb 23, 2023 at 2:57 AM Darren Ankney wrote: >> >> Hi Klaus, >> >> So to be clear (with a hypothetical example), 192.168.120.16 might >> need to serve distinct network "A" with one or more subnets and &

Re: [Kea-users] CIDR or range notation in relay lists when using shared-networks?

2023-02-24 Thread Darren Ankney
uld also mention as additional context that each device is given > a static IP which is unchanged over the lifetime of the hardware; it's a > large data center environment where dynamic address assignments would wreak > havoc, so IPs in the pool are never offered to more than one MA

Re: [Kea-users] CIDR or range notation in relay lists when using shared-networks?

2023-03-02 Thread Darren Ankney
rs"}], > "pools": [{"pool": "192.168.164.11-192.168.164.254"}], > "subnet": "192.168.164.0/24" > }, > { > "id": , > "option-data": [{"data": "192.168.182.1", "n

Re: [Kea-users] Getting Started: Dual-stack Dynamic DNS Updates

2023-03-03 Thread Darren Ankney
Hi Troy, see responses in-line On Fri, Mar 3, 2023 at 4:24 PM Troy Telford wrote: > > I’ve been successful so far in getting Kea to serve IPv4 with both forward & > reverse dynamic DNS. Thus far I’ve only used SLAAC and static zone files for > IPv6 in DNS in my test/educational network. (A sma

Re: [Kea-users] keas-dhcp failover and HA

2023-03-06 Thread Darren Ankney
neither of those configs are valid. Looks like ChatGPT made up some things there. See: https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#ha-high-availability-outage-resilience-for-kea-servers Take a look at hot-standby as that is the easiest mode to configure and operate. On Mon, Mar 6, 20

Re: [Kea-users] unable to forward command to the dhcp4 service: Connection refused. The server is likely to be offline

2023-03-06 Thread Darren Ankney
Looks like your socket locations don't match between the kea config and the ctrl agent configuration. Those are filenames, so they are going to need to match exactly. Kea is in the driver's seat there as it actually creates the file. the ctrl agent "talks" to kea through such file. example, you

Re: [Kea-users] unable to forward command to the dhcp4 service: Connection refused. The server is likely to be offline

2023-03-06 Thread Darren Ankney
h the failover name being > specified but I don't see any such info in the kea-leas file > > Thanks > Kraishak > > On Mon, Mar 6, 2023 at 4:23 PM Darren Ankney wrote: >> >> Looks like your socket locations don't match between the kea config >> and the ctrl age

Re: [Kea-users] Subnet_cmds Subnet ID gets reset on service restart

2023-03-13 Thread Darren Ankney
Hello, How are you having the subnets persist across restarts? Are you executing a config-write? What order are the subnets ending up in on the drive after that? Do they have IDs listed? If not, I'm sure it will generate them in the order they are found in the configuration file. Also, you ar

Re: [Kea-users] Subnet_cmds Subnet ID gets reset on service restart

2023-03-14 Thread Darren Ankney
"pools": [ > { > "option-data": [ ], > "pool": "fda0::34:0:0:8053:0/112" > } > ], > "preferred-lifetime": 4294967295, > "rapid-commit": true, >

Re: [Kea-users] Reverse DDNS name syntax (INTERNAL)

2023-03-16 Thread Darren Ankney
the ARM doesn't say it won't. It doesn't say it will either. I looked around and was not able to find an RFC that specifies setting up the domain the way you did. I found this one: https://www.rfc-editor.org/rfc/rfc2317 that seems to suggest that 0/18.128.40.10.in-addr.arpa is a standard. I saw

Re: [Kea-users] Reverse DDNS name syntax (INTERNAL)

2023-03-18 Thread Darren Ankney
only - he is in full control. The only question is what is supported by what. I understand why he doesn't want to setup 64 zones if he can help it :) On Fri, Mar 17, 2023 at 7:41 PM Simon wrote: > > Darren Ankney wrote: > > > AM Weisteen Per wrote: > > >&

Re: [Kea-users] Lease time and DNS TTL (OPEN)

2023-03-22 Thread Darren Ankney
Not yet but there is an issue open for such a configuration option: https://gitlab.isc.org/isc-projects/kea/-/issues/225 On Wed, Mar 22, 2023 at 3:43 AM Weisteen Per wrote: > > Hi > > I'm using DDNS for updating both forward and reverse zones. According to the > docs the TTL value is calculated

Re: [Kea-users] DHCP disable NETBIOS

2023-03-24 Thread Darren Ankney
Neil, This looks fine. However, I think you have something extra in here that isn't needed. I think you can do it like this (i could be wrong as i have not tested this): "option-def": [ { "name": "disable-netbios", "code": 1, "space": "vendor-enca

Re: [Kea-users] vendor specific dhcp4 options from database

2023-03-31 Thread Darren Ankney
(https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html#configuration-backend-in-dhcpv4) so that it can load the configuration containing the options from the database for use. I saw neither of these things in your config file. Thank you, Darren Ankney On Fri, Mar 31, 2023 at 2:33 PM Richard

Re: [Kea-users] vendor specific dhcp4 options from database

2023-04-01 Thread Darren Ankney
tion data as part of a host reservation. Then the hosts-database directive you have is enough. I couldn't easily tell what you were doing for sure from the mysql dump you sent and I don't easily have the ability, at the moment, to restore it to have a look.. Thank you, Darren Ankney

Re: [Kea-users] vendor specific dhcp4 options from database

2023-04-01 Thread Darren Ankney
c, space); > > +cfg->encapsulate(); > > } > > > > /// @brief Specify column names. > > > > Of course, this is not really nice, I am still checking for nicer > > solutions. > > > > Regards, > > Richard

Re: [Kea-users] Configuring kea-dhp with only spcefied subnets in HA

2023-04-05 Thread Darren Ankney
7;t a good reason to load balance anyway as each server in the pair needs to be able to handle the load by itself in an outage situation. Thank you, Darren Ankney On Wed, Apr 5, 2023 at 11:00 AM Kraishak Mahtha wrote: > > Hi All, > > Can we configure the kea-DHCP HA with the combi

Re: [Kea-users] Captive Portal Using Kea DHCP.

2023-04-06 Thread Darren Ankney
send flag on the option so that it gets sent regardless. But, again, the client would need to know what to do with the option before it would have any affect. Thank you, Darren Ankney On Thu, Apr 6, 2023 at 6:48 AM Shobhith Chikku wrote: > Hi, > I am trying to build a captive portal usi

Re: [Kea-users] Migrate to Kea from non-ISC DHCP server

2023-04-13 Thread Darren Ankney
lating the file. If you need specific options to appear in the lease file, it is possible to use perfdhcp to generate most of them (even if you have to create the hex yourself). Thank you, Darren Ankney On Wed, Apr 12, 2023 at 5:19 PM Rachael Wilson wrote: > Hi, I would like to migrate a few

Re: [Kea-users] option 43 coming back blank

2023-04-15 Thread Darren Ankney
also ignored by Kea. Thank you, Darren Ankney On Fri, Apr 14, 2023 at 7:44 PM Alan Batie wrote: > > I'm trying to migrate from isc-dhcp to kea, however the option 43 > responses are coming back blank (they are actually getting sent, just > with an empty value field): > &g

Re: [Kea-users] kea-dhcp failover not working

2023-04-18 Thread Darren Ankney
you are listening to in your control agent on the standby server: "http-host": "192.168.0.126", "http-port": 8000, I imagine if you fix that typo, it will begin to work. Thank you, Darren Ankney On Tue, Apr 18, 2023 at 1:38 PM Kraishak Mahtha wrote: > > Hi Kevin

Re: [Kea-users] Migrate to Kea from non-ISC DHCP server ***EXTERNAL EMAIL***

2023-04-19 Thread Darren Ankney
Kea ARM for example usage) then pipe that output to jq which nicely formats the returned JSON. Thank you, Darren Ankney On Tue, Apr 18, 2023 at 5:47 PM Rachael Wilson wrote: > Thank you for the links, Wlodek! > > > > Here are some sample rows I am loading into the file: > >

Re: [Kea-users] kea-dhcp failover not working

2023-04-19 Thread Darren Ankney
other server it won't answer clients until max-unacked-clients is reached. 3) If you don't use the HA+MT method I mentioned earlier, then you need to run kea-ctrl-agent so that Kea has something to talk to. Thank you, Darren Ankney On Wed, Apr 19, 2023 at 9:49 AM Kraishak Mahtha wrot

Re: [Kea-users] kea-dhcp failover not working

2023-04-20 Thread Darren Ankney
t-standby" mode so you were forced to load balance (which introduced problems with the sharing of addresses between the servers sometimes). Thank you, Darren Ankney On Thu, Apr 20, 2023 at 1:20 AM Kraishak Mahtha wrote: >> >> >> Hi Dareen, >> >> Thanks for sharing

Re: [Kea-users] kea-dhcp failover not working

2023-04-20 Thread Darren Ankney
02 - 4.0.0.150", "client-class": "HA_server2" }, { "pool": "4.0.0.165 - 4.0.0.206", "client-class": "HA_server1" }, { "pool": "4.0.0.207 -

Re: [Kea-users] kea 2.0.3 dhcp4 HA not working

2023-04-21 Thread Darren Ankney
n send API commands directly to the kea-dhcp4 process over UNIX socket - which is all that is available without the kea-ctrl-agent. Thank you, Darren Ankney On Thu, Apr 20, 2023 at 4:08 PM Kevin P. Fleming wrote: > > > I will definitely read through the docs on this. And I know this ne

Re: [Kea-users] Unable to get the active lease list in sync with configuration data

2023-04-22 Thread Darren Ankney
logs. Possibly, while testing, set the severity to DEBUG and debug level to 99. lease4-get-all is getting the data from the kea-dhcp4 server, it has no where else to get it from. It has to be the data as the kea-dhcp4 server sees it. Thank you, Darren Ankney On Fri, Apr 21, 2023 at 11:05 AM

Re: [Kea-users] Unable to get the active lease list in sync with configuration data

2023-04-23 Thread Darren Ankney
dhcp4`. You can also execute it yourself if you like. You can also modify how frequently it is run with the "lfc-interval" argument to the "lease-database" config block (https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html#memfile-basic-storage-for-leases) Thank you, Darr

Re: [Kea-users] Multiple HA Configurations for one server

2023-05-05 Thread Darren Ankney
clients. Thank you, Darren Ankney On Thu, May 4, 2023 at 7:40 AM Kraishak Mahtha wrote: > > Hi all, > > I am checking if the kea-HA can be supportive for multiple HA relationships > like say server-A and server-B being in a HA for subnet1, subnet2 > 1)While the above is configure

Re: [Kea-users] Multiple HA Configurations for one server

2023-05-05 Thread Darren Ankney
cause the other server(s) already allocated the offered address to a different client. Thank you, Darren Ankney On Fri, May 5, 2023 at 8:57 AM Kraishak Mahtha wrote: > > Hi Darren, > > Thanks for the confirmation, and also for sharing about the 2.3.4 release key > point, > Actua

Re: [Kea-users] Multiple client class definitions

2023-05-05 Thread Darren Ankney
ntains the members you want in that pool as you show in the second example. Its made easier by the "member" and "not member" syntax. Thank you, Darren Ankney On Fri, May 5, 2023 at 9:25 AM Kraishak Mahtha wrote: > > Hi all, > > I have a use case where one of the c

Re: [Kea-users] Multiple client class definitions

2023-05-11 Thread Darren Ankney
Hi Kraishak, Sorry. It looks like I confused reservations' client-classes (which IS a list) with pool's client-class (which is NOT a list) Thank you, Darren Ankney On Wed, May 10, 2023 at 6:36 AM Kraishak Mahtha wrote: > > Hi Darren, > > Thanks for the respo

Re: [Kea-users] Dropping the packets in load balancing

2023-05-11 Thread Darren Ankney
Hi Kraishak, While you are in the testing phase, you may want to consider adding the kea-dhcp4.ha-hooks logger at debug level which will give you a lot of detail about what is going on: "loggers": [ { "name": "kea-dhcp4.ha-hooks", "output_options": [

Re: [Kea-users] Dropping the packets in load balancing

2023-05-17 Thread Darren Ankney
the partner server does not appear, then the sole running server proceeds directly to partner-down. Thank you, Darren Ankney On Tue, May 16, 2023 at 10:40 AM Kraishak Mahtha wrote: > > Hi Peter, > > but only one > HA_COMMUNICATION_INTERRUPTED_CLIENT4_UNACKED message. > > 20

Re: [Kea-users] Dropping the packets in load balancing

2023-05-21 Thread Darren Ankney
te a client that has been waiting for a lease. Example: perfdhcp -4 -r 1 -R 1000 -t 60 -l -p 300 -Y 10 -y 300 see: https://kea.readthedocs.io/en/latest/man/perfdhcp.8.html for details. Thank you, Darren Ankney On Thu, May 18, 2023 at 6:18 AM Kraishak Mahtha wrote: > > Hi Darren, Thank

Re: [Kea-users] Fwd: /32

2023-05-23 Thread Darren Ankney
Hi Joshua, You would need to use the flex option hook (https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#flex-option-flexible-option-actions-for-option-value-settings) to modify the assigned subnet mask from 255.255.255.0 to 255.255.255.255 using supersede. Thank you, Darren Ankney On Mon

Re: [Kea-users] Hints

2023-05-23 Thread Darren Ankney
would like to have allocated. If there is no hint, the argument should provide the text indicating that the hint hasn't been sent. Thank you, Darren Ankney On Mon, May 22, 2023 at 8:39 PM Joshua Pool via Kea-users wrote: > > With KEA 2.2 is there a way to assign a PD based on receiv

Re: [Kea-users] Hints

2023-05-25 Thread Darren Ankney
refix in bits. A 1-octet unsigned integer. You could probably confirm the content of the field with a packet capture. Thank you, Darren Ankney On Tue, May 23, 2023 at 5:09 PM Joshua Pool wrote: > > Thanks for the response. I am using a Mikrotik router and I

Re: [Kea-users] Hints

2023-05-25 Thread Darren Ankney
pools appeared in the config file [#1958]. 2.3.4 is part of the 2.3 development branch and is not recommended for production use. The next stable (2.4.0) will include this functionality and should be released this summer. Sorry to have misled you. Thank you, Darren Ankney On Thu, May 25, 2023 at

Re: [Kea-users] KEA and Stork - Issue in communication with the daemon (DHCP4)

2023-06-04 Thread Darren Ankney
ighlight=socket#management-api-for-the-dhcpv4-server Thank you, Darren Ankney On Sat, Jun 3, 2023 at 10:38 AM Christian Kreichgauer | KRAEMER Pferdesport via Kea-users wrote: > > Hi! > > > It feels like I'm almost done installing and configuring KEA and Stork on > Ubuntu 22.0

Re: [Kea-users] How do I list current IPv4 leases? (OPEN)

2023-06-06 Thread Darren Ankney
o socat UNIX:/tmp/kea-dhcp4-socket -,ignoreeof | jq . You may need to install socat or jq or both. They are both useful. socat lets you talk to a unix socket. jq formats (among other things) json output. If you are still not able to connect using kea-shell to the IP, then it might be a firewal

Re: [Kea-users] How do I list current IPv4 leases? (OPEN)

2023-06-07 Thread Darren Ankney
Hi > As far as I can see I've got the socket statements ok, different socket names > though. > > Trying the direct socket approach using socat works ok. The socket definition in kea-dhcp4 config and kea-ctrl-agent need to match. If they are different then kea-ctrl-agent has no idea how to conn

Re: [Kea-users] How do I list current IPv4 leases? (OPEN)

2023-06-08 Thread Darren Ankney
between the kea server instances (now possible with mutli-threading enabled in the HA hook). strace on kea shell would probably be more useful if HA is working and using kea-ctrl-agent as I'd suspect kea shell to be the problem in that case. Thank you, Darren Ankney On Thu, Jun 8, 2023 at 4:

Re: [Kea-users] Fetching Active Leases

2023-06-08 Thread Darren Ankney
he file is only a record that Kea can use to read the leases back into memory in the case it is restarted. Its possible to setup memfile, set a filename, and not have leases written to the file if you have "persist": false in the lease-database configuration. Thank you, Darren Ankney On

Re: [Kea-users] Fetching Active Leases

2023-06-08 Thread Darren Ankney
quot;: "www.shobhith.com", > "name": "domain-name" > }, > { > "data": "86400", > "name": "dhcp-lease-time" > }, > { &

Re: [Kea-users] Fetching Active Leases

2023-06-08 Thread Darren Ankney
the actual client from using the IP until the end of the lease. Thank you, Darren Ankney On Thu, Jun 8, 2023 at 9:16 AM Shobhith Chikku wrote: > > Thanks for the explanation. > Do we have any way to get the current active leases of a server in sync with > the configuration file data?

Re: [Kea-users] Memfile vs Database

2023-06-08 Thread Darren Ankney
Hi Scott, There is really no reason to use database storage of leases over memfile unless you have a specific reason for it (shared database between multiple servers instead of HA is the main reason). Performance will be better with memfile. Thank you, Darren Ankney On Thu, Jun 8, 2023 at 11

Re: [Kea-users] Kea HA issue with terminating connection

2023-06-11 Thread Darren Ankney
ach server (anonymized of course)? Thank you, Darren Ankney On Sat, Jun 10, 2023 at 11:51 AM sebastians wrote: > > Hi all, > > we recently migrated our DHCP setup from dhcpd to Kea. It runs on > two servers with hot standby and a memfile backend for the leases. Kea > assigns IP add

Re: [Kea-users] Kea HA issue with terminating connection

2023-06-12 Thread Darren Ankney
the listener. Is there anything being logged by kea-ctrl-agent? I see I never asked you what version of Kea this is, can you include that as well? Thank you, Darren Ankney On Mon, Jun 12, 2023 at 1:54 PM sebastians wrote: > > Hi Darren, > > this is what Kea logs shortly before termin

Re: [Kea-users] Testing option 43

2023-06-12 Thread Darren Ankney
"csv-format": true, "data": "74657374", }, please note that if "csv-format" is set to false, then Kea will be expecting "a hexadecimal string." see: https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html?

Re: [Kea-users] Testing option 43

2023-06-13 Thread Darren Ankney
t;: 43 }, { "space": "CALIXGC", "name": "acs-url", "code": 1, "data": "http://someurl"; } ] See if you can send that to your device or discover what actual dat

Re: [Kea-users] Testing option 43

2023-06-14 Thread Darren Ankney
sounds like you should be able to send data that isn't a suboption, but I cannot find anywhere in the ARM that indicates that Kea supports this. It definitely supports sending sub-options of option 43 which is the usual case encountered in practice. Thank you, Darren Ankney On Wed, Jun 14, 2023

Re: [Kea-users] Testing option 43

2023-06-15 Thread Darren Ankney
t;option-data": [ { "name": "vendor-encapsulated-options", "data": "any old string" }, ] which will allow you to store strings directly in the option. This might be best kept out of the global area (use in subnet, classes etc..), however, in case y

Re: [Kea-users] COMMAND_SOCKET_WRITE_FAIL

2023-06-15 Thread Darren Ankney
e-commands Thank you, Darren Ankney On Thu, Jun 15, 2023 at 6:31 AM Shobhith Chikku wrote: > > Hi Peter, > I used the command > "/usr/bin/echo '{"command":"lease4-get-all"}' | /usr/bin/socat - > UNIX:/opt/dhcp/dhcp/kea4-ctrl-socket | /usr/bin/jq

Re: [Kea-users] Using option82 (isc-kea)

2023-06-20 Thread Darren Ankney
Thank you, Darren Ankney On Mon, Jun 19, 2023 at 8:02 AM DDFR | Ronald Blaas wrote: > > Hi all, > > I have been searching and searching but could not find an answer to satisfy > my needs. > > I am new in using kea-dhcp. > I have a working setup using reservations with

Re: [Kea-users] Testing option 43

2023-06-20 Thread Darren Ankney
Hi Kraishak, Please provide the error message that you received. Thank you, Darren Ankney On Sun, Jun 18, 2023 at 1:34 AM Kraishak Mahtha wrote: > > Hi Darren, > This might be best kept out of the global area (use in subnet, classes > etc..), > -->do you mean the follo

Re: [Kea-users] Proper syntax

2023-06-20 Thread Darren Ankney
Hi Ron, Are you getting an error about an invalid character as shown in the GL issue? If so, check that your OS hasn't modified your quotation marks (MacOS likes to do that, for example). Thank you, Darren Ankney On Mon, Jun 19, 2023 at 10:51 AM DDFR | Ronald Blaas wrote: > > Hi

Re: [Kea-users] Kea Web UI?

2023-06-21 Thread Darren Ankney
Hi Ronald, There is Stork which is currently in heavy development: https://www.isc.org/kea/ (see bottom of page) and https://stork.readthedocs.io/en/v1.11.0/ It may not yet provide all features you are looking for. Thank you, Darren Ankney On Wed, Jun 21, 2023 at 4:24 AM DDFR | Ronald Blaas

Re: [Kea-users] Problem using Stork

2023-06-21 Thread Darren Ankney
Hi Ronald, To edit host reservations with Stork, you do indeed need the host_cmds hook library loaded in Kea: https://downloads.isc.org/isc/kea/2.2.0/doc/html/arm/hooks.html#host-cmds-host-commands Thank you, Darren Ankney On Wed, Jun 21, 2023 at 5:50 AM DDFR | Ronald Blaas wrote: > >

  1   2   3   4   5   >