-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmain_hall.conf
executable file
·66 lines (57 loc) · 1.35 KB
/
main_hall.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#########################################################
# OSPF configuration #
#########################################################
router id 255.255.255.[[id]];
# Informations about kernel routes
protocol kernel {
learn;
scan time 20;
export all;
}
protocol device {
scan time 10;
}
# Add the loopback interface
protocol static static_loopback {
route [[loopback]]/128 reject;
}
# Define what to export
filter export_OSPF {
if ( source = RTS_INHERIT ) then {
# advertise routes from kernel
accept;
}
else if (net = ::/0 ) then {
# redistribute default route
accept;
}
else if( net ~ [fd00:200:3::/48+] ) then {
# redistribute route from group 3
accept;
}
else if(proto = "static_loopback") then {
# advertise loopback
accept;
}
reject;
}
# General protocol informations
protocol ospf {
preference 10; # low preference, to pick BGP as first choice
export filter export_OSPF;
area 0.0.0.0 {
interface "[[node]]-eth1" {
hello 1;
dead 3;
cost 11; # To add symmetry
};
interface "[[node]]-eth*" {
hello 1;
dead 3;
};
interface "*lan*" {
# LANs are stub
stub;
};
};
}