Community discussions

MikroTik App
 
name29
newbie
Topic Author
Posts: 30
Joined: Sun Jun 20, 2010 10:25 pm

BGP Backup

Sun Jun 20, 2010 10:36 pm

Hi!

I have a problem.
I'm an AS internet provider and i have my public IPs.
I have two internet "backbone" and i can use my public IPs on these two.
But i have to use the first's backbone only for a range of my IPs ( from 1 to 100 ) and use the second's for the other IP ( from 101 to 254 ).
I have a routed network with ospf for "intra-routing" and BGP for routing with the other AS.
I have a router that divide my network from the two backbone and i use policy routing for choose the correct. I have some other router from this gateway and the other provider.
Now i have to make an automatic system for route to the available backbone if one of this go down.


Thank's
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8393
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: BGP Backup

Tue Jun 22, 2010 8:07 pm

But i have to use the first's backbone only for a range of my IPs ( from 1 to 100 ) and use the second's for the other IP ( from 101 to 254 ).
so, does that setup work, or you just use policy routing for upload traffic, but download comes via one of your ISPs?..

what's your current config?
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
name29
newbie
Topic Author
Posts: 30
Joined: Sun Jun 20, 2010 10:25 pm

Re: BGP Backup

Tue Jun 22, 2010 11:09 pm

I try to explane :-D

My network use OSPF

MY_NET ( OSPF ) <-> CORE ROUTER ( OSPF ) <-> ROUTER1(OSPF) <-> BGP1_ROUTER ( OSPF & BGP )
MY_NET ( OSPF ) <-> CORE ROUTER ( OSPF ) <-> ROUTER2(OSPF) <-> BGP2_ROUTER ( OSPF & BGP )



So i like that my ip from .1 to .100 are annunciated on internet from the BGP1_ROUTER and my ip from .101 to .254 on the BGP2_ROUTER. This for upload and for download.But if the BGP1_ROUTER is unreacheble (or BGP2_ROUTER) i like that the first range ( .1 to .100 ) are annunciated from the BGP2_ROUTER.

(BGP1_ROUTER and BGP2_ROUTER are connected to internet by two different provider)


(Sorry for my bad english :-D )
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8393
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: BGP Backup

Tue Jun 22, 2010 11:53 pm

you should use routing filters to announce backup routes with some prepend - so they will be used only when main route is off
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
name29
newbie
Topic Author
Posts: 30
Joined: Sun Jun 20, 2010 10:25 pm

Re: BGP Backup

Wed Jun 23, 2010 10:51 am

you should use routing filters to announce backup routes with some prepend - so they will be used only when main route is off

can you explane my how to made it ?

I have to use a script to disable the routing filter ?
 
User avatar
MichelePietravalle
Trainer
Trainer
Posts: 99
Joined: Sun Apr 19, 2009 9:03 pm

Re: BGP Backup

Wed Jun 23, 2010 12:27 pm

do you have only a /24? in this case is difficult to announce only half to one ISP and the other half on the other, becouse prefix< 24 are filtered and dropped!!

if you have a /23 or >, you can split the announcement and announce the full /23 on both isp and a /24 for ISP; in this way the /24 is smaller and have precedence; if the isp will fall down, the /24 will not be announced and the whole /23 take priority!

this is the simple way!

for outgoing traffic you can use the route marking!

Michele P
 
name29
newbie
Topic Author
Posts: 30
Joined: Sun Jun 20, 2010 10:25 pm

Re: BGP Backup

Wed Jun 23, 2010 12:38 pm

do you have only a /24? in this case is difficult to announce only half to one ISP and the other half on the other, becouse prefix< 24 are filtered and dropped!!

if you have a /23 or >, you can split the announcement and announce the full /23 on both isp and a /24 for ISP; in this way the /24 is smaller and have precedence; if the isp will fall down, the /24 will not be announced and the whole /23 take priority!

this is the simple way!

for outgoing traffic you can use the route marking!

Michele P
But this on the core router or on the two BGP routers?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8393
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: BGP Backup

Thu Dec 12, 2013 11:43 am

on your BGP routers (BTW, why two?.. one is enough...)

just decide exactly what you want to do


Last bumped by name29 on Thu Dec 12, 2013 11:43 am.
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.

Who is online

Users browsing this forum: No registered users and 12 guests