-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set downstream route to delegated prefix in 6lbr example #21115
base: master
Are you sure you want to change the base?
Conversation
The gnrc_border_router example uses by default the start_networking script when used via `make term`. This script in turn uses the KEA DHCPv6 server which does not automatically configures a downstream route toward the delegated prefix. Hence, it is the responsibility of the caller to setup the route themselves. This can be done with RIOT when `STATIC_ROUTES` is set to `1`. (This will add a static link-local address to the border router's upstream interface (`fe80::2`) and a route via this address to the delegated prefix will be configured by the start_networking script.)
Won't this break deployment in 'real' networks? |
Good point. Maybe I just hook in the script for KEA DHCP instead. That would be the cleaner solution, I guess. |
The |
Isn't radvd required anyway to set the default route? |
If you configure static routes (and addresses) you need no |
That's clear, but I still need radvd to configure the router when using DHCPv6. |
Contribution description
The gnrc_border_router example uses by default the start_networking script when used via
make term
. This script in turn uses the KEA DHCPv6 server which does not automatically configures a downstream route toward the delegated prefix. Hence, it is the responsibility of the caller to setup the route themselves. This can be done with RIOT whenSTATIC_ROUTES
is set to1
. (This will add a static link-local address to the border router's upstream interface (fe80::2
) and a route via this address to the delegated prefix will be configured by the start_networking script.)Testing procedure
BOARD=nrf52840dongle make -C examples/gnrc_border_router clean all flash ULINK=cdc-ecm PREFIX_CONF=dhcpv6
.#6
) has the addressfe80::2
configured.gnrc_networking
.