ix-bird-config/bird6.conf

92 lines
1.9 KiB
Plaintext
Raw Normal View History

table T_BGP6;
2018-09-15 18:52:01 +00:00
table T_OSPF6;
2018-09-08 08:23:51 +00:00
protocol device {
scan time 10;
}
# local configuration
######################
include "/etc/bird/local6.conf";
# filter helpers
#################
#include "/etc/bird/filter6.conf";
include "/etc/bird/community_filters.conf";
2018-09-08 08:23:51 +00:00
protocol kernel {
metric 64; # Use explicit kernel route metric to avoid collisions
# with non-BIRD routes in the kernel routing table
scan time 20;
import none;
# export all; # Actually insert routes into the kernel routing table
export filter {
if source = RTS_STATIC then reject;
krt_prefsrc = OWNIP;
accept;
};
}
# static routes
################
protocol static {
route fd62:77fb:94bf::/48 reject;
import all;
export none;
}
template bgp dnpeers {
table T_BGP6;
2018-09-08 08:23:51 +00:00
local as 4242423934;
path metric 1;
import all;
export all;
2018-09-15 18:52:01 +00:00
}
template bgp iBGP_Peer {
local as OWNAS;
igp table T_OSPF6;
path metric on;
import keep filtered;
# import where iBGP_import_peer_policy();
# export where iBGP_export_peer_policy();
import all;
export all;
source address OWNIP;
next hop self;
}
template pipe iBGP_Pipe {
# table name will come from peer definition
peer table master;
import all;
export all;
2018-09-08 08:23:51 +00:00
}
protocol pipe {
peer table T_BGP6;
import filter {
# accept every subnet, except our own advertised subnet
# filtering is important, because some guys try to advertise routes like 0.0.0$
if is_valid_network() && !is_self_net() then {
accept;
}
reject;
};
export filter {
# here we export the whole net
if is_valid_network() then {
accept;
}
reject;
};
};
2018-09-15 18:52:01 +00:00
include "/etc/bird/ospf6.conf";
2018-09-08 08:23:51 +00:00
include "/etc/bird/peers6/*";