Community discussions

MikroTik App
 
codi639
newbie
Topic Author
Posts: 27
Joined: Mon Jan 15, 2024 1:41 pm
Location: France

No neighbors with OSPF

Wed Apr 03, 2024 4:29 pm

Hello everyone,

This might sounds like a really basic problem but I'm struggling on this for two days.
I'm trying to build a simple OSPF configuration with RB3011 on OS 7.12.1, I have 3 routers with this topology:
PTR(ether6) -- CMC(ether6)
PTR(ether7) -- HOP(ether6)
CMC(ether7) -- HOP(ether7)

No matter which doc or tuto I'm following, I don't see any neighbors with the command `/routing/ospf/neighbor/print` even if my configurations looks god (for me?).
I provide you the conf of one router since it's quite the same for each router. Each router have two LAN like this (100, 101, 102, 103, 104 and 105) in 255.255.255.0 on ports ether8 and ether9.
CMC conf:
[admin@CMC] > /ip address/print
Columns: ADDRESS, NETWORK, INTERFACE
# ADDRESS           NETWORK        INTERFACE
;;; defconf
0 192.168.88.1/24   192.168.88.0   bridge   
1 192.168.104.1/24  192.168.104.0  ether8   
2 192.168.105.1/24  192.168.105.0  ether9   
3 172.16.0.3/32     172.16.0.3     loopback 
;;; link to PTR
4 10.0.0.10/30      10.0.0.8       ether6   
;;; link to HOP
5 10.0.0.17/30      10.0.0.16      ether7 

[admin@CMC] > /routing/id/print
Flags: D - DYNAMIC
Columns: NAME, ID, DYNAMIC-ID, SELECT-DYNAMIC-ID, SELECT-FROM-VRF
#   NAME     ID          DYNAMIC-ID     SELECT-DYNAMIC-ID  SELECT-FROM-VRF
0 D main                 192.168.105.1  only-vrf           main           
1   OSPF_ID  172.16.0.3                                   

[admin@CMC] > /routing/ospf/instance/print 
Flags: X - disabled, I - inactive 
 0   name="default" version=2 vrf=main router-id=3.3.3.3 

 1   name="instance-1" version=2 vrf=main router-id=OSPF_ID originate-default=always 

[admin@CMC] > /routing/ospf/area/print 
Flags: X - disabled, I - inactive, D - dynamic; T - transit-capable 
 0    name="backbone" instance=default area-id=0.0.0.0 type=default 

 1    name="Backbone" instance=instance-1 area-id=0.0.0.0 type=default 

[admin@CMC] > /routing/ospf/interface-template/print
Flags: X - disabled, I - inactive 
 0   area=backbone instance-id=0 networks=192.168.0.0/16 type=broadcast retransmit-interval=5s transmit-delay=1s hello-interval=10s dead-interval=40s priority=128 cost=1 

 1   area=backbone instance-id=0 networks=10.0.0.0/24 type=broadcast retransmit-interval=5s transmit-delay=1s hello-interval=10s dead-interval=40s priority=128 cost=1 

 2   area=Backbone interfaces=ether7 instance-id=0 networks=10.0.0.16/30 type=ptp retransmit-interval=5s transmit-delay=1s hello-interval=10s dead-interval=40s priority=128 cost=1 auth=md5 auth-key="12345678" 

 3   area=Backbone interfaces=ether6 instance-id=0 networks=10.0.0.8/30 type=ptp retransmit-interval=5s transmit-delay=1s hello-interval=10s dead-interval=40s priority=128 cost=1 auth=md5 auth-key="12345678" 

 4   area=Backbone interfaces=ether8 instance-id=0 networks=192.168.104.0/24 type=ptp retransmit-interval=5s transmit-delay=1s hello-interval=10s dead-interval=40s priority=128 cost=1 auth=md5 
     auth-key="12345678" 

 5   area=Backbone interfaces=ether9 instance-id=0 networks=192.168.105.0/24 type=ptp retransmit-interval=5s transmit-delay=1s hello-interval=10s dead-interval=40s priority=128 cost=1 auth=md5 
     auth-key="12345678" 

 6   area=Backbone interfaces=loopback instance-id=0 networks=172.16.0.3/32 type=broadcast retransmit-interval=5s transmit-delay=1s hello-interval=10s dead-interval=40s priority=128 cost=1 passive auth=md5 
     auth-key="12345678" 

Each router is capable of pinging the direct port to which it is connected.
In the log I can the different configuration I've made but nothing related to some OSPF exchange.

The final objective is to be able to ping each interface from any router (I mean, such as OSPF do...) and is a link break still be able to communicate (such as OSPF... you get what I mean).
If any of you have an idea of why my different seams to be isolated, it would be really good to help me.

I've tried this doc: https://wiki.mikrotik.com/wiki/Manual:OSPF-examples and this one: https://help.mikrotik.com/docs/display/ROS/OSPF
Tried to take infos there: https://www.uni-koeln.de/~pbogusze/post ... ation.html (not good OS version)
And to follow this: https://rickfreyconsulting.com/rosv7-os ... iguration/
 
User avatar
loloski
Member
Member
Posts: 420
Joined: Mon Mar 15, 2021 9:10 pm

Re: No neighbors with OSPF  [SOLVED]

Thu Apr 04, 2024 6:42 am

Please check if you are blocking OSPF incorporate this rule with your existing firewall
ip firewall filter add action=accept chain=input protocol=ospf
 
codi639
newbie
Topic Author
Posts: 27
Joined: Mon Jan 15, 2024 1:41 pm
Location: France

Re: No neighbors with OSPF

Thu Apr 04, 2024 9:56 am

Please check if you are blocking OSPF incorporate this rule with your existing firewall
ip firewall filter add action=accept chain=input protocol=ospf
Didn't think that the default firewall filter rules could block routing protocol such as OSPF!
As I say, it was simple... Thank you very much!

Who is online

Users browsing this forum: No registered users and 4 guests