Community discussions

MikroTik App
 
ste
Forum Guru
Forum Guru
Topic Author
Posts: 1924
Joined: Sun Feb 13, 2005 11:21 pm

BGP Failover script

Thu May 03, 2007 5:40 pm

Hi,

I've a BGP box hosted by one of my uplinks.
I want that this box stops announcing my Network when
it looses connection to my core network.
So if all IBGP Sessions are down the eBGP session should
go down, too.

Anyone scripted this already? Can this be done/Is ist possible to get BGP
states in Script?

Stefan
 
sten
Forum Veteran
Forum Veteran
Posts: 919
Joined: Tue Jun 01, 2004 12:10 pm

Sun May 06, 2007 5:43 am

if using routing-test;

:foreach p in=[ / routing bgp peer find ] do={ :put [ / routing bgp peer get $p state ] }

but is it really needed to announce that network using a network statement? what if you just announced the entire network from the iBGP's or use "aggregate" ?

Who is online

Users browsing this forum: No registered users and 21 guests