Hello good people ![]()
If somebody be so kind and make me script, Im not so good in this ![]()
here is situation we have
We got RouterBoard as router, I got configured two default gateways in route list, one to xxx.xxx.xxx.1, this one in main and second with IP xxx.xxx.xxx.2 - this is backup gateway.
I got netwatch configured to ping some of our servers outside, in the internet, and if the “line” is UP, that its ok, when netwatch goes to “DOWN”, it runs script, that disable the main gateway, so the second goes active and we are switched to backup internet connection.
BUT this is the weak point. If we are swithed to backup gateway, than the ping is awalaible again, and netwatch enables the main gateway - there ins no internet connection, no ping to server, so netwatch disable the main gateway - - - etc etc etc now its in circle ![]()
can somebody help me to solve this? I think that I need script, that runs when netwatch goes down and then the script must periodicaly enable the main gateway, wait a few seconds, test ping if there is no ping, than disable the main gateway ![]()
I dont know if you can understand this, but please try ![]()
thanks lot