Skip to content
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

IPv6 Route Advertisements Not Accepted #1919

Closed
msw1970 opened this issue Oct 18, 2024 · 4 comments · Fixed by #1922
Closed

IPv6 Route Advertisements Not Accepted #1919

msw1970 opened this issue Oct 18, 2024 · 4 comments · Fixed by #1922
Assignees
Labels
enhancement New feature or request openHAB related Must be important optional component Not part of the base system

Comments

@msw1970
Copy link
Contributor

msw1970 commented Oct 18, 2024

Issue information:

A Matter binding is under development/testing, written by digitaldan, which can integrate Matter Thread based devices using an external Thread Border Router into openHAB. However, by default an openhabian build does not allow for the IPv6 route advertisments to be accepted which stops the binding discovery process from working when the openHAB server is connected wired and the Thread Border Router is connected wirelessly.

Debug information:

The following parameters need to be added to /etc/sysctl.conf to allow IPv6 Route Advertisments

net.ipv6.conf.eth0.accept_ra_rt_info_max_plen = 64
net.ipv6.conf.eth0.accept_ra = 1

Where eth0 is the relevant ethernet interface name that is being used.

System information:

OS: Raspberry Pi OS
HW: Raspberry Pi 3 Model B you are running on (Raspberry Pi, amd64). Also include the output of
cat /etc/os-release and uname -m.

openhabian@WGB01DEV1002:~ $ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
openhabian@WGB01DEV1002:~ $ uname -m
armv7l
@ecdye
Copy link
Contributor

ecdye commented Oct 18, 2024

This seems like a reasonable thing to add support for in openHABian as it's a dependency for a major advertised feature in the upcoming openHAB release. @mstormi what do you think about adding this to openHABian?

I can probably look into adding it if you agree.

@ecdye ecdye added enhancement New feature or request optional component Not part of the base system openHAB related Must be important labels Oct 18, 2024
@msw1970
Copy link
Contributor Author

msw1970 commented Oct 18, 2024

Further update... If using DHCP to assign an IP address to the Raspberry Pi then the /etc/dhcpcd.conf also needs to be updated to append

noipv6
noipv6rs

Otherwise dhcpcd will always override the accept_ra option everytime the interface is restarted and the accept_ra configuration will be lost

@mstormi
Copy link
Contributor

mstormi commented Oct 19, 2024

@mstormi what do you think

okay for me but you need to ensure it's compatible with Raspi OS and potential package upgrades.

@ecdye ecdye self-assigned this Oct 19, 2024
@mstormi mstormi changed the title IPv6 Route Advertiements Not Accepted IPv6 Route Advertisements Not Accepted Oct 20, 2024
ecdye added a commit to ecdye/openhabian that referenced this issue Oct 23, 2024
Fixes openhab#1919

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
@ecdye
Copy link
Contributor

ecdye commented Oct 23, 2024

@msw1970 Can you confirm that the changes in #1922 fix route advertisements on a fresh install?

ecdye added a commit to ecdye/openhabian that referenced this issue Oct 24, 2024
Fixes openhab#1919

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
@ecdye ecdye closed this as completed in 7d97bd8 Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openHAB related Must be important optional component Not part of the base system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants