tools/dhcpv6-pd_ia: fix: Add explicit subnet id #20776
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adjust prefix delegation config for Kea 2.6.0
Contribution description
https://github.com/isc-projects/kea/blob/master/ChangeLog:
Testing procedure
(for reproducability:
sudo killall kea-dhcp6
)cd examples/gnrc_border_router/
sudo PREFIX_CONF=dhcpv6 IPV6_PREFIX=2001:db8::/64 make all term
While the application is running, observe that no kea actually runs:
ps -aux | grep kea
Kea throws an error that the "id" entry is missing and exits. The error is however silenced by the python script.
Having no DHCP server, the
gnrc_border_router
(6LBR) application cannot contact any such server and therefore has no prefix.Finding the error
Finding the error
Find out how kea is started.
Apply this change (patch):
sudo PREFIX_CONF=dhcpv6 IPV6_PREFIX=2001:db8::/64 make all term
Start kea manually
sudo kea-dhcp6 -c /tmp/tmpsabotu4_
Keep config file
Make the script not delete the file after kea exits, so that the file can be inspected for debugging purposes.
Apply this change (patch):
Retry
sudo PREFIX_CONF=dhcpv6 IPV6_PREFIX=2001:db8::/64 make all term
Still: While the application is running, observe that no kea actually runs:
ps -aux | grep kea
Run kea manually:
sudo kea-dhcp6 -c /tmp/tmpq8boziok
https://kea.readthedocs.io/en/kea-2.6.0/arm/dhcp6-srv.html#ipv6-subnet-identifier