OSPF Multiple Default Routes

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!

redistribute default gateway from one router as type 1 and from the other one - as type 2

Still the same problem :frowning:

what routes (including invalid) do you see on router B on step 5?

I don’t know what happend but it’s working now.. :open_mouth: I’ll set the production enviroment to this settings (now on static settings - no ospf) and I’ll hope it’ll work. :confused: Thank you for your help!

Make sure you have check-gateway set for your static default gateways.

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

If they are both on one router, just enable “check gateway” function on the main default route.

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..

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.)