Page 1 of 1

BGP peer slow to come up after interface enabled

Posted: Fri Dec 07, 2018 3:10 am
by syadnom
I'm using BGP to handle some VPN routing because it updates the routing table quickly (WAY better than OSPF, and simpler).

The problem I'm having is that if a tunnel interfaces goes down and then comes back up, it takes BGP about 30 seconds to try to peer again. If I disable the peer and enable it's within about 1 second.

How can I configure the peer to try to establish a connection faster than 30 seconds? (ideally without a script...)

Re: BGP peer slow to come up after interface enabled

Posted: Fri Dec 07, 2018 6:10 am
by bbs2web
Create a PPP profile which enables the peer on 'up' and disables it on 'down', then apply that profile to your VPN connection.

Re: BGP peer slow to come up after interface enabled

Posted: Fri Dec 07, 2018 6:12 am
by bbs2web
You could also just adjust the OSPF interfaces to set hello as 1 second, dead timer as 10 seconds and then set the type as point-to-point.

Re: BGP peer slow to come up after interface enabled

Posted: Sat Dec 08, 2018 5:52 pm
by syadnom
Thanks, I completely spaced out the ppp up scripts.

added this to the profile:
/routing bgp peer set disabled=yes [find where established!=yes]
/routing bgp peer set disabled=no [find where disabled=yes]
That cured it.