Syslog errors "network unreachable" (failed to send packet: Network unreachable), but network is fine?

Hi there,

I'm seeing these entries in OpenWrt's syslog:

Tue Apr 18 18:29:55 2023 daemon.err odhcpd[1840]: Failed to send to ff02::1%lan@br-lan (Network unreachable)
Tue Apr 18 18:30:11 2023 daemon.err odhcpd[1840]: Failed to send to ff02::1%lan@br-lan (Network unreachable)
Tue Apr 18 18:30:27 2023 daemon.err odhcpd[1840]: Failed to send to ff02::1%lan@br-lan (Network unreachable)
Tue Apr 18 18:30:43 2023 daemon.err odhcpd[1840]: Failed to send to ff02::1%lan@br-lan (Network unreachable)
Tue Apr 18 18:30:59 2023 daemon.err odhcpd[1840]: Failed to send to ff02::1%lan@br-lan (Network unreachable)
Tue Apr 18 18:31:15 2023 daemon.err odhcpd[1840]: Failed to send to ff02::1%lan@br-lan (Network unreachable)
Tue Apr 18 18:31:31 2023 daemon.err odhcpd[1840]: Failed to send to ff02::1%lan@br-lan (Network unreachable)

Hundreds of them, every 16 seconds...

I just installed OpenWrt a few days ago, on v22.03.4.

I have a Raspberry Pi set up running Pi-hole and Unbound on a LAN port on the router (Archer C7 v2).

I looked at these threads, but I still don't have an answer as to what to do to fix this issue.

I turned off IPv6 in a few places, and I'd like to turn it off everywhere in OpenWrt (I wish there was a master switch for this in the OpenWrt GUI...), but I'm not sure where all the places are to turn it off.

Do I have something misconfigured?

Is your goal to truly not use IPv6 at all or just turn it off for the purposes of troubleshooting this issue?

The ff02::1 address is IPv6 multicast for all nodes on a local segment. If you truly want IPv6 disabled on your network, you likely will want to stop & disable the odhcpd service.

However, I am not aware of what repercussions there are (if any) with disabling that service entirely.

1 Like

If you truly want to disable IPv6 entirely, you should find what you're looking for here:

1 Like

My goal is to find out the cause of these errors.

If they are a result of IPv6, then, yes I want to completely disable IPv6 in OpenWrt.

Were you seeing these errors prior to attempting to disable any IPv6 functionality?

No, but I hadn't looked at syslog before now.

Sounds like it is an IPv6 issue, then, I'm guessing, given that "The ff02::1 address is IPv6 multicast for all nodes on a local segment." and other info supports this notion.

Based on that thread you linked, it looks like I can do the following?

uci set 'network.lan.ipv6=0'
uci set 'network.wan.ipv6=0'
uci set 'dhcp.lan.dhcpv6=disabled'
/etc/init.d/odhcpd disable
/etc/init.d/odhcpd stop
uci commit

and

uci set network.lan.delegate="0"
uci -q delete network.globals.ula_prefix
uci commit network
/etc/init.d/network restart

Correct? Is that all the right syntax, you think?

That looks legitimate if your goal is to disable IPv6. I generally would recommend against disabling IPv6 these days, but I am still fuzzy on your ultimate goal so perhaps I am speaking out of turn.

Haha, my goal is to find out the cause of these errors. If they're a result of IPv6, then, yes, I want to completely disable IPv6 in OpenWrt. I'm fine with IPv6 being disabled on my network.

Actually, I'll just give it a try with those commands I posted and double check the syntax, thanks for the link to that thread.

I feel like this was a chicken--egg situation. Perhaps I misunderstood, but it sounded like the errors began when you started trying to disable IPv6 (for whatever reason). But then you wanted to avoid the errors, so you have to go the extra mile to fully disable IPv6.

If that was the case, my recommendation would have been to just undo whatever you started modifying that was disabling IPv6 and just embrace it, at least in a LL (and perhaps ULA) setup. Basically the old "if it ain't broke, don't fix it" stance.

But it's your network and if disabling IPv6 is the goal, give those commands a shot and let us know how it goes.

Perhaps I misunderstood

I dunno, maybe I wasn't clear. But I did title this thread using the words "syslog errors":

Syslog errors "network unreachable" (failed to send packet: Network unreachable), but network is fine?

I provided this info:

I turned off IPv6 in a few places...

...after I posed the question asking about the cause of the syslog errors because the links I'd provided suggested that it might be an IPv6 issue, but I wasn't sure, hence the original question.

And I posted this:

No, but I hadn't looked at syslog before now.

...in response to your question "Were you seeing these errors prior to attempting to disable any IPv6 functionality?" I'd obviously read the syslog before starting this thread, so that shouldn't lead to any confusion. :wink:

Anyway, I will give those commands a try and see if the errors in the syslog will go away (which will hopefully achieve my goal of finding out the errors in the syslog, hehe).

Thanks again for the link to that thread, I think that they'll fix it. I do appreciate your help.

Is there such an interface?
ip link

Yes, there is.

And do you have a link local address on br-lan?

I'm sorry, I'm not sure what you mean by "link local address".

br-lan is my LAN, it appears, and that name was the default name. My wifi networks are attached to this interface (well, to 'lan', specifically).

Well, it appears to have been IPv6 causing those syslog errors, after all.

I ran the following commands, as best as I could determine from that thread, and that seems to have stopped the syslog errors.

uci set 'network.lan.ipv6=0'
uci set 'network.wan.ipv6=0'
uci set 'dhcp.lan.dhcpv6=disabled'
uci -q delete dhcp.lan.dhcpv6
uci -q delete dhcp.lan.ra
uci commit
uci commit dhcp
/etc/init.d/odhcpd restart
uci set network.lan.delegate="0"
uci commit network
/etc/init.d/network restart
/etc/init.d/odhcpd disable
/etc/init.d/odhcpd stop
uci -q delete network.globals.ula_prefix
uci commit network
/etc/init.d/network restart

Thanks again guys.

ip -6 addr show dev br-lan scope link

ip -6 addr show dev br-lan scope link
shows nothing.

But, interestingly, after disabling IPv6, I performed a speed test and got a highest-ever speed of 273.05Mbps. Even faster than I had with the stock TP-Link firmware on my Archer C7 v2 (a high of 270). I'd been suck around 200-220 for awhile after installing OpenWrt 22.03.4. I wonder if there's any correlation with disabling IPv6? :thinking:

But, boy oh boy, would it ever be nice to just have a master switch in the OpenWrt web GUI that we could toggle "on / off" to "Turn Off IPv6 Completely"... That would be very nice.

It's 2023. We have waited for such a long time that many ISP provide IPv6 connectivity and at leased lot of bigger networks run dual stack. Disabling IPv6 is not a recommended option.

I would propose you go a few steps back and ensure that the default IPv6 settings are restored. The defaults are just fine and work out of the box. (Even if you have no IPv6 upstream everything works just fine.)

1 Like

It's okay, I'm totally fine with IPv6 disabled. Thanks.