Page 1 of 1

2 bgp peer auto failover how to?

Posted: Tue Dec 12, 2006 6:07 am
by hajid
is there any one implemented auto failover with 2 bgp peer. would you share with me. if 1 bgp peer down so the network will advertise to other bgp peer automaticly.

Posted: Tue Dec 12, 2006 11:04 am
by tneumann
That is not the way BGP is supposed to work. You should always advertise your network to both peers (and learn routes from both), and if you want to prefer one peer over do other when both are online then you can play tricks with AS PATH length, local preference and MED.
There is no active/standy concept as such in BGP.


Posted: Tue Dec 12, 2006 11:14 am
by valens
You can try to advertise different subnet size to each peer.

For example (your IP are - or /23):

Peer A for
Peer B for

You can advertise to :

Peer A:

Peer B:

So if you have peer problem with Peer A, still work through the other peer, as it's also advertise as and vice versa.