I think I discovered why one of my kids says they are kicked of meetings on a regular basis… zoom shows all LOL.
Anyway when I checked my logs I see that every 19 minutes or so, the ISP script I have kicks on.
Turns out my fiber lease is you guessed it every 19 minutes.
Background: The script was created because when the ISP gives me a new WANIP and new gateway, my router cannot fill in the route information and I have to do it manually.
So that when the ISP goes offline, due to this, the script gets it back online.
What I didnt take into account is that the lease, a separate function, kicks off the script every 19 minutes and interrupts service…
The pain in the butt is that the WANIP and gateway are actually rarely changed, dont know the cycle but certainly days or weeks or even months.
Conclusion: I need to modify my script setup as follows:.
a. allow the lease event to occur without tripping my script
b. ensure the script actually catches the actual event of changing wanip and gateway.
Solution: Add a delay (timer or something) such that when detected a change of status, wait 30 seconds, and then check if have connectivity, if so then ignore carry on.
If no connectivity, then run the script. Something like that. Hoping smarter minds will prevail.
You may recall here is the script in the
IP DHCP Client advanced box.
Script–> :if ($bound=1) do={ /ip route set [find comment=“BellFibre”] gateway=($“gateway-address”) disabled=no; :log warning ("New ISP1 gateway: ".($“gateway-address”)) }
Default Route–> 255
Add Default Route–> Yes
/ip route
add check-gateway=ping distance=3 gateway=1.0.0.1
add distance=10 gateway=secondaryISP
add comment=BellFibre distance=3 dst-address=1.0.0.1/32 gateway=primaryISP
scope=10
add comment=Email_bypass distance=1 dst-address=emailserver gateway=
secondaryISP
Winbox view
S- 0.0.0.0/0 - y.y.y.y reachable Eastlink_eth1 - 10
AS - 0.0.0.0/0 - 1.0.0.1 recursive via x.x.x.x vlanbell - 3
DS - 0.0.0.0/0 - x.x.x.x - 255
;;; BellFibre
AS - 1.0.0.1 - x.x.x.x reachable vlanbell - 3
;;; Email_bypass
AS -emailserver - y.y.y.y reachable Eastlink_eth1