[Kea-users] [EXTERNAL] Re: Question regarding to HA for kea-dhcp6 VMs

Andrei Pavel andrei at isc.org
Fri Mar 1 10:04:03 UTC 2024


Yes. That configuration is valid.

On 29/02/2024 23:14, Xiao, Yu (CCI-Atlanta) via Kea-users wrote:
>
> Hi Victoria,
>
> Thank you for your prompt response! But I don’t understand your 
> answer. Are you able to support the following config? Having two 
> servers with IPv4 addresses for HA use but serving as kea-dhcp6 servers?
>
> "Dhcp6":{
> "hooks-libraries":[
> {
> "library":"/usr/lib/kea/hooks/libdhcp_lease_cmds.so 
> <https://urldefense.com/v3/__http:/libdhcp_lease_cmds.so/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Zy0g8bQo$>",
> "parameters":{ }
> },
> {
> "library":"/usr/lib/kea/hooks/libdhcp_ha.so 
> <https://urldefense.com/v3/__http:/libdhcp_ha.so/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7ZyoaWzky$>",
> "parameters":{
> "high-availability":[ {
> "this-server-name":"server1",
> "mode":"load-balancing",
> "peers":[
> {
> "name":"server1",
> "url":http://192.168.56.33:8000/ 
> <https://urldefense.com/v3/__http:/192.168.56.33:8000/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Z2xRBC5P$>,
> "role":"primary"
> },
> {
> "name":"server2",
> "url":http://192.168.56.66:8000/ 
> <https://urldefense.com/v3/__http:/192.168.56.66:8000/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Z1dbwcxm$>,
> "role":"secondary"
> }
> ],
> "state-machine":{
> "states":[
> {
> "state":"waiting",
> "pause":"once"
> }
> ]
> }
> } ]
> }
> }
> ],
> ...
> }
>
> Best Regards,
>
> Yu
>
> *From: *Victoria Risk <vicky at isc.org>
> *Date: *Thursday, February 29, 2024 at 4:09 PM
> *To: *Kea user's list <kea-users at lists.isc.org>, Xiao, Yu 
> (CCI-Atlanta) <yu.xiao at cox.com>
> *Subject: *[EXTERNAL] Re: [Kea-users] Question regarding to HA for 
> kea-dhcp6 VMs
>
> Xiao,
>
> This is actually exactly why we implemented HA instead of DHCPv4 
> failover! So that you can use the same mechanism for DHCPv6.
>
> I am sorry if the documentation was misleading at all, I think the 
> documentation focuses on DHCPv4 because that is what most people are 
> using.
>
> Vicky
>
>
>
>     On Feb 29, 2024, at 4:04 PM, Xiao, Yu (CCI-Atlanta) via Kea-users
>     <kea-users at lists.isc.org> wrote:
>
>     Greetings,
>
>     I have an interesting question for you esp for ISC developers. I
>     want to only use kea-dhcp6, which means I need VMs working as DHCP
>     servers to provide IPv6 addresses to other devices so those
>     clients can have IPv6 addresses. But I don’t care or need that my
>     kea-dhcp6 servers themselves have IPv6 addresses or not.
>
>     But the problem is that in the documentation, I can see they give
>     some examples which all put the redundancy configurations under
>     the*Dhcp4*configuration section. Does it imply that in order to
>     use the HA feature for kea-dhcp6 servers, my DHCP servers
>     themselves must be configured to have their own IPv6 addresses? I
>     don’t think this makes any sense since in reality we only need the
>     connectivity between primary and secondary servers no matter this
>     connectivity is based on IPv4 or IPv6.
>
>     "Dhcp4": {
>
>     "hooks-libraries": [
>
>             {
>
>     "library":"/usr/lib/kea/hooks/libdhcp_lease_cmds.so
>     <https://urldefense.com/v3/__http:/libdhcp_lease_cmds.so/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Zy0g8bQo$>",
>
>     "parameters": { }
>
>             },
>
>             {
>
>     "library":"/usr/lib/kea/hooks/libdhcp_ha.so
>     <https://urldefense.com/v3/__http:/libdhcp_ha.so/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7ZyoaWzky$>",
>
>     "parameters": {
>
>     "high-availability": [ {
>
>     "this-server-name":"server1",
>
>     "mode":"load-balancing",
>
>     "peers": [
>
>     {
>
>     "name":"server1",
>
>     "url":http://192.168.56.33:8000/
>     <https://urldefense.com/v3/__http:/192.168.56.33:8000/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Z2xRBC5P$>,
>
>     "role":"primary"
>
>     },
>
>     {
>
>     "name":"server2",
>
>     "url":http://192.168.56.66:8000/
>     <https://urldefense.com/v3/__http:/192.168.56.66:8000/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Z1dbwcxm$>,
>
>     "role":"secondary"
>
>     }
>
>     ],
>
>     "state-machine": {
>
>     "states": [
>
>     {
>
>     "state":"waiting",
>
>     "pause":"once"
>
>     }
>
>     ]
>
>                       }
>
>     } ]
>
>                 }
>
>             }
>
>         ],
>
>     ...
>
>     }
>
>     May I ask can I configure my servers like this?
>
>     "Dhcp6":{
>
>     "hooks-libraries":[
>
>     {
>
>     "library":"/usr/lib/kea/hooks/libdhcp_lease_cmds.so
>     <https://urldefense.com/v3/__http:/libdhcp_lease_cmds.so/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Zy0g8bQo$>",
>
>     "parameters":{ }
>
>     },
>
>     {
>
>     "library":"/usr/lib/kea/hooks/libdhcp_ha.so
>     <https://urldefense.com/v3/__http:/libdhcp_ha.so/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7ZyoaWzky$>",
>
>     "parameters":{
>
>     "high-availability":[ {
>
>     "this-server-name":"server1",
>
>     "mode":"load-balancing",
>
>     "peers":[
>
>     {
>
>     "name":"server1",
>
>     "url":http://192.168.56.33:8000/
>     <https://urldefense.com/v3/__http:/192.168.56.33:8000/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Z2xRBC5P$>,
>
>     "role":"primary"
>
>     },
>
>     {
>
>     "name":"server2",
>
>     "url":http://192.168.56.66:8000/
>     <https://urldefense.com/v3/__http:/192.168.56.66:8000/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Z1dbwcxm$>,
>
>     "role":"secondary"
>
>     }
>
>     ],
>
>     "state-machine":{
>
>     "states":[
>
>     {
>
>     "state":"waiting",
>
>     "pause":"once"
>
>     }
>
>     ]
>
>     }
>
>     } ]
>
>     }
>
>     }
>
>     ],
>
>     ...
>
>     }
>
>     Related section:
>
>     https://downloads.isc.org/isc/kea/2.5.5/doc/html/arm/hooks.html#hooks-high-availability
>     <https://urldefense.com/v3/__https:/downloads.isc.org/isc/kea/2.5.5/doc/html/arm/hooks.html*hooks-high-availability__;Iw!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7Z_ukr4C_$>
>
>     Best Regards,
>
>     Yu
>
>     --
>     ISC funds the development of this software with paid support
>     subscriptions. Contact us athttps://www.isc.org/contact/
>     <https://urldefense.com/v3/__https:/www.isc.org/contact/__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7ZxOQsxAh$>for
>     more information.
>
>     To unsubscribe
>     visithttps://lists.isc.org/mailman/listinfo/kea-users
>     <https://urldefense.com/v3/__https:/lists.isc.org/mailman/listinfo/kea-users__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7ZziJLuAX$>.
>
>     Kea-users mailing list
>     Kea-users at lists.isc.org <mailto:Kea-users at lists.isc.org>
>     https://lists.isc.org/mailman/listinfo/kea-users
>     <https://urldefense.com/v3/__https:/lists.isc.org/mailman/listinfo/kea-users__;!!Hit2Ag!06m2yzYaZYgAjWXnEV6uDsNyyqb1YedvAndIPn2eo6KzSrsYKWP56bTaCyTl-2p7ZziJLuAX$>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240301/238a71d4/attachment-0001.htm>


More information about the Kea-users mailing list