Page 1 of 1

BGP Peer without default route

Posted: Mon Feb 01, 2021 9:04 pm
by fcucci
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.

Re: BGP Peer without default route

Posted: Mon Feb 01, 2021 9:35 pm
by mrz
It is possible with a script that checks BGP peers status and disables/enables default route accordingly.

Re: BGP Peer without default route

Posted: Fri Feb 05, 2021 10:31 pm
by 20061985
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.