Community discussions

MikroTik App
 
rains
just joined
Topic Author
Posts: 4
Joined: Wed Feb 02, 2022 1:03 am

OSPF filter

Wed Feb 02, 2022 1:14 am

I am trying to get route filter in ospf working, but no avail.
I have 3 routers, R1, R2 and R3 (all of them are running v6.49.1):
R1 in area 0.0.0.1
R2 (ABR) in area 0.0.0.1 and 0.0.0.0
R3 in 0.0.0.0, redistributing connected routes.

In R2 I want to filter the connected route distributed by R3 into area 0.0.0.1 but it doesnt seems working.

R1's config:
/interface bridge
add name=lo
/routing ospf area
set [ find default=yes ] disabled=yes
add area-id=0.0.0.1 name=area1
/routing ospf instance
set [ find default=yes ] router-id=192.168.1.1
/ip address
add address=192.168.1.1/24 interface=lo network=192.168.1.0
add address=192.168.12.1/24 interface=ether2 network=192.168.12.0
/routing ospf interface
add interface=lo network-type=broadcast passive=yes
/routing ospf network
add area=area1 network=192.168.1.0/24
add area=area1 network=192.168.12.0/24
/system identity
set name=R1

R2's config:
/interface bridge
add name=lo
/routing ospf area
add area-id=0.0.0.1 name=area1
/routing ospf instance
set [ find default=yes ] in-filter=ospf-in out-filter=ospf-out router-id=\
    192.168.2.1
/ip address
add address=192.168.2.1/24 interface=lo network=192.168.2.0
add address=192.168.12.2/24 interface=ether2 network=192.168.12.0
add address=192.168.23.2/24 interface=ether3 network=192.168.23.0
/routing filter
add action=discard chain=ospf-out prefix=172.16.1.0/24
/routing ospf interface
add interface=lo network-type=broadcast passive=yes
/routing ospf network
add area=backbone network=192.168.2.0/24
add area=area1 network=192.168.12.0/24
add area=backbone network=192.168.23.0/24
/system identity
set name=R2

R3's config:
/interface bridge
add name=lo
add name=test
/routing ospf instance
set [ find default=yes ] redistribute-connected=as-type-1 router-id=192.168.3.1
/ip address
add address=192.168.3.1/24 interface=lo network=192.168.3.0
add address=192.168.23.3/24 interface=ether3 network=192.168.23.0
add address=172.16.1.1/24 interface=test network=172.16.1.0
/routing ospf interface
add interface=lo network-type=broadcast passive=yes
/routing ospf network
add area=backbone network=192.168.3.0/24
add area=backbone network=192.168.23.0/24
/system identity
set name=R3
Can any 1 please advice what is wrong with my filters?

Thanks!
 
rains
just joined
Topic Author
Posts: 4
Joined: Wed Feb 02, 2022 1:03 am

Re: OSPF filter

Thu Feb 03, 2022 8:09 am

Just found out it is mentioned in the wiki https://wiki.mikrotik.com/wiki/Manual:R ... ng_filters that [and internal (intra-area) OSPF filtering is not supported yet] guess it explains why didn't the filter work :(

Who is online

Users browsing this forum: clambert and 11 guests