Community discussions

MikroTik App
 
get2guy
newbie
Topic Author
Posts: 31
Joined: Fri Apr 09, 2010 8:50 pm

3 Internet sources and how to determine using OSPF or BGP

Thu Sep 15, 2011 6:45 pm

Hi all,

I currently have 3 Internet sources in my RB1100 with external IP's Source 1 - 41.211.227.1 (Routing Mark- Source1)
Source 2 - 41.211.237.1 (Routing Mark- Source2)ISP BACKUP SAT)
Source 3 - 92.62.219.1 (Routing Mark- Source3)

I wish to configure the following:

1. Configure link check to make sure if the internet source is working (per internet source)
2. Configure Automatic change beetwin source 1 and source 2 (If source 1 has droped go to source 2)

Can someone give me some details on how to configure this using OSPF or BGP or any other way?

Thanks in advanced,
Guy.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: 3 Internet sources and how to determine using OSPF or BG

Thu Sep 15, 2011 6:53 pm

I don't see how either OSPF or BGP would help you here.

OSPF is an IGP - it's used inside of an AS. An ISP building an OSPF adjacency with you is pretty much unheard of. You could use BGP, I guess - but the main purposes of BGP are a little different from what you're trying to do. You're using routing marks, so you're making manual decisions with IP policy routing. BGP makes routing decisions based on paths to the destination. You could theoretically have BGP peering sessions on all three links, and use weights to make certain paths more preferable. Once a link goes down the peer goes down, and the other route kicks in. I don't really think that's worth pursuing.

I think your best bet is to just find targets to monitor behind each link - either their immediate gateway, or something further into that link.

If you're monitoring the gateway all you need to do is set the gateway-check parameter of each route to 'ping'. The route will withdraw if the gateway stops pinging. Set the distance to the backup satellite link higher than the primary of ISP 1. Then if the primary route is withdrawn the higher distance route kicks in, this is often called a floating static (it's a static route that exists but isn't active until a different route covering the same destination is withdrawn).

If you want to monitor something behind the gateway you'd build a specific /32 route to that destination, and then build a NetWatch item that watches that destination and uses up/down scripts to disable/enable the relevant default routes.

Here's a roughly related post: http://forum.mikrotik.com/viewtopic.php?f=14&t=54881

Who is online

Users browsing this forum: megabytenet and 58 guests