Community discussions

MikroTik App
 
User avatar
fcucci
newbie
Topic Author
Posts: 36
Joined: Mon Feb 13, 2012 11:31 am
Location: Italy

BGP Peer without default route

Mon Feb 01, 2021 9:04 pm

Hello,
we have 2 BGP Peers and we are adding another one that cannot send us a default route via BGP; is there a way to enable a static default route only when BGP session is UP ? In other words can we have a default route only when that peer is UP like if him send it us ?

Thank you in advance.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP Peer without default route

Mon Feb 01, 2021 9:35 pm

It is possible with a script that checks BGP peers status and disables/enables default route accordingly.
 
User avatar
20061985
just joined
Posts: 4
Joined: Thu Feb 27, 2020 11:04 pm
Location: Moldova
Contact:

Re: BGP Peer without default route

Fri Feb 05, 2021 10:31 pm

Hi.
1. Netwatch the peer.
2. Add the default route by checking the gateway with ping.
3. Use a recursive route to check the gateway for the default route.

Who is online

Users browsing this forum: No registered users and 17 guests