S
S
Stanislav2015-08-23 12:54:54
Mikrotik
Stanislav, 2015-08-23 12:54:54

How to implement Mikrotik configuration loading depending on wathdog status?

The situation is this:
There is a private provider that leads to the router signal over the cable.
There is a neighbor's router that is connected to another provider.
There are two Mikrotik configurations, one of which implements a PPPoE connection to its own provider, and the other via a wi-fi bridge can connect to a neighbor's router and organize the Internet accordingly.
The minimum task is to teach the router to monitor the situation with the main provider and, in case of problems, switch to load a configuration that will switch it to work through a neighboring router.
The maximum task is to complete the minimum task and teach the router to periodically check whether the work of the main provider has been restored and, in this case, load the main configuration.
All this is complicated by the fact that the task is not just to teach how to switch between two providers, which both go via cable to port1 and port2, but to switch between such configurations as a whole, since there you need a lot more than just disable one connection and enable another.
Somebody faced, implemented the similar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grustnui, 2015-08-23
@lamo4ok

Mikrotik configuration management is described here , but it seems to me that you need to look in the direction of scripts, and netwatch. Even on the toaster and on Habré, it was repeatedly described how to monitor channels and switch between them. (for example, here ) Most often, the "switching" itself, comes down to changing the main gateway or its metrics; in your case, everything is a little more complicated, in the place of the script where the metrics change, you will need to insert your own actions.
In order not to suffer with the syntax of Mikrotik commands, you can run Winbox, open a terminal in it and write / export, you will see your configuration in text form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question