I cant seem to figure this out and would really appreciate some guidance. Many thanks in advance.
All routers are running ROS 7.14.2
The problem at the moment is that I am still seeing the subnets I want to exclude placed in OSPF AND ibgp, and because ibgp has higher path cost ospf is preferred. Anyway they should not be there as per best practice.
Below is my network: Objective:
1: INCLUDE the direct connected loopback address in the ospf
2: INCLUDE the direct connected 192.168.0.0/27 Core LAN addresses in ospf
3: EXCLUDE the direct connected 192.168.2.0/24 and 192.168.1.0/24 networks from OSPF so that I can advertise them instead to IBGP
I have played with OSPF redistribute knobs in the instance as well as the OSPF Output filters to no avail.
QUESTION:
How do I selectively redistribute prefixes/networks in to OSPF on ROS 7.14.2?
It seems that OSPF Output Route filters only work with external routes, and direct connected should be considered as external right?
In ROS 6.x days we used to have an OSPF networks tab, but that is not there anymore.
I have been reading this:
https://help.mikrotik.com/docs/display/ROS/OSPF
https://help.mikrotik.com/docs/display/ ... ndNumLists
https://help.mikrotik.com/docs/display/ ... h+examples
Some configs:
OSPF Route filters:
Code: Select all
0 chain=OSPF-OUT rule="if (dst == 192.168.0.111/32) {accept}"
1 chain=OSPF-OUT rule="if (dst == 192.168.0.2/27) {accept}"
Code: Select all
0 name="default-v2" version=2 vrf=main router-id=160.119.217.112 out-filter-select=OSPF-OUT redistribute=connected
Code: Select all
0 D address=192.168.0.2/27%ether1 area=backbone-v2 state=dr-other network-type=broadcast dr=192.168.0.1/27
bdr=192.168.0.3/27 cost=1 priority=128 use-bfd=no retransmit-interval=5s transmit-delay=1s hello-interval=10s
dead-interval=40s