Move ospf config to its own file
This commit is contained in:
parent
e7892298e2
commit
75295d9eca
20
bird.conf
20
bird.conf
|
@ -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
21
ospf.conf
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue