I have an OpenWrt 21.02.1 router that connects to wan via PPPoE. Once in a while (not quite daily) Internet stops working and when I look on the router there is no default route. 'ifdown wan' followed by 'ifup wan' fixes this. The logs indicate that around the time I lost my default route there was a PPP timeout and reconnect. So it would seem that sometimes when this happens it doesn't correctly restore the default route.
It also seems to me that this started right after I set up IPv6, with WAN6 configured as a dhcpv6 client interface. I'm a bit hazy on how these interfaces interact so I'm not sure if there might be a connection here.
Any thoughts on what the problem might be or how to debug it better?
Work-arounds? Putting in a static default route doesn't work because since it's the same as the one supplied by PPP the WAN interface going down removes it regardless.