OSPF - static announcements

Hello.
can anyone tell me, is it possible to transfer only ‘static’ routes from one mikrotik to other ?

other words, i’m trying to link between few ‘client’ devices and one ‘core’ device.
from client to core, i want to transfer client’s network.
from core to client i want to transfer only 3 routes: 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8. I don’t want to transfer all connected networks, or “0.0.0.0”
i tried that.. but fails :frowning: or all networks are redistributed, or default route… can someone tell me, want i’m doing wrong ?

In the OSPF instance you have control as to whether default, connected, static, BGP or other OSPF routes are redistributed.

core router:

routing ospf instance pr detail
Flags: X - disabled, * - default
0 * name="default" router-id=0.0.0.0 distribute-default=never redistribute-connected=no redistribute-static=as-type-1 redistribute-rip=no redistribute-bgp=no redistribute-other-ospf=no metric-default=1 metric-connected=20
metric-static=20 metric-rip=20 metric-bgp=auto metric-other-ospf=auto in-filter=ospf-in out-filter=ospf-out

so, 'other OSPF' from one client shold not be translated to other 'cilents', right ?

client:

[admin@client2] > rou ospf route print

DST-ADDRESS STATE COST GATEWAY INTERFACE

0 10.10.10.1/32 intra-area 30 10.200.0.1 sstp-out1
1 10.10.10.3/32 intra-area 20 10.200.0.1 sstp-out1
2 10.200.0.1/32 intra-area 10 0.0.0.0 sstp-out1
3 10.200.0.253/32 intra-area 20 10.200.0.1 sstp-out1
4 192.168.0.0/16 ext-1 40 10.200.0.1 sstp-out1
5 192.168.22.0/24 inter-area 20 10.200.0.1 sstp-out1

6 192.168.87.0/24 intra-area 30 10.200.0.1 sstp-out1

last route comes from 'other' client. why it comes ?

Other OSPF refers to routes learned from other OSPF instances. Do you have multiple instances running?

At least part of what you describe in the first post is probably best achieved using filters to control which routes are distributed/redistributed. Ave you tried using filters?

Other OSPF refers to routes learned from other OSPF instances. Do you have multiple instances running?

no, only one.

At least part of what you describe in the first post is probably best achieved using filters to control which routes are distributed/redistributed. Ave you tried using filters?

core:

[admin@MikroRouter] > rou filter pr d
Flags: X - disabled
0 chain=ospf-out prefix=10.0.0.0/8 invert-match=no action=accept set-bgp-prepend-path=“”
1 chain=ospf-out prefix=172.16.0.0/12 invert-match=no action=accept set-bgp-prepend-path=“”
2 chain=ospf-out prefix=192.168.0.0/16 invert-match=no action=accept set-bgp-prepend-path=“”
3 chain=ospf-out invert-match=no action=discard set-bgp-prepend-path=“”