Community discussions

MikroTik App
 
syadnom
Forum Veteran
Forum Veteran
Topic Author
Posts: 794
Joined: Thu Jan 27, 2011 7:29 am

BGP peer slow to come up after interface enabled

Fri Dec 07, 2018 3:10 am

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...)
 
bbs2web
Member Candidate
Member Candidate
Posts: 232
Joined: Sun Apr 22, 2012 6:25 pm
Location: Johannesburg, South Africa
Contact:

Re: BGP peer slow to come up after interface enabled

Fri Dec 07, 2018 6:10 am

Create a PPP profile which enables the peer on 'up' and disables it on 'down', then apply that profile to your VPN connection.
 
bbs2web
Member Candidate
Member Candidate
Posts: 232
Joined: Sun Apr 22, 2012 6:25 pm
Location: Johannesburg, South Africa
Contact:

Re: BGP peer slow to come up after interface enabled

Fri Dec 07, 2018 6:12 am

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.
 
syadnom
Forum Veteran
Forum Veteran
Topic Author
Posts: 794
Joined: Thu Jan 27, 2011 7:29 am

Re: BGP peer slow to come up after interface enabled

Sat Dec 08, 2018 5:52 pm

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.

Who is online

Users browsing this forum: No registered users and 12 guests