Sometimes my PPPoE connection does not give connectivity anymore, and by manually disabling and then re-enabling it, the connectivity restarts.
Can someone give me a RouterOS script that would test if a specific PPPoE interface is enabled, then test the connectivity - for example ping 8.8.8.8 on that specific PPPoE interface
If ping is not working, that would reset the PPPeE connection (disable and re-enable)
Thanks a lot, but my config is a bit more complicated than this. I have 5 different PPPoE at the same time, and I need to test each of them on a regular basis, and take appropriate action for each of them in case one fails.
Then make a script which adds a static route for 8.8.8.8 (or any other IP), if failed - restart pppoe 1, then make a static route for 8.8.8.8 via pppoe2 and test, if failed - restart pppoe2 … pppoeN.
Remove static route for 8.8.8.8