Community discussions

MikroTik App
 
InterMAN
just joined
Topic Author
Posts: 10
Joined: Thu Jul 31, 2008 10:08 am

OSPF Multiple Default Routes

Tue Aug 12, 2008 5:02 pm

Hello,

I've got 3 routers (RouterOS 3.11) using OSPF. 2 of them, let's call them A and B, have static default routes. Router A is supposed to be main gateway and router B backup gateway. Both of them are configured to redistribute default route if installed as type 2. Router B has set the default route "more expensive" then router A.

This is the problem's scenario:
1) All routers in the area have router A as default gateway automaticaly set by OSPF.
2) The default route at router A drops out.
3) All routers now switch to router B as default gateway.
4) The default route at router A becomes avlailable again.
5) All routers now switch back to router A as default gateway. ALL EXCEPT ROUTER B!

So, the problem I'm having is, that router B does not change the default gateway back to the main when it becomes availabe.

Does anyone have any suggestion? Maybe I'me using improper technology for this. If so, can you advice me some?

Thank you!
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: OSPF Multiple Default Routes

Tue Aug 12, 2008 6:07 pm

redistribute default gateway from one router as type 1 and from the other one - as type 2
 
InterMAN
just joined
Topic Author
Posts: 10
Joined: Thu Jul 31, 2008 10:08 am

Re: OSPF Multiple Default Routes

Tue Aug 12, 2008 8:04 pm

Still the same problem :(
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: OSPF Multiple Default Routes

Tue Aug 12, 2008 8:10 pm

what routes (including invalid) do you see on router B on step 5?
 
InterMAN
just joined
Topic Author
Posts: 10
Joined: Thu Jul 31, 2008 10:08 am

Re: OSPF Multiple Default Routes

Tue Aug 12, 2008 8:22 pm

I don't know what happend but it's working now.. :shock: I'll set the production enviroment to this settings (now on static settings - no ospf) and I'll hope it'll work. :? Thank you for your help!
 
trs80
newbie
Posts: 42
Joined: Thu Feb 24, 2005 6:15 am
Location: NYC-USA

Re: OSPF Multiple Default Routes

Wed Aug 13, 2008 5:40 pm

Make sure you have check-gateway set for your static default gateways.
 
meno
Member Candidate
Member Candidate
Posts: 233
Joined: Sat Jul 19, 2008 4:45 am

Re: OSPF Multiple Default Routes

Wed Aug 20, 2008 11:18 pm

hi can you help me how to configure an multiple gateway with failover.... Ive 1 ADSL and 1 wimax . both internet conection...

so I use 2 default route with different distance. but doesnt work when ISP1 down..

please help me

best regards
 
InterMAN
just joined
Topic Author
Posts: 10
Joined: Thu Jul 31, 2008 10:08 am

Re: OSPF Multiple Default Routes

Thu Aug 21, 2008 2:48 pm

If they are both on one router, just enable "check gateway" function on the main default route.
 
meno
Member Candidate
Member Candidate
Posts: 233
Joined: Sat Jul 19, 2008 4:45 am

Re: OSPF Multiple Default Routes

Fri Aug 22, 2008 6:49 pm

but is asigned dinamically.. so if I put static default route. when change the IP is doesnt not work anymore.. so Ive to check the "add default route" with the PPPoE connection..
 
InterMAN
just joined
Topic Author
Posts: 10
Joined: Thu Jul 31, 2008 10:08 am

Re: OSPF Multiple Default Routes

Fri Aug 22, 2008 8:30 pm

You can make it static - just do not provide the gateway IP address and provide only gateway interface. (The one which is created by PPPoE.)