Cleaning up a bit
This commit is contained in:
parent
c8b8192713
commit
c605e4723a
12
bgp4.conf
12
bgp4.conf
|
@ -1,22 +1,18 @@
|
|||
template bgp dnpeers {
|
||||
local as OWNAS;
|
||||
table T_BGP4;
|
||||
table T_BGP;
|
||||
|
||||
# metric is the number of hops between us and the peer
|
||||
path metric 1;
|
||||
|
||||
# this line allows debugging filter rules
|
||||
# filtered routes can be looked up in birdc using the "show route filtered" command
|
||||
import keep filtered on;
|
||||
|
||||
import all;
|
||||
export all;
|
||||
#source address 172.20.170.192;
|
||||
};
|
||||
|
||||
template bgp iBGP_Peer {
|
||||
local as OWNAS;
|
||||
igp table T_OSPF4;
|
||||
hold time 15;
|
||||
igp table T_OSPF;
|
||||
path metric on;
|
||||
import keep filtered;
|
||||
# import where iBGP_import_peer_policy();
|
||||
|
@ -40,7 +36,7 @@ roa table dn42_roa {
|
|||
|
||||
protocol pipe {
|
||||
table master;
|
||||
peer table T_BGP4;
|
||||
peer table T_BGP;
|
||||
import filter {
|
||||
if (roa_check(dn42_roa, net, bgp_path.last) = ROA_INVALID) then {
|
||||
print "[dn42] ROA check failed for ", net, " ASN ", bgp_path.last;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
template bgp dnpeers {
|
||||
local as OWNAS;
|
||||
table T_BGP6;
|
||||
table T_BGP;
|
||||
|
||||
# metric is the number of hops between us and the peer
|
||||
path metric 1;
|
||||
|
@ -11,12 +11,12 @@ template bgp dnpeers {
|
|||
|
||||
import all;
|
||||
export all;
|
||||
#source address 172.20.170.192;
|
||||
};
|
||||
|
||||
template bgp iBGP_Peer {
|
||||
local as OWNAS;
|
||||
igp table T_OSPF6;
|
||||
hold time 15;
|
||||
igp table T_OSPF;
|
||||
path metric on;
|
||||
import keep filtered;
|
||||
# import where iBGP_import_peer_policy();
|
||||
|
@ -40,7 +40,7 @@ roa table dn42_roa6 {
|
|||
|
||||
protocol pipe {
|
||||
table master;
|
||||
peer table T_BGP6;
|
||||
peer table T_BGP;
|
||||
import filter {
|
||||
|
||||
if (roa_check(dn42_roa6, net, bgp_path.last) = ROA_INVALID) then {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
|
||||
table T_BGP4;
|
||||
table T_OSPF4;
|
||||
table T_BGP;
|
||||
table T_OSPF;
|
||||
|
||||
protocol device {
|
||||
scan time 10;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
protocol ospf {
|
||||
table T_OSPF4;
|
||||
table T_OSPF;
|
||||
import all;
|
||||
export all;
|
||||
|
||||
|
@ -20,7 +20,7 @@ filter filter_OSPF {
|
|||
};
|
||||
|
||||
protocol pipe {
|
||||
peer table T_OSPF4;
|
||||
peer table T_OSPF;
|
||||
table master;
|
||||
import filter filter_OSPF;
|
||||
export none;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
protocol ospf O_OSPF {
|
||||
table T_OSPF6;
|
||||
table T_OSPF;
|
||||
import all;
|
||||
export all;
|
||||
|
||||
|
@ -13,15 +13,14 @@ protocol ospf O_OSPF {
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
filter filter_OSPF6 {
|
||||
filter filter_OSPF {
|
||||
ospf_metric1 = 1000;
|
||||
if is_self_net() then accept;
|
||||
else reject;
|
||||
};
|
||||
|
||||
protocol pipe {
|
||||
peer table T_OSPF6;
|
||||
peer table T_OSPF;
|
||||
table master;
|
||||
import filter filter_OSPF6;
|
||||
export none;
|
||||
|
|
Loading…
Reference in a new issue