I'm encoutering a problem with OSPF filters. I’ve the following OSPF configuration and the routing filter applied to the instance ospf-wan-area does not work, the routerboard sends all the prefixes of the other ospf instance, anyone had same problem?
Code: Select all
/ip address
add address=10.240.0.1 interface=loopback network=10.240.0.1
add address=10.254.0.3/29 interface=VLAN-WAN network=10.254.0.0
add address=10.20.0.1/26 interface=VLAN-BACKBONE network=10.20.0.0
add address=185.X.Y.1/28 interface=BRIDGE-WAN network=185.X.Y.0
/routing ospf instance
set [ find default=yes ] distribute-default=always-as-type-1 router-id=10.240.0.1
add in-filter=ospf-wan-in name=ospf-wan out-filter=ospf-wan-out redistribute-other-ospf=as-type-1 router-id=10.254.0.3
/routing ospf area
add area-id=0.0.0.1 instance=ospf-wan name=area-wan
/routing filter
add action=accept chain=ospf-wan-out prefix=185.X.Y.0/22 prefix-length=22
add action=discard chain=ospf-wan-out
add action=accept chain=ospf-wan-in prefix=0.0.0.0/0
add action=discard chain=ospf-wan-in
/routing ospf interface
add network-type=broadcast passive=yes
add interface=loopback network-type=broadcast passive=yes
add authentication=md5 authentication-key=X interface=VLAN-BACKBONE network-type=broadcast
add authentication=md5 authentication-key=X interface=VLAN-WAN network-type=broadcast
/routing ospf network
add area=backbone network=10.20.0.0/26
add area=backbone network=185.X.Y.0/28
add area=backbone network=10.240.0.1/32
add area=area-wan network=185.X.Y.0/28
add area=area-wan network=10.254.0.0/29
[admin@X] > routing ospf lsa print
AREA TYPE ID ORIGINATOR SEQUENCE-NUMBER AGE
area-wan router 10.254.0.1 10.254.0.1 0x800000B3 48
area-wan router 10.254.0.2 10.254.0.2 0x8000002B 458
area-wan router 10.254.0.3 10.254.0.3 0x800000D0 1551
area-wan network 10.254.0.2 10.254.0.2 0x80000028 1202
external as-external 185.X.Y.0 10.254.0.3 0x8000001F 326
backbone router 10.240.0.1 10.240.0.1 0x8000063F 849
backbone router 10.240.0.2 10.240.0.2 0x80000CE4 863
backbone router 10.240.1.1 10.240.1.1 0x80000C89 1460
backbone network 10.20.0.2 10.240.0.2 0x80000026 863
backbone network 10.20.10.6 10.240.1.1 0x80000C27 1460
backbone summary-n... 10.20.10.8 10.240.1.1 0x800005D4 802
backbone summary-n... 10.20.10.16 10.240.1.1 0x800007DF 474
backbone summary-n... 10.30.0.0 10.240.1.1 0x800007DF 739