Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15434

Forwarding Protocols • routing filter set administrative distance question

$
0
0
We have a situation where our 2 edge router is both originating default route in OSPF domain we want to match the gateway and set appropriate distance just
like i shown below is this possible? it was not clear in the documentation how to use the "gw" or can it be used in OSPF context, thanks in advance

/routing filter rule
add chain=ospf-in \
rule="if (protocol ospf && dst-len == 0 && gw 192.168.110.1) {set distance -1; accept}"
rule="if (protocol ospf && dst-len == 0 && gw 192.168.110.2) {set distance -2; accept}"


BR

Statistics: Posted by loloski — Mon Jan 15, 2024 3:22 am



Viewing all articles
Browse latest Browse all 15434

Trending Articles