BGP peer slow to come up after interface enabled

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…)

Create a PPP profile which enables the peer on ‘up’ and disables it on ‘down’, then apply that profile to your VPN connection.

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.

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.