S
S
SterhXXX2021-09-29 16:38:06
Mikrotik
SterhXXX, 2021-09-29 16:38:06

Mikrotik. How to force OSPF to generate routes based on Mangle tagging?

Good afternoon.
There are 3 incoming Internet channels on the central Mikrotik-e. At the input they are marked with Mangle: I1, I2, I3. Raised gre-tunnels. What needs to be done in the OSPF settings so that the routes it creates are named.
The task was solved using the Mangle method, but this requires the intervention of the administrator on each router when a new network appears, but I would like automatic configuration using OSPF tools.

I poorly explained the essence of the issue.
Paraphrased here: https://qna.habr.com/q/1054308

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentin, 2021-09-29
@vvpoloskin

Mangle and OSPF are not connected in any way. In terms of Mikrotik, mangle is the internal marking of packages. OSPF is essentially the distribution of information between multiple routers. Mangle works to establish GRE, OSPF works on top of GRE, it's like different layers, levels. To break down networks by links (and the links you have already created GRE tunnels), you should use OSPF metrics.

S
SterhXXX, 2021-10-01
@SterhXXX

I found out everything: it is impossible to solve this problem exclusively using OSPF on Mikrotik equipment. This task is solved either through Mangle (in my case, I wrap traffic before marking), or through IP -> Routes, or rather, through policies (PBR). As a result, both there and there it is required to adjust the admin handles. (((
It's a pity!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question