Community discussions

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

BGP Peer without default route

Mon Feb 01, 2021 9:04 pm

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.
Francesco Cucci
User avatar
MikroTik Support
MikroTik Support
Posts: 6195
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia

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
just joined
Posts: 1
Joined: Thu Feb 27, 2020 11:04 pm
Location: Moldova

Re: BGP Peer without default route

Fri Feb 05, 2021 10:31 pm

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 12 guests