Move ospf config to its own file

This commit is contained in:
graffen 2018-09-08 11:16:50 +00:00
parent e7892298e2
commit 75295d9eca
2 changed files with 23 additions and 18 deletions

View File

@ -3,6 +3,7 @@ protocol device {
}
protocol static {
route 172.20.0.0/14 via 172.20.170.192;
route 172.20.170.192/28 reject;
import all;
export none;
@ -28,24 +29,7 @@ protocol kernel {
};
}
filter filter_OSPF {
if net = 172.20.170.192/28 then accept;
else reject;
};
protocol ospf {
import all;
export all;
area 0 {
include "/etc/bird/interfaces/*";
interface "lo" {
stub;
};
};
}
include "/etc/bird/ospf.conf";
template bgp dnpeers {
local as OWNAS;

21
ospf.conf Normal file
View File

@ -0,0 +1,21 @@
filter filter_OSPF {
ospf_metric1 = 1000;
if source = RTS_STATIC then accept;
else reject;
};
protocol ospf {
import all;
export filter filter_OSPF;
area 0 {
interface "wg-ospf-*" {
# authentication cryptographic; password "R5fg2d66hTuP";
};
interface "lo" {
stub;
};
};
}