Community discussions

MikroTik App
 
johndjmix
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Fri Aug 13, 2010 12:13 am

SOLVED - OSPF - 2 Default routes...

Fri Jun 24, 2011 9:04 pm

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
Last edited by johndjmix on Mon Jun 27, 2011 8:22 am, edited 1 time in total.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: OSPF - 2 Default routes...

Sun Jun 26, 2011 8:28 pm

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.
 
johndjmix
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Fri Aug 13, 2010 12:13 am

Re: OSPF - 2 Default routes...

Mon Jun 27, 2011 7:21 am

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

--John
 
johndjmix
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Fri Aug 13, 2010 12:13 am

Re: OSPF - 2 Default routes...

Mon Jun 27, 2011 7:59 am

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
 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: OSPF - 2 Default routes...

Mon Jun 27, 2011 12:00 pm

Even better…just enable OSPF on interfaces you DO want to run it on. :)
router ospf 1
 passive-interface default
 no passive-interface FastEthernet2/3
 no passive-interface FastEthernet4/5
 
johndjmix
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Fri Aug 13, 2010 12:13 am

Re: SOLVED - OSPF - 2 Default routes...

Tue Jun 28, 2011 6:38 am

Good tip blake...

--John
 
johndjmix
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Fri Aug 13, 2010 12:13 am

Re: SOLVED - OSPF - 2 Default routes...

Mon Nov 21, 2011 12:44 am

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

--John
 
johndjmix
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Fri Aug 13, 2010 12:13 am

Re: SOLVED - OSPF - 2 Default routes...

Mon Nov 21, 2011 1:27 am

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
 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: SOLVED - OSPF - 2 Default routes...

Mon Nov 21, 2011 9:19 am

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.
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.
 
johndjmix
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Fri Aug 13, 2010 12:13 am

Re: SOLVED - OSPF - 2 Default routes...

Mon Nov 28, 2011 8:32 pm

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

--John

Who is online

Users browsing this forum: No registered users and 24 guests