Remove some commented-out lines
This commit is contained in:
parent
d447df80a6
commit
efb3c3506d
13
bgp.conf
13
bgp.conf
|
@ -1,18 +1,21 @@
|
||||||
template bgp dnpeers {
|
template bgp dnpeers {
|
||||||
local as OWNAS;
|
local as OWNAS;
|
||||||
|
table T_BGP4;
|
||||||
|
|
||||||
# metric is the number of hops between us and the peer
|
# metric is the number of hops between us and the peer
|
||||||
path metric 1;
|
path metric 1;
|
||||||
# this lines allows debugging filter rules
|
|
||||||
# filtered routes can be looked up in birdc using the "show route filtered" command
|
|
||||||
|
|
||||||
table T_BGP4;
|
# 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;
|
import all;
|
||||||
export all;
|
export all;
|
||||||
import limit 1000 action block;
|
|
||||||
#source address 172.20.170.192;
|
#source address 172.20.170.192;
|
||||||
};
|
};
|
||||||
|
|
||||||
protocol pipe {
|
protocol pipe {
|
||||||
|
table master;
|
||||||
peer table T_BGP4;
|
peer table T_BGP4;
|
||||||
import filter {
|
import filter {
|
||||||
# accept every subnet, except our own advertised subnet
|
# accept every subnet, except our own advertised subnet
|
||||||
|
@ -22,6 +25,7 @@ protocol pipe {
|
||||||
}
|
}
|
||||||
reject;
|
reject;
|
||||||
};
|
};
|
||||||
|
# import limit 1000 action block;
|
||||||
|
|
||||||
export filter {
|
export filter {
|
||||||
# here we export the whole net
|
# here we export the whole net
|
||||||
|
@ -31,4 +35,3 @@ protocol pipe {
|
||||||
reject;
|
reject;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
|
||||||
table T_BGP4;
|
table T_BGP4;
|
||||||
table T_OSPF;
|
table T_OSPF;
|
||||||
|
|
||||||
|
@ -6,7 +7,6 @@ protocol device {
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol static {
|
protocol static {
|
||||||
# route 172.20.0.0/14 via 172.20.170.192;
|
|
||||||
route 172.20.170.192/27 reject;
|
route 172.20.170.192/27 reject;
|
||||||
import all;
|
import all;
|
||||||
export none;
|
export none;
|
||||||
|
@ -24,8 +24,8 @@ protocol kernel {
|
||||||
scan time 20;
|
scan time 20;
|
||||||
metric 64; # Use explicit kernel route metric to avoid collisions
|
metric 64; # Use explicit kernel route metric to avoid collisions
|
||||||
# with non-BIRD routes in the kernel routing table
|
# with non-BIRD routes in the kernel routing table
|
||||||
|
import keep filtered;
|
||||||
import none;
|
import none;
|
||||||
#export all; # Actually insert routes into the kernel routing table
|
|
||||||
export filter {
|
export filter {
|
||||||
if source = RTS_STATIC then reject;
|
if source = RTS_STATIC then reject;
|
||||||
krt_prefsrc = OWNIP;
|
krt_prefsrc = OWNIP;
|
||||||
|
|
Loading…
Reference in a new issue