]> git.ipfire.org Git - thirdparty/bird.git/blob - bird.conf
Separated bird.conf and bird.conf for testing filters.
[thirdparty/bird.git] / bird.conf
1 /*
2 * This is an example configuration file.
3 */
4
5 # Yet another comment
6
7 router id 62.168.0.1;
8
9 define xyzzy = 120+10;
10
11 filter testf
12 int j;
13 {
14 print "Ok, accepting";
15 accept;
16 print "Heya, filtering route to " rta.net.ip " prefixlen " rta.net.len;
17 print "This route was from " rta.from;
18 j = 7;
19 j = 17;
20 if rta.rip_metric > 15 then
21 print "RIP Metric is more than infinity";
22
23 accept;
24 }
25
26 protocol rip MyRIP_test {
27 preference xyzzy;
28 debug all;
29 port 1520;
30 period 5;
31 garbagetime 30;
32 interface "*" { mode broadcast; };
33 export filter testf;
34 honour neighbour;
35 passwords { password "ahoj" from 0 to 10;
36 password "nazdar" from 10;
37 }
38 authentication none;
39 import all;
40 }
41
42 protocol device {
43 # disabled;
44 # interface "eth*", "ppp*";
45 }
46
47 #protocol kernel {
48 # disabled;
49 # learn; # Learn all routes from the kernel
50 # scan time 10; # Scan kernel tables every 10 seconds
51 #}
52
53 protocol static {
54 # disabled;
55 route 0.0.0.0/0 via 62.168.0.13;
56 route 62.168.0.0/25 reject;
57 route 1.2.3.4/32 via 1.2.3.5;
58 # route 10.0.0.0/8 reject;
59 # route 10.1.1.0:255.255.255.0 via 62.168.0.3;
60 # route 10.1.2.0:255.255.255.0 via 62.168.0.3;
61 # route 10.1.3.0:255.255.255.0 via 62.168.0.4;
62 # route 10.2.0.0/24 via "arc0";
63 export all;
64 }