[Kea-users] Selecting subnet with KEA Hook

Hreiðar Jóelsson hreidar.joelsson at gagnaveita.is
Wed Sep 12 15:07:44 UTC 2018


Hi, I'm developing a hook that give me a way to select a specific subnet from multiple subnets in a shared network. My network has several subnets per each service (VLAN), one which has restricted private addresses and several that have public addresses. The code I have now seems to be working the first time a device makes a discover but if I like to change which subnet is used KEA seems to overwrite my selection in the allocation process between subnet4_select and lease4_select / lease4_renew hook. This behavior seems to be related to the fact that the device already has a lease in the memfile which KEA wants to re-use, even if I select another subnet in the subnet4_select hook. Any idea how I can make KEA ignore this previous lease.

All help is greatly appreciated

Regards, Hreidar.


Kær kveðja / Best Regards,
Hreiðar Jóelsson
Netsérfræðingur IP netkerfis / Network Engineer
Sími / Tel: +354 516 7777 | Farsími / Mobile: +354 617 7835
Netfang / E-mail: hreidar.joelsson at gagnaveita.is

[cid:image001.png at 01D44AAA.5B9D05A0]
Smáratorgi 3, 201 Kópavogur, Iceland
Sími / Tel: +354 516 7777 | Póstur / Email: ljosleidarinn at ljosleidarinn.is

Vinsamlegast athugið að þessi tölvupóstur og viðhengi hans eru eingöngu ætluð þeim sem sendingin er stíluð á og gæti innihaldið upplýsingar sem eru trúnaðarmál. Hafir þú fyrir tilviljun, mistök eða án sérstakrar heimildar tekið við tölvupósti þessum og viðhengjum hans ber þér skv. 5. mgr. 47. gr. laga um fjarskipti nr. 81/2003 að gæta fyllsta trúnaðar, hvorki skrá upplýsingar hjá þér né notfæra þér þær á nokkurn hátt og tilkynna okkur samstundis um að þær hafi ranglega borist til þín. Vinsamlegast eyðið þeim að því loknu.

This e-mail message and any attachments is for the exclusive use of the intended recipient(s) and may contain confidential information.
If you are not the intended recipient, please uphold strict confidentiality and neither read, copy or make use of the content in any way.
Furthermore, please notify the sender immediately by replying to this message and delete all copies of the message.

[cid:image002.jpg at 01D44AAA.5B9D05A0]
www.ljosleidarinn.is<https://www.ljosleidarinn.is>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180912/a335ae9d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 3609 bytes
Desc: image001.png
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180912/a335ae9d/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 55660 bytes
Desc: image002.jpg
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180912/a335ae9d/attachment.jpg>


More information about the Kea-users mailing list