Auto adding ra advertized ipv6 routes

Hello,

I’m deploying ipv6 on my network after my ISP made it available.

My router does dhcpv6 statefull + slaac (via dnsmasq) and my osmc pi3 gets the proper ipv6s.

My router also advertizes a specific /112 route (via radvd) which the pi3 receives (as shown by radvdump below)

#based on Router Advertisement from 
#fe80::a42b:b0ff:febc:8062
# received by interface wlan0
#
interface wlan0
{
    AdvSendAdvert on;
    # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump
    AdvManagedFlag off;
    AdvOtherConfigFlag off;
    AdvReachableTime 0;
    AdvRetransTimer 0;
    AdvCurHopLimit 64;
    AdvDefaultLifetime 1800;
    AdvHomeAgentFlag off;
    AdvDefaultPreference medium;
    AdvSourceLLAddress on;
    route fddd::1:0/112
    {
            AdvRoutePreference medium;
            AdvRouteLifetime 1800;
    }; # End of route definition
}; # End of interface definition

However the route is not autoconfigured on my pi3…

My desktop gentoo pc gets the same route advertizement and automatically adds the route.

What can be the issue on my osmc pi3 ? How can I get it to add the advertized ipv6 route ?

Thanks in advance for any ideas / suggestions. I can provide more information if necessary.

Regards,

dwardo

P.S. my best googling efforts lead to linux - Advertise a subnet route with radvd - Server Fault unfortunately neither my osmc pi3 nor gentoo pc have those sysctl parameters… So seemed like a dead end.

connman is the network manager used by OSMC. You might start there.

If my understanding of what I read (when googling) is correct connman doesn’t have much to do with it… And its more ipv6 kernel / module configuration related…

Ok so this patch would be needed in kernel configuration. @sam_nazarko could this be included in the future ?

--- /boot/config-4.19.122-2-osmc        2020-07-04 05:52:56.000000000 +0200
+++ .config     2021-01-01 01:09:13.143059749 +0100
@@ -826,7 +826,8 @@
 CONFIG_DEFAULT_TCP_CONG="cubic"
 # CONFIG_TCP_MD5SIG is not set
 CONFIG_IPV6=m
-# CONFIG_IPV6_ROUTER_PREF is not set
+CONFIG_IPV6_ROUTER_PREF=y
+CONFIG_IPV6_ROUTE_INFO=y
 # CONFIG_IPV6_OPTIMISTIC_DAD is not set
 CONFIG_INET6_AH=m
 CONFIG_INET6_ESP=m

It’s probably worth checking the 5.x kernel config to see if it’s absent from there. The kernel configurations for RBP have been updated significantly

Cheers

Sam

I did yesterday when trying to self compile the the kernel and cloning GitHub - osmc/osmc: OSMC (Open Source Media Center) is a free and open source media center distribution.

Can confirm they are activated in 5.10.3 configuration. Will wait for the release :slight_smile: !

The 5.x kernel will be used for Pi 2 and Pi 4 with the release of Kodi v19, so there should be no further changes to make.

Unfortunately the current 4.19.x kernel is EOL from our perspective, so we won’t update the configuration to add support for this older kernel.