Article 55CJ2 How to refresh PPPoE Internet connection if assigned private IP (OpenWRT)

How to refresh PPPoE Internet connection if assigned private IP (OpenWRT)

by
armars
from LinuxQuestions.org on (#55CJ2)
Hello everyone

I am new to linux

I am using linux based Openwrt
I tried ask this question in OpenWRT forum, but there is no answer yet
---------------
I am connecting to my internet provider through PPPoE connection

provider assigns me IP dynamically

but provider sometimes assigns private IP (10.x.x.x) instead of public
(I mean that my provider assigns randomly private or public IP)
here is my question

how can I configure openwrt to renew connection automatically if private IP is assigned ??
----------------------------
I mean after connection established provider assigned me IP
openwrt checks that IP
if IP is private
openwrt closes connection (or reboots openwrt)
waits few minutes connects to provider again
until public IP is not assigned by provider
-------------------------
I am using OpenWrt 19.07
-------------------------

As I understand better way to do it is write some script in /etc/ppp/ip-up

thanks in advance :)latest?d=yIl2AUoC8zA latest?i=ZypGj0FXnV0:tIwZgV_NoXE:F7zBnMy latest?i=ZypGj0FXnV0:tIwZgV_NoXE:V_sGLiP latest?d=qj6IDK7rITs latest?i=ZypGj0FXnV0:tIwZgV_NoXE:gIN9vFwZypGj0FXnV0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments