F
F
facha2013-03-21 16:08:07
Computer networks
facha, 2013-03-21 16:08:07

BGP. How to set up failover?

Hello.
There is a BGP router. Announces its network to two peers (2 different providers). I want to make one provider the main one, the second - the backup one. That is, the router should start announcing the network to the backup provider only if the session with the main one is broken. Is it feasible? If yes, tell me how.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
miragenn, 2013-03-24
@facha

You need to use more specific routes. Divide the network in half, but not less than / 24, for example / 21 into two / 22 each.
Then announce two /22 to the main provider, and a common /21 to the backup. Since /22 is less than /21, traffic will only go through the main one, as long as /22 is visible to the world through it. Well, that's all route: do not forget to register in RIPE.
Outgoing according to local-preference as mentioned above.

J
JDima, 2013-03-21
@JDima

This is usually implemented using AS prepend. Those. announce the same to the reserve one, prepending your AS a couple of times. This way the fireover will happen faster.

R
rdntw, 2013-03-22
@rdntw

I haven't worked much with BGP yet, but isn't AS Prepend for incoming traffic?

I
iscsi, 2013-03-22
@iscsi

This is done through local-preference.
For example, Cisco IOS:

router bgp 33333
 neighbor 1.1.1.1 route-map localpref120 in
 neighbor 1.1.1.1 remote-as 11111
 neighbor 2.2.2.2 remote-as 22222

route-map localpref120 permit 10
 set local preference 120

If the provider with AS 11111 "falls", then the traffic will go through the provider with AS 22222.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question