Community discussions

MikroTik App
 
User avatar
zimzum
just joined
Topic Author
Posts: 13
Joined: Thu Oct 19, 2017 1:37 pm
Location: Murcia

Use backup OSPF interface for especific prefix without static routes.

Thu Mar 04, 2021 12:21 pm

Hi, I wanted to know if it is possible in an OSPF network in which I have two interfaces on R1 to R2 and R3, one with a higher cost than the other to two different routers like this:
R1 -> R2 -> R4
R1 -> R3 -> R4
I would like to dynamically instead of making static routes that the cost of a single IP is lower for one of the links so that to reach that IP R4 prefers to go through R3 instead of R2 (which is the main link and with lower cost in OSPF).

I have tried the following:

/routing filter
add action=accept chain=ospf-out prefix=1.2.3.4 prefix-length=32 \
set-distance=1 set-in-nexthop-direct=ether7

Where "ether7" is R3 interface (backup), "ether6" would be the main one.

Who is online

Users browsing this forum: No registered users and 17 guests