Help pls!

Task: to define the IP address of the interface PPPoE-Client, and if the IP address is obtained from the range 100.71.0.0/16 - to reset connecting - otherwise - no change!

Many Thanks!

Done!!! :slight_smile:

:local WANInterface “Your PPPoE-Client interface”
:local IPCurrent [/ip address get [find interface=$WANInterface] address];
:local IPString [pick $IPCurrent 0 7]
:if ($IPString =“100.71.”) do={
:log error $IPCurrent;
:log warning “Reconnecting…”;
/interface pppoe-client disable [find name=$WANInterface]
:delay 5
/interface pppoe-client enable [find name=$WANInterface]
}