SOLVED - OSPF - 2 Default routes...

Started a new topic since this was getting off-topic from my BGP post. I have 3 core routers, all mikrotik, and 2 border routers, both cisco 7000 series.

Running OSPF internally, BGP externally and IBGP Between the borders.

Now on to the problem… (Any ips here are fictitious)
Both borders advertise a 0.0.0.0 via ospf, but the cores(mikrotiks) will only have one at a time in the table…except sometimes, i would see the 0.0.0.0 route pop up with “reachable border 1 x.x.x.x, reachable via border 2 x.x.x.x”…but then it goes away and lately it will only show it reachable via one, usually border1.

LSA’s show both routes:

external as-external 0.0.0.0 204.x.x.1 0x80000088 313
external as-external 0.0.0.0 204.x.x.2 0x800000C2 996

The only difference I can see is that the LSA’s show different details:

border1:
netmask=0.0.0.0
forwarding-address=0.0.0.0
metric=1
route-tag=0x1
type2


border2:
netmask=0.0.0.0
forwarding-address=67.58.117.9
metric=1
route-tag=0x1
type2

Email support. If both LSAs are there with the same metric as type 2, they should both get installed into the routing table. If they’re not, that’s a bug.

Just shot them an email. fewi, if you keep answering my questions im going to have to put you on the payroll!

–John

I think I solved the problem. Something kept bothering me about the forwarding address being in one but not the other.

I did some research about that and found that by default a cisco has OSPF enabled on ALL interfaces when you enable OSPF. You then need to turn off the ones you dont want it on. Since this “forwarding address” was the ip of one of those interfaces…i figured let me try turing it off on the links (Since it shouldnt be on on them anyways!).

Then I began thinking, its a GOOD thing the mikrotik doesnt add that route. Because it would say 0.0.0.0 is reachable via a network the tik doesnt have a connection to. Thanks Mikrotik people!!!

So i disabled it on those interfaces…and wham, now i have 0.0.0.0 forwarding address for both LSA’s and it installed both defaults.

I know this isnt a cisco forum, but for anyone mixing mikrotik and cisco here are the cisco commands to turn off OSPF on interfaces and eliminate that forwarding address that stops the mikrotik from keeping both routes:


router ospf 1 (enter ospf process config mode))
passive-interface FastEthernet2/0 (turns off OSPF on FastEthernet 2/0)
passive-interface FastEthernet2/1 (turns off OSPF on FastEthernet 2/1)

Just keep adding the interfaces you DONT want ospf to run on.

This will allow the mikrotik to add both routes.

–John

Even better…just enable OSPF on interfaces you DO want to run it on. :slight_smile:

router ospf 1
 passive-interface default
 no passive-interface FastEthernet2/3
 no passive-interface FastEthernet4/5

Good tip blake…

–John

Happening again, IDENTICAL LSA’s for both defaults, but only 1 is getting installed. Dont get this intermittent problem…

–John

Spoke too soon. I think I got it sorry guys.

FYI: When you have ciscos Advertising to tiks, make sure their OSPF config is as IDENTICAL as possible. The smallest difference can make one route not get into your tiks table (Yet still show the same LSA info so you will be stumped).

Basiclly what seemed to be causing the issue on mine was one border had "passive-interface default and and “no passive-interface GigabitEthernet0/0” and the other border had all interfaces turned off seperatly…instead of the default. Logic tells you this shoud accomplish the same thing. It did, but for some reason the tik doesnt think they are the same then.

Possibly, this had nothing to do with it and just the change restarted the OSPF process on the cisco and that restart fixed the issue. Not sure yet, but will keep posting to the thread if it starts happening again.

–John

I think it had nothing to do with it.

I have multiple Cisco’s, all using ‘passive-interface default’ in the OSPF configs, and the MikroTik’s will still lose the default route. It’s as MikroTik problem for sure.

That really sucks, as this is EXTREMELY important to me. Can we get someone from mikrotik to get this bug worked out???

–John