'PPPoE reconnect on WAN if IP is not' possible?



  • I have a WAN connection which uses PPPoE.

    I'm behind a kind of "%CGNAT" system, i.e. my ISP gives me x% of times a CGNAT IP and some y% of times a regular public IP. The two situations are clearly identifiable as the CGNAT IPs are private addresses.

    Is there a way to reconnect the WAN until a public IP is given to skip the CGNAT IPs? ..or any alternative techniques to achieve the same?

    Thanks!