Community discussions

MikroTik App
 
alex_rhys-hurn
Member
Member
Topic Author
Posts: 352
Joined: Mon Jun 05, 2006 8:26 pm
Location: Kenya
Contact:

OSPF IGP Redistribute only some/not all connected

Sat Apr 06, 2024 5:29 pm

Hello everyone.

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:
ISP POP Network.drawio.png
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:
  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}"  
OSPF Instance config:
  0   name="default-v2" version=2 vrf=main router-id=160.119.217.112 out-filter-select=OSPF-OUT redistribute=connected 
OSPF Interface config:
  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 
Alex
You do not have the required permissions to view the files attached to this post.
 
alex_rhys-hurn
Member
Member
Topic Author
Posts: 352
Joined: Mon Jun 05, 2006 8:26 pm
Location: Kenya
Contact:

Re: OSPF IGP Redistribute only some/not all connected

Sat Apr 06, 2024 6:03 pm

I have found this:

https://iparchitechs.com/presentations/ ... p-Dive.pdf
IP Architechs 2024-04-06 180117.png
Says network statements have moved to interface level.

Let me explore.
You do not have the required permissions to view the files attached to this post.
 
alex_rhys-hurn
Member
Member
Topic Author
Posts: 352
Joined: Mon Jun 05, 2006 8:26 pm
Location: Kenya
Contact:

Re: OSPF IGP Redistribute only some/not all connected  [SOLVED]

Sat Apr 06, 2024 6:34 pm

I think I have solved it.

adding the lo interface to the interface template and then adding the prefixes to the Networks field of the Interface template, and then removing redistribute connected from the instance is now showing what I expected.

Just a learning curve with ROS 7.

Alex

Who is online

Users browsing this forum: No registered users and 5 guests