<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Hi Kevin,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thanks for your message!  It was very helpful.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I just tried to do host reservation with memfile and indeed it mostly worked.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Multiple ether mapped to same IP is working as you said (with the understanding that one would have to released first).</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
However, my experience with multiple IPv4 addresses to the same ether does not work, and you said that it should.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
  </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I tried to reserve:</div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">hw-address: 78:24:af:45:32:99 with hostname test1 and ip <masked ip></span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">hw-address: as-above with hostname test1 and different ip</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">When running kea, it loads the first reservation, but after reading the second one,
 it reports that this HW address has already been added so it can't be added again - thoughts?:</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">DHCP4_PARSER_FAIL failed to create or run parser for configuration element reservations:
 failed to add new host using the HW address '78:24:af:45:32:99' to the IPv4 subnet id '0' as this host has already been added</span></div>
<div><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">DHCP4_CONFIG_LOAD_FAIL configuration error using file: /xconf/kea/kea-dhcp4.conf.fowl1, reason: failed to add
 new host using the HW address '78:24:af:45:32:99' to the IPv4 subnet id '0' as this host has already been added</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/xconf/kea/kea-dhcp4.conf.fowl1':
 failed to add new host using the HW address '78:24:af:45:32:99' to the IPv4 subnet id '0' as this host has already been added</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">Jason.</span><span style="font-family: monospace; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: monospace; font-size: 11pt; color: rgb(0, 0, 0);"></span></div>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0);">
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of Kevin P. Fleming <lists.kea-users@kevin.km6g.us><br>
<b>Sent:</b> Monday, November 13, 2023 8:07 PM<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [Kea-users] a few questions from a Kea newbie</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">1) No, it is not necessary to use a database in order to use reservations.<br>
<br>
2) Unfortunately this is not currently possible unless you can ensure that the host releases its lease before switching interfaces. I have discussed this in a number of threads on this list and there is an open issue for it.<br>
<br>
3) Yes you can have multiple reservations for the same hardware address.<br>
<br>
On Mon, Nov 13, 2023, at 16:50, Jason Keltz wrote:<br>
> Hi.<br>
><br>
> I'm investigating migrating from ISC DHCPd to Kea and running into a few <br>
> issues.<br>
><br>
> I see some conflicting information online, due to kea development over <br>
> time, so I was hoping to ask here for some clarification.<br>
><br>
> 1) Is it really necessary to install a database backend such as <br>
> Postgres/MySQL if I want to have static host reservations?  This was <br>
> working so perfectly with dhcpd without any db backend for such a long <br>
> time.  Not having a DB backend on the DHCP server means one less thing <br>
> to worry about when Kea is updated, or the DB updated.   I accept that <br>
> performance of the DB is likely going to be better than the reservations <br>
> being stored in a text file, but for my basic setup, it just doesn't <br>
> matter to me. The simplicity of not needing a DB for this over-rides the <br>
> performance gain that may be attained with a DB.  I just want to be sure <br>
> that I haven't overlooked something.<br>
><br>
> 2) Does Kea permit multiple ethernet addresses mapped to the same IPv4 <br>
> IP?  I do this for multiple reasons - for example, I may have a server <br>
> that has 2 ethernet addresses, and when I plug it in, whether I use one <br>
> or the other network port, the IP should be the same.  Obviously I <br>
> shouldn't plug in both or things would break, but that would be my <br>
> problem.  At the same time, maybe a laptop has an ethernet port built <br>
> in, but when plugged into a dock that has its own network port, I want <br>
> the machine to get the same IP one way or the other (static <br>
> reservation).  Now, I think I can permit this by enabling <br>
> "ip-reservations-unique" to false, but I wanted to clarify.  Again, I <br>
> did this with DHCPd all the time.<br>
><br>
> 3) Finally - does Kea permit multiple IPv4 IPs for the same ethernet <br>
> address?  I believe that "ip-reservations-unique" does not permit this, <br>
> yet this is more important for me, and I did this with dhcpd.  For <br>
> example, in different places in the building there are different VLANs.  <br>
> Most hosts just get a static IP reservation from DHCP.  99% of hosts <br>
> will ever be on one VLAN. However, for say, my test laptop that has a <br>
> single IP reserved on every VLAN - can Kea handle this scenario?<br>
><br>
> Answers to these questions would be a great start!<br>
><br>
> Thanks for reading..<br>
><br>
> Jason.<br>
><br>
> -- <br>
> ISC funds the development of this software with paid support <br>
> subscriptions. Contact us at <a href="https://www.isc.org/contact/">https://www.isc.org/contact/</a> for more
<br>
> information.<br>
><br>
> To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users">
https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
><br>
> Kea-users mailing list<br>
> Kea-users@lists.isc.org<br>
> <a href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at
<a href="https://www.isc.org/contact/">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<br>
Kea-users mailing list<br>
Kea-users@lists.isc.org<br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</div>
</span></font></div>
</body>
</html>