Community discussions

MikroTik App
 
MeCJay12
just joined
Topic Author
Posts: 4
Joined: Sun Mar 01, 2020 5:50 pm

OSPF Route Not Adding to Main Route Table

Sun Mar 01, 2020 6:16 pm

Hello! New to MikroTik because the hardware configurations are too good to pass on. I purchased a few hEX PoE routers to be OpenVPN/OSPF clients. The OpenVPN tunnel is up, the OSPF neighbors formed, the OSPF neighbors formed, and the route propagate but the MikroTik router won't move the OSPF route to the main routing table. This might be my error or not; don't really know. Here are some print outs from my router of what I mean. Any ideas?
[admin@10.20.1] > routing ospf route print
 # DST-ADDRESS        STATE          COST          GATEWAY         INTERFACE     
 0 10.20.0.0/24       intra-area     10            0.0.0.0         10.20.2       
 1 10.20.2.0/24       intra-area     10            0.0.0.0         bridge        
 2 172.31.16.0/20     intra-area     10010        
break so code shows up right
[admin@10.20.1] > ip route print
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          192.168.2.1               1
 1 ADC  10.20.0.0/24       10.20.0.2       10.20.2                   0
 2 ADC  10.20.2.0/24       10.20.2.1       bridge                    0
 3 ADC  192.168.2.0/24     192.168.2.182   ether1                    0	
 
MeCJay12
just joined
Topic Author
Posts: 4
Joined: Sun Mar 01, 2020 5:50 pm

Re: OSPF Route Not Adding to Main Route Table

Tue Mar 03, 2020 7:44 pm

Bump
 
doush
Long time Member
Long time Member
Posts: 665
Joined: Thu Jun 04, 2009 3:11 pm

Re: OSPF Route Not Adding to Main Route Table

Tue Mar 03, 2020 10:02 pm

Check your OSPF instance and enable redistrbute connected
 [admin@Mikrotik] > routing ospf instance set 0 redistribute-connected=as-type-2 
 
Foxexe
just joined
Posts: 2
Joined: Mon Jul 19, 2021 3:34 pm

Re: OSPF Route Not Adding to Main Route Table

Mon Jul 19, 2021 3:46 pm

Bump!
Same problem.

Trying to add another router to network...
Configuration on all routers almost same. All connected via "gre-over-ipsec".
Ping and traceroute (with selected interface) is OK
But no routes in main table and empty gateway+interface in OSPF routes tab.

Why routes adds without gateways/interfaces? How to fix it?
mikrotik_ospf.jpg
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 22 guests