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.
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).
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)
when using an AVM Fritz!Box 7690 before, and setting it up only using the "modem code", it said so in the logs:
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.
Edit: I don't know how, but I completely missed your post @pavelgl ... thank you so much for replying, too! I've replaced option device 'pppoe-wan' with option device '@wan' now, maybe this will help.