Kea issueshttps://gitlab.isc.org/isc-projects/kea/-/issues2023-07-31T13:38:18Zhttps://gitlab.isc.org/isc-projects/kea/-/issues/2140Can't use kea-dhcp6 as Prefix Delegation backend (like previously dibbler)2023-07-31T13:38:18ZLajos KatonaCan't use kea-dhcp6 as Prefix Delegation backend (like previously dibbler)Hi
I would like to use Kea for Openstack Neutron's pd "backend" (https://opendev.org/openstack/neutron ).
Currently we have a driver in Neutron for Dibbler which we use the following way (user workflow: https://docs.openstack.org/neutro...Hi
I would like to use Kea for Openstack Neutron's pd "backend" (https://opendev.org/openstack/neutron ).
Currently we have a driver in Neutron for Dibbler which we use the following way (user workflow: https://docs.openstack.org/neutron/latest/admin/config-ipv6.html#prefix-delegation ):
Neutron l3-agent creates IP namespaces for the routers, and dibbler is started within the ip namespace with a config like this:
_duid-type duid-en 8888 0x0f73d556b8364067bc6b3c2e61367d67
downlink-prefix-ifaces "none"
script
"/opt/stack/data/neutron/pd/877976ab-71c1-4c3f-ab76-281c5f2a61fa:0f73d556-b836-4067-bc6b-3c2e61367d67:qr-58b7a155-28/notify.sh"
iface "qg-f63df9d7-a7" {
bind-to-address fe80::f816:3eff:fe3a:f745
pd 1
}_
sudo ip netns exec qrouter-7dc7553b-b3aa-4782-b534-e4fc61f8b54f dibbler-client start -w /opt/stack/data/neutron/pd/877976ab-71c1-4c3f-ab76-281c5f2a61fa:0f73d556-b836-4067-bc6b-3c2e61367d67:qr-58b7a155-28/client.conf
notify.sh is a hook script to make possible that the prefix is finally stored in db and user can fetch it via REST API.
I tried to use Kea isntead to reach something similar result:
```
_$ cat kea_test.conf
{
# DHCPv6 configuration starts on the next line
"Dhcp6": {
# Next we set up the interfaces to be used by the server.
"interfaces-config": {
"interfaces": [ "qg-f63df9d7-a7" ]
},
# Finally, we list the subnets from which we will be leasing addresses.
"subnet6": [
{
"subnet": "2001:db8:2222::/48",
"pools": [
{"pool": "2001:db8:2222::/64"}
],
"pd-pools": [
{
"prefix": "3000:1::",
"prefix-len": 64,
"delegated-len": 96
}
]
}
]
# DHCPv6 configuration ends with the next line
}}
sudo kea-dhcp6 -c kea_test.conf_
```
but without success.
I saw that Kea has support for hooks (not sure I can use them as those are not in current distros), not sure if I can have similar hook like we have with dibbler.
environment:
Ubuntu 20.04.3 LTS
Linux mykeaenv 5.4.0-88-generic #99-Ubuntu SMP Thu Sep 23 17:29:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ kea-dhcp6 -v
2.0.0outstandingTomek MrugalskiTomek Mrugalskihttps://gitlab.isc.org/isc-projects/kea/-/issues/856Enable dynamic prefix support2024-02-07T22:34:55ZTiago GasparEnable dynamic prefix support---
name: Enable dynamic prefix support
about: Allow dynamic prefixes in a interface
---
**Some initial questions**
- Are you sure your feature is not already implemented in the latest Kea version?
From all I've searched all over the ...---
name: Enable dynamic prefix support
about: Allow dynamic prefixes in a interface
---
**Some initial questions**
- Are you sure your feature is not already implemented in the latest Kea version?
From all I've searched all over the internet this is not a standard kea nor ISC-DHCP option
- Are you sure what you would like to do is not possible using some other mechanisms?
I can't see any other way to do this without a wacky faulty scipt
- Have you discussed your idea on kea-users or kea-dev mailing lists?
No, I'm new to this of contributing and have no idea on how to do that
**Is your feature request related to a problem? Please describe.**
So I have a Linux system, in this case OpenWRT as the main router in my home, and I receive a IPv6 prefix from my ISP of size /56 and OpenWRT receives it and assigns it to each interface with the size I describe, but as the prefix is dynamic I can't configure the prefix in kea's config files because it is constantly changing.
**Describe the solution you'd like**
My suggestion is that kea could allow us to set a interface to listen on (as it does) and in the `"subnet":` option it could allow us to set a network like ::/60 (witch is the address for unspecified network)
**Describe alternatives you've considered**
I've considered setting only the listening interface and no subnet option but theãt wouldn't work as Kea also works as a stateless DHCPv6 server, so this is the best way I can think that the server can work as stateless and stateful DHCPv6 with or without a dynamic prefix
**Additional context**
I have a OpenWRT in my house and my ISP gives me a IPv6 Dynamic prefix, although OpenWRT natively handles IPv6 very well with Odhcpd, it doesn't offer many options to give out to clients besides the required ones like DNS and Gateway so I decided to dich odhcpd and I thought of dhcpd but I saw that Kea was a new, better DHCP meant to replace dhcpd at some point so as I'm all for the new and better I installed Kea and got this problem.
**Funding its development**
I'm curently studying so I don't have the money to fund it, but I work in networking every day so I can help you develop this feature asn needed and as I can
**Participating in development**
Yes absolutely! I'm here as needed Just ask, sometimes I can take a bit because of school but I will answer
**Contacting you**
I'd rather you contact me trough github or through here, I will enable e-mail notifications and if you really need to talk I'll privately send my phone numberoutstanding