No internet after 25.12 upgrade

Hi!

I have a setup of a router and a separate access point. The latter is working fine, also after upgrading to 25.12.

The x86 router does not have internet after I upgrade it to 25.12. I use the attended sysupgrade.

I can login to the web interface fine. Also ssh into the router no problem. DHCP on the network seems fine.

I cannot ping 8.8.8.8 from the cli for example. It gives:

root@router:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network unreachable

After reverting back by flashing 24.10 internet connection is fine again. Then flashing 25.12 is giving the problem again.

I scanned the log, but no obvious errors to my eyes.

Is there something that could be the cause?

2 Likes

I have experienced this myself with one of my devices (but not the others)... I haven't yet had a chance to troubleshoot in detail.

That said, try deleting the DUID from the /etc/config/network file in 25.12.0 and then reboot. That may resolve the issue.

1 Like

You can try test install on a usb thumb drive and boot from there…

If internet works on the thumb drive. Then could be you need a fresh install on your x86 and load you backup config later,

1 Like

Thanks for the ultrafast reaction.

Ok, I couldn’t find a DUID in the network file, only dhcp_default_duid. So I backedup the file and removed it and rebooted. Did not fix it.

Restored the original network file and rebooted. Flashed 24.10.5 again… No internet. Emotional reaction :wink: But rebooted twice: internet works again :slight_smile:

I’m tempted to flash 25.12 and reboot it some times. But tomorrow i have to work from home, so i cannot afford a non working router. I will try in the weekend.

This will be my second option to try. I guess it is a good idea anyways to keep a usb stick with a copy of a working config as well. To be able to try things first.

JonSnow, Chrisss and myself have the same type of issue. After upgrade to 25.12, No internet, wan IPv4 adress is not assigned anymore. In the main thread this advise was given and may potentially still help.

2 Likes

So the norelease 0 didn’t work for me. Thanks for the suggestion though.

I also did reboot a few times on 25.12 just for superstition reasoning :slight_smile: Did not help.

Back on 24.10.5 for now with internet

I've been doing a bit of sleuthing with Wireshark and my spare router.

Comparing the wan DHCP request packets from v24.10 and v25.12, v25.12 sends and addional DHCP option 61 as part of it's DHCP request:

    Option: (61) Client identifier
        Length: 7
        Hardware type: Ethernet (0x01)
        Client MAC address: Netgear_DD:EE:FF (AA:BB:CC:DD:EE:FF)

v24.10 does not send this option as part of it's wan DHCP request.

Asking 'my friend' claude_ai how to stop v25.12 to sending option 61 as part of it's wan DHCP request, it suggests the following:

Edit `/lib/netifd/proto/dhcp.sh` and remove lines 68–69: (https://forum.openwrt.org/t/problem-with-dhcp-client-and-forced-clientid-in-v25-12/247164)

# REMOVE these two lines (25.12 behavior):
[ -z "$clientid" ] && clientid="$(proto_dhcp_get_default_clientid "$iface")"
[ -n "$clientid" ] && clientid="-x 0x3d:${clientid//:/}"

# REPLACE with this single line (restores 24.10 behavior):
[ -n "$clientid" ] && clientid="-x 0x3d:${clientid//:/}" || clientid="-C"

This restores the old behaviour: if no `clientid` is set in UCI, udhcpc is called with `-C` (don't send option 61 at all).

:+1: After saving and rebooting, I'm not seeing option 61 sent as part of the DHCP request packet. RESULT! :+1:

As per the link from claude_ai: Problem with DHCP client and forced ClientID in v25.12, this has been seen and fixed previously. @mmg is the real hero!

Finally, I've not tested this as I can't afford to interrupt internet at the moment, but @mmg reports that this works with his ISP, so I have high hopes!

If anyone else tries, please let us all know how you get on.

7 Likes

I’m smiling while typing this. Adjusted the dhcp.sh and did a reboot. A restart of the interface was not enough. Now the wan interface gets an ip from the isp. And this is typed over the connection provided by the 25.12.

Thank you!!!

This has already cropped up a number of times e.g.: Problem with DHCP client and forced ClientID in v25.12

@psherman maybe add it to the release notes or in the wiki?

1 Like

:collision: BOOM! :collision:

Don't forget to comment / upvote the Github issue requesting the fix https://github.com/openwrt/openwrt/issues/21671

1 Like

@hauke is the author of the release notes. I am happy to edit the release notes (on the forum), but only with permission. (I have concerns that the notes would be inconsistent between the forum and the other places that the release notes are posted).

Other options (not mutually exclusive):

  • We could create a new 'sticky' in the announcements & releases section of the forum.
  • We can add a wiki page that specifically discusses the mitigation for DHCP issues that seem to affect some users.
  • We can create a 'canned response' for use on the forums that describe the proposed solutions, point to a forum thread, and/or point to a wiki document.

Thanks, I favour the sticky

Excellent work figuring that out. Thank you.

Out of curiosity, is there any test that one could run to see if this issue would affect them before upgrading to 25.12? It might be helpful to include in the forum notification or sticky.

1 Like

Hmm could this problem also expose different as symptom?

I still receive dhcp from the isp and get a ip, but my internet is severely malfunctioning, if I visit github or go to this forum it gets extremely slow, it halts extremely long and then loads, but if I edit a post or write a post it again hangs, if it was dns which I think is not the problem due to caching, it must be something else.

If I look in speedtest all fine, when I look to ifconfig I see no error except maybe 2 on wired interfaces but doesn't increase.

It only happens to me to recent master builds, but I wonder if the DUID change can make this weird symptom too, it feels like the tx rate is severely degraded or something does DoS, when going back to a older firmware image I made with Jenkins on 17 feb the problem was not present.

Router is GL-MT6000

Two things come to mind, MTU problem or IPv6 problem (meaning IPv4 is working but IPv6 not)

1 Like

Yup, I was suspecting this too, I have changed some of the route64 to my own country and tried to change some mtu on my wireguard instances especially the cascaded ones those showed more errors in ifconfig.

But when I used no vpn it still happened, it is strange that a firmware difference alters the behaviour, I have tried to look into recent GitHub commits but i could not find a clue, I might have to do a big bisection or maybe do some more testing.

For now I have set the cascaded vpn like wifivpn/wgserver to 1280 mtu, and the normal server 1420.

Edit

I think it is ipv6 for now.

I have also encountered a version of this problem and, depending on people’s ISPs, there might be a more low-tech, caveman style solution to it.

I had also noticed that after the upgrade to 25.12 my main router was receiving DHCP NAK from my ISP and couldn’t get an IP address. So I ifdown'd the interface where my wan was, waited for about 15-20 minutes and then upon running ifup the issue was gone.

I’m posting this as a potential plan A to before editing dhchp.sh . If it is out of line or obvious, I will remove this post

I started noticing this recently after upgrading to 25.12.

I did try editing dhchp.sh as per the post 8 and I thought it worked, but clearly not.

After reverting back to 24.10 the same issue is occurring.

Had to revert to using my VM Hub 5 as a router.

I did recently enable IPv6 for the new Thread/Matter devices to register with my SMLIGHT, but disabling those does not stop the issue.

I don’t have wan6 as VM UK does not offer IPv6.

Router is CM4 with DFRobot Router Board

We have to apply this again after updating to 25.12.1 I noticed. Just so you know or have stumbled upon this topic.