# confD and DHCP (KEA or ISC-DHCP)

**URL:** <https://dmap-community.ductus.global/t/confd-and-dhcp-kea-or-isc-dhcp/3628>\
**Category:** Examples Set\
**Created:** [May 6, 2021, 2:48pm UTC](https://dmap-community.ductus.global/t/confd-and-dhcp-kea-or-isc-dhcp/3628 "2021-05-06T14:48:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kageja](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kageja](https://dmap-community.ductus.global/u/kageja)\
**Post date:** [May 6, 2021, 2:48pm UTC](https://dmap-community.ductus.global/t/confd-and-dhcp-kea-or-isc-dhcp/3628/1 "2021-05-06T14:48:16Z")

</div>

Hello everyone,

I want to use confD.  
Our unit using confD premium so that, we can use confD but i have some questions.

Our main purpose is to configure dhcp server over netconf.  
in that case, our dhcp server can be KEA or ISC-DHCP.  
as far as i know, sysrepo and KEA are working very well together.  
i guess, this solution provide zero effort

confD has a base implementation KEA or ISC-DHCP?  
if i can use confD, i have implement something ?  
I can see any reference for using with KEA or ISC-DHCP?

Many thanks in advance,  
WIth My Best Regards,  
Onur.

---

<div class="post-metadata">

**Author:** ![mvf](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mvf/32/182_2.png) [@mvf](https://dmap-community.ductus.global/u/mvf)\
**Post date:** [May 7, 2021, 7:05am UTC](https://dmap-community.ductus.global/t/confd-and-dhcp-kea-or-isc-dhcp/3628/2 "2021-05-07T07:05:09Z")

</div>

KEA comes with sysrepo already integrated, that’s why it is zero-effort. I’m not aware of existing integration for ConfD, so that would definitely require some effort. On the other hand, as I’m reading it, the sysrepo subscriber just sends full JSON configuration to KEA when the configuration changes, with some luck, something like that might not be difficult to do with ConfD either.

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [May 7, 2021, 7:38am UTC](https://dmap-community.ductus.global/t/confd-and-dhcp-kea-or-isc-dhcp/3628/3 "2021-05-07T07:38:24Z")

</div>

> [@kageja](#):
>
> I can see any reference for using with KEA or ISC-DHCP?

isc-dhcpd reference:

> [@How to HUP the daemon in the intro/1-2-3-start-query-model example?](http://dmap-community.ductus.global/t/how-to-hup-the-daemon-in-the-intro-1-2-3-start-query-model-example/180/3):
>
> Modified the example for running with the Internet Systems Consortium DHCP Server: $ dhcpd --version isc-dhcpd-4.3.1 $ diff -u ../../../examples.confd-orig/intro/1-2-3-start-query-model/dhcpd\_conf.c dhcpd\_conf.c --- ../../../examples.confd-orig/intro/1-2-3-start-query-model/dhcpd\_conf.c 2015-07-17 04:56:53.000000000 +0200 +++ dhcpd\_conf.c 2015-08-25 19:30:23.945732261 +0200 @@ -18,6 +18,8 @@ #include \<stdio.h\> #include \<unistd.h\> #include \<stdio.h\> +#include \<signal.h\> +#include \<fcntl.h\> …

---

<div class="post-metadata">

**Author:** ![kageja](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kageja](https://dmap-community.ductus.global/u/kageja)\
**Post date:** [May 7, 2021, 9:14am UTC](https://dmap-community.ductus.global/t/confd-and-dhcp-kea-or-isc-dhcp/3628/4 "2021-05-07T09:14:29Z")

</div>

[quote=“cohult, post:3, topic:3628”]  
isc-dhcpd reference:[/quote]

Hello MrCohult,

This example is in the confD basic or premium.  
And this example is fully functiona ?  
I mean, i have to do something some stuff ?

Thx,  
With My Best Regards,  
Have nice and healthy day,

---

<div class="post-metadata">

**Author:** ![waitai](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/waitai/32/436_2.png) [@waitai](https://dmap-community.ductus.global/u/waitai)\
**Post date:** [May 7, 2021, 6:31pm UTC](https://dmap-community.ductus.global/t/confd-and-dhcp-kea-or-isc-dhcp/3628/5 "2021-05-07T18:31:42Z")

</div>

> [@kageja](#):
>
> This example is in the confD basic or premium.

The referenced example can be found in both ConfD Basic and Premium.

---

<div class="post-metadata">

**Author:** ![kageja](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kageja](https://dmap-community.ductus.global/u/kageja)\
**Post date:** [May 8, 2021, 1:58pm UTC](https://dmap-community.ductus.global/t/confd-and-dhcp-kea-or-isc-dhcp/3628/6 "2021-05-08T13:58:29Z")

</div>

Hello [waitai](http://dmap-community.ductus.global/u/waitai),

I got it and see it. I have realized that and i saw its output.  
It seems very usefull thank you.

Btw, I have another question?  
How can i dockerize confD and if i dockerize confD how can i implement reference example about dhcp ?  
Is there any best practise or guideline ?

Many Thanks,  
With My Best Regards,  
Onur.

---

<div class="post-metadata">

**Author:** ![mnovak](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mnovak/32/183_2.png) [@mnovak](https://dmap-community.ductus.global/u/mnovak)\
**Post date:** [May 10, 2021, 6:25am UTC](https://dmap-community.ductus.global/t/confd-and-dhcp-kea-or-isc-dhcp/3628/7 "2021-05-10T06:25:49Z")

</div>

You can download ConfD Docker app note to get more information [https://info.tail-f.com/lp-confd-on-docker](https://info.tail-f.com/lp-confd-on-docker).  
Basically you create Dockerfile and build image.

In case you have `gradle` development environment, you can try this script ([https://gitlab.com/novakmi/tailfdocker/-/blob/master/examples/confdexample.gradle](https://gitlab.com/novakmi/tailfdocker/-/blob/master/examples/confdexample.gradle)) to build Dockerfile/Docker image with mentioned example from ConfD distribution. Then you can modify example if you need (e.g. ssh to running docker).
