DS-lite won't reconnect after a disconnect?

Hi,

I running OpenWrt 24.10.1 with this config:

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option packet_steering '2'

config device
        option name 'eth0'
        option eee '0'

config device
        option name 'eth1'
        option eee '0'

config device
        option type '8021q'
        option ifname 'eth1'
        option vid '7'
        option name 'eth1.7'

config device
        option name 'eth2'
        option eee '0'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth0'
        list ports 'eth2'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option device 'eth1.7'
        option proto 'pppoe'
        option username 'redacted'
        option password 'redacted'
        option ipv6 '1'

config interface 'wan6'
        option proto 'dhcpv6'
        option reqaddress 'try'
        option reqprefix 'auto'
        option device 'pppoe-wan'
        list ip6class 'wan6'

config interface 'wan4'
        option proto 'dslite'
        option peeraddr '2a00:0:cff:14a0::1'
        option encaplimit 'ignore'
        option mtu '0'

config interface 'modem'
        option proto 'static'
        option device 'eth1'
        option ipaddr '192.168.0.2'
        option netmask '255.255.255.0'

Whenever there's a disconnect (and it's usual for ISPs to disconnect their customers every 24h where I'm from) OpenWrt won't re-establish a connection on its own.

On the "Interfaces" tab it'll say "Error: Network device is not present" next to wan4 (dslite-wan4) and wan6 (pppoe-wan).

After clicking the "Restart" button next to wan (pppoe-wan, too, but after clicking it changes to eth1.7) an error message next to it will appear saying "Error: Unknown error (USER_REQUEST)."

The most obvious workaround is to schedule a reboot at night using cron. This works fine unless there's an unexpected disconnect, which then requires me to be on-site. This makes having to rely on a VPN connection to my LAN at home a gamble. Needless to say, this is a huge issue for me.

What hardware we are talking about?

1 Like

It's a NanoPi R6S, but I've also experienced this issue with some AliExpress x86 Mini PC only a couple weeks ago, when I was first trying out OpenWrt.

This is why I think it's either something with my config being wrong (most likely, I assume?) or a software bug.

It seems that the cause of the problem is that pppoe cannot reconnect.

Since the pppoe-wan device is created dynamically only after a successful (pppoe) connection, that would explain the error message "Network device is not present".

Better use watchcat to reboot the router only if the internet connection drops.

It's also worth checking if restarting the network service solves the problem (instead of restarting the router).

1 Like

Are you sure that Vodafone in Germany uses ds-lite at all? I thought they just use pppoe only?

Yes.

I'm confident, because

  1. it works until there's a disconnect
  2. many customers complain online about Vodafone using DS-lite, because it causes issues for them (but their issues are different to mine, described in this thread)
  3. when using an AVM Fritz!Box 7690 before, and setting it up only using the "modem code", it said so in the logs:
1 Like

Fair, maybe this can help:

especially:

1 Like

I will try making the suggested changes and report back tomorrow (ie. after the next time the ISP forces that stupid 24h-reconnect). Thanks a lot!

1 Like

The changes @fda made to /lib/netifd/proto/ppp.sh seems to have done the trick for me, too. At least I woke up this morning with a functioning internet connection without having a cron-scheduled reboot!

It still feels to me more like a workaround than a proper fix, but I have no clue about any of this anyway. Besides, I don't care really, as long as it works.

Many, many thanks again for the help @moeller0 !! :heart:

Edit: I don't know how, but I completely missed your post @pavelgl ... thank you so much for replying, too! :heart: I've replaced option device 'pppoe-wan' with option device '@wan' now, maybe this will help.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.