Community discussions

MikroTik App
 
wifi442
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 81
Joined: Tue Jan 12, 2010 11:01 pm

OSPF Multiple Default Gateways

Mon Jan 16, 2012 5:36 am

I have OSPF running on my network for some time now. I have added a second internet connection for redundancy. The network is on another router in the network.
Here are the settings for the main network:

set default disabled=no distribute-default=always-as-type-2 in-filter=ospf-in \
metric-bgp=auto metric-connected=20 metric-default=1 metric-other-ospf=auto \
metric-rip=20 metric-static=20 name=default out-filter=ospf-out \
redistribute-bgp=no redistribute-connected=no redistribute-other-ospf=no \
redistribute-rip=no redistribute-static=no router-id=10.254.0.20


And here is the settings for the backup router:

set default disabled=no distribute-default=if-installed-as-type-1 in-filter=\
ospf-in metric-bgp=auto metric-connected=20 metric-default=500 \
metric-other-ospf=auto metric-rip=20 metric-static=20 name=default \
out-filter=ospf-out redistribute-bgp=no redistribute-connected=no \
redistribute-other-ospf=no redistribute-rip=no redistribute-static=no \
router-id=10.254.0.4


All other routers are set up like this: (different ID's of course)

set default disabled=no distribute-default=never in-filter=ospf-in metric-bgp=\
auto metric-connected=20 metric-default=1 metric-other-ospf=auto \
metric-rip=20 metric-static=20 name=default out-filter=ospf-out \
redistribute-bgp=no redistribute-connected=no redistribute-other-ospf=no \
redistribute-rip=no redistribute-static=no router-id=10.254.0.9

On the backup router I have a Default route with a cost of 200 so it is not installed (blue colored in WB). It will become active if the primary router fails or loses internet. This backup route becomes active and OSPF kicks in and all is well.

The problem is when the Primary router comes back up. It does not De-Install the route and therefore the backup remains as the internet for it's router and also the whole network.

Is there something I am missing or is this even possible? I have searched a few posts and would like to be able to do this if possible.

Thanks!
 
airtonarantes
just joined
Posts: 21
Joined: Sun Mar 21, 2010 6:22 pm

Re: OSPF Multiple Default Gateways

Tue Jan 17, 2012 11:53 pm

Can you post any image with your topology, I didn't understand just reading your question but this issue is seemed with a solution that I'm working.

[]'s

Who is online

Users browsing this forum: dawdler and 16 guests