From a3d2e0f9e20010ce5cdbf4f050ef1ad703c68e3d Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Thu, 2 Jan 2025 12:43:06 +0100 Subject: [PATCH] examples/gnrc_border_router: static route for dhcp 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.) --- examples/gnrc_border_router/Makefile.cdc-ecm.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/gnrc_border_router/Makefile.cdc-ecm.conf b/examples/gnrc_border_router/Makefile.cdc-ecm.conf index 8c86a6afbc89..74d7451619f9 100644 --- a/examples/gnrc_border_router/Makefile.cdc-ecm.conf +++ b/examples/gnrc_border_router/Makefile.cdc-ecm.conf @@ -4,6 +4,7 @@ USEMODULE += usbus_cdc_ecm ifeq (dhcpv6,$(PREFIX_CONF)) FLAGS_EXTRAS += --use-dhcpv6 + STATIC_ROUTES ?= 1 else ifeq (auto_subnets,$(PREFIX_CONF)) FLAGS_EXTRAS += --use-radvd endif