Net.ipv6.conf.wlan0.accept_ra changed

  • Platform information:
    • Hardware: Raspberry PI 4

    • OS: Openhabian

    • openHAB 5.0.2:

I try to run a default OpenHabian Install with openHAB 5.0.2 on a Raspberry PI.

I have change /etc/sysctl.conf and /etc/sysctl.d/99-sysctl.conf so they contains: net.ipv6.conf.wlan0.accept_ra = 2

But after a reboot the value are set to: net.ipv6.conf.wlan0.accept_ra = 0

If I manual set the value with: sudo sysctl -w net.ipv6.conf.wlan0.accept_ra=2 my setup with Matter works perfect.

Please help :slightly_smiling_face: .

Hi @Erling

can you check your /etc/dhcpcd.conf file

if there are entries for noipv6 and noipv6rs can you comment them out and check again after a restart

HI

The /etc/dhcpcd.conf file do not exist on a fresh Openhabian install.

I have create the file manually with noipv6 and noipv6rs and also tried to delete entries again.

The result is the same, after reboots is net.ipv6.conf.wlan0.accept_ra = 0 :smirking_face:

openHABian has an option to enable/disable ipv6 in /etc/openhabian.conf
I don’t think it’s used at boot time, only during installation, but feel free to check the script source code in /opt/openhabian/functions/*.

Your post is an X-Y type of problem post.
You should not be asking about this param but rather tell us what your real problem is and why you want to have that value set …

PS and tell the OS distro version.

Hi Markus

In /etc/openhabian.conf I have set ipv6=enable, so it should be OK?

I use Openhab with Matter and the Matter documentation states that:

Enabling IPv6 Thread Connectivity on Linux Hosts

It is important to make sure that Route Announcements (RA) and Route Information Options (RIO) are enabled on your host so that Thread boarder routers can announce routes to the Thread network. This is done by setting the following sysctl options:

1. net.ipv6.conf.wlan0.accept_ra should be at least 1 if ip forwarding is not enabled, and 2 otherwise.

2. net.ipv6.conf.wlan0.accept_ra_rt_info_max_plen should not be smaller than 64.

the accept_ra is defaulted to 1 for most distributions.

There may be other network daemons which will override this option (for example, dhcpcd on Raspberry Pi will override accept_ra to 0).

…..

To make these changes permanent, add the following lines to /etc/sysctl.conf:
net.ipv6.conf.eth0.accept_ra=1
net.ipv6.conf.eth0.accept_ra_rt_info_max_plen=64

Raspberry Pi users may need to add the following lines to /etc/dhcpcd.conf to prevent dhcpcd from overriding the accept_ra value:
noipv6
noipv6rs

I have installed the system with Raspberry Pi Imager v1.9.6. and later updated to openHAB 5.1.0.M1.

Setting the accept_ra is necessary for a working Matter setup :blush: