Community discussions

MikroTik App
 
florentleg
just joined
Topic Author
Posts: 14
Joined: Mon Oct 12, 2020 5:20 pm

OSPF routing syntax

Tue Jun 08, 2021 11:15 am

Hello,

I have this configuration on an hAP ac² for OSPF (6.45.6) :
/routing ospf instance set [ find default=yes ] redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=0.0.0.2
/routing ospf interface add dead-interval=40s hello-interval=10s interface=BRIDGE network-type=broadcast retransmit-interval=3s use-bfd=no
/routing ospf area set [ find default=yes ] disabled=yes
/routing ospf area add area-id=0.0.0.99 name=area99
/routing ospf network add area=area99 network=192.168.1.0/24
However, this does not work on router OS7 (MikroTik Chateau). Especially I can not find the redistribute syntax part.

Any idea on how to convert this to ROS7 (7.1beta6)?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: OSPF routing syntax

Tue Jun 08, 2021 3:06 pm

You can start from here:
https://help.mikrotik.com/docs/display/ ... figuration

To enable redistribution use "redistribute" parameter in instance.
 
florentleg
just joined
Topic Author
Posts: 14
Joined: Mon Oct 12, 2020 5:20 pm

Re: OSPF routing syntax

Tue Jun 08, 2021 3:58 pm

You can start from here:
https://help.mikrotik.com/docs/display/ ... figuration

To enable redistribution use "redistribute" parameter in instance.
Thank you for your answer !

I did not find information about :
distribute-default=if-installed-as-type-1
in /routing ospf instance (for ROS6)
nor
use-bfd =no
for ROS6 in /routing ospf interface
Any idea about the equivalent here ?

Below is my converted script (so far)
/interface bridge add name=BRIDGE
/interface bridge port add bridge=BRIDGE interface=ether3
/routing filter rule add chain=ospf_out rule=" {if ([protocol static] || [protocol connected]) then={ospf-ext-type type1; action accept }}"
/routing ospf instance add name=v2inst out-filter-chain=ospf_out router-id=1.2.3.4
/routing ospf area add name=area11 area-id=0.0.0.11 instance=v2inst
/routing ospf/ interface-template/ add area=area11 network=192.168.1.0/24 interface=BRIDGE dead-interval=40s hello-interval=10s retransmit-interval=3s type=broadcast
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: OSPF routing syntax

Tue Jun 08, 2021 4:32 pm

BFD is not implemented and default route is not special case anymore, set distribution of protocol routes which installs default route and use routing filters to accept prefixes you want to advertise (0.0.0.0/0 if you want to advertise only default route) and set type and costs.
 
florentleg
just joined
Topic Author
Posts: 14
Joined: Mon Oct 12, 2020 5:20 pm

Re: OSPF routing syntax

Wed Jun 09, 2021 12:22 pm

BFD is not implemented and default route is not special case anymore, set distribution of protocol routes which installs default route and use routing filters to accept prefixes you want to advertise (0.0.0.0/0 if you want to advertise only default route) and set type and costs.
Is that what you mean with the default route ?
/routing filter rule add chain=ospf_out rule=" {if ( [ prfx value=dst<equal>0.0.0.0/0 ] ) then={ ospf-ext-type type1; action accept }}"
However, I do not know how to add cost to this.
 
User avatar
raimondsp
MikroTik Support
MikroTik Support
Posts: 267
Joined: Mon Apr 27, 2020 10:14 am

Re: OSPF routing syntax

Wed Jun 09, 2021 2:15 pm

Worth of mention that we have received user complaints that the new filtering rule format looks terrible. We have agreed that rule definitions are over-complicated, so the developers are working on (yet another) new syntax, which is supposed to be much simpler.
 
florentleg
just joined
Topic Author
Posts: 14
Joined: Mon Oct 12, 2020 5:20 pm

Re: OSPF routing syntax

Wed Jun 09, 2021 2:34 pm

Worth of mention that we have received user complaints that the new filtering rule format looks terrible. We have agreed that rule definitions are over-complicated, so the developers are working on (yet another) new syntax, which is supposed to be much simpler.
Have you got a roadmap for that point ? I have checked this page : https://help.mikrotik.com/docs/display/ ... col+Status
But there are only details about version prior to 7.1Beta4 (missing 7.1.Beta5 and 7.1.Beta6)
It would be very pleasant to have an "overview" of what is coming next for 7.1Beta versions so users would be able to anticipate changes.
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: OSPF routing syntax

Wed Jun 09, 2021 3:55 pm

Worth of mention that we have received user complaints that the new filtering rule format looks terrible. We have agreed that rule definitions are over-complicated, so the developers are working on (yet another) new syntax, which is supposed to be much simpler.

I would definitely agree. It's very hard to work with. Thanks for working to simplify this!
 
User avatar
raimondsp
MikroTik Support
MikroTik Support
Posts: 267
Joined: Mon Apr 27, 2020 10:14 am

Re: OSPF routing syntax

Thu Jun 10, 2021 8:51 am

New filtering rule syntax will be introduced in the next beta. Or, to be precise, v7.1Beta7 will be released when the new syntax is ready.
 
florentleg
just joined
Topic Author
Posts: 14
Joined: Mon Oct 12, 2020 5:20 pm

Re: OSPF routing syntax

Thu Jun 10, 2021 10:37 am

New filtering rule syntax will be introduced in the next beta. Or, to be precise, v7.1Beta7 will be released when the new syntax is ready.
Ok thank you, can you tell an approximative date for the Beta7 ?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11438
Joined: Thu Mar 03, 2016 10:23 pm

Re: OSPF routing syntax

Thu Jun 10, 2021 6:05 pm

New filtering rule syntax will be introduced in the next beta. Or, to be precise, v7.1Beta7 will be released when the new syntax is ready.
Ok thank you, can you tell an approximative date for the Beta7 ?

Which part of post by @raimondsp is not clear?
 
basicmonkey
just joined
Posts: 4
Joined: Tue Aug 24, 2021 2:10 pm

Re: OSPF routing syntax

Tue Aug 24, 2021 2:16 pm

BFD is not implemented and default route is not special case anymore, set distribution of protocol routes which installs default route and use routing filters to accept prefixes you want to advertise (0.0.0.0/0 if you want to advertise only default route) and set type and costs.
I can see BFD as red and N/A in the v7 routing protocols status. Is it due to appear in an upcoming version or is it off the roadmap?

Many thanks.
 
User avatar
amb3r
just joined
Posts: 16
Joined: Fri Oct 31, 2014 8:35 am

Re: OSPF routing syntax

Wed Dec 15, 2021 1:15 pm

looking forward to using "use-BFD" feature in OSPF

in BGP > Extra > use-BFD, the peer cache will not establish any connection.. :lol:
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: OSPF routing syntax

Wed Dec 15, 2021 1:30 pm

Currently, BFD is work in progress.

Who is online

Users browsing this forum: No registered users and 10 guests