Reconfiguring problem while having a lot of static routes
Vasily Oleynikov
oleynikov_v at ufanet.ru
Mon Aug 26 09:30:04 CEST 2019
Hello
I have a bird 1.6.3 installation where is over 500k static routes. From
some moment service reconfiguring occupies significant time (over 20
minutes).
Is there some method to reduce time needed to reconfigure? My config is
below
log syslog all;
router id X.X.X.X;
filter BGW_WAN_import {
if net ~ [0.0.0.0/0] then accept;
reject;
}
filter BGW_LAN_import {
reject;
}
filter BGW_LAN_export {
if dest = RTD_UNREACHABLE then reject;
accept;
}
filter DROP_STATIC {
if dest = RTD_BLACKHOLE then {
bgp_community.add((65535, 65282));
bgp_community.add((X, 666));
accept;
}
if source = RTS_STATIC then reject;
if source = RTS_BGP then accept;
reject;
}
protocol bgp BGW1_WAN {
local as 65511;
neighbor Y.Y.Y.X as X;
import filter BGW_WAN_import;
export filter DROP_STATIC;
}
protocol bgp BGW0_WAN {
local as 65511;
neighbor Y.Y.Y.Z as X;
import filter BGW_WAN_import;
export filter DROP_STATIC;
}
protocol device {
scan time 10;
}
protocol kernel {
scan time 10;
export filter DROP_STATIC;
}
protocol static {
include "/opt/etc/bird/static_null.conf";
}
in /opt/etc/bird/static_null.conf there is routes like this:
route 13.59.179.106/32 drop;
WBR, Vasily
More information about the Bird-users
mailing list