]> git.ipfire.org Git - thirdparty/bird.git/blob - bird.conf
Tried to change garbagetime -> garbage time to be more consistent.
[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 protocol device {
12 # disabled;
13 # interface "eth*", "ppp*";
14 }
15
16 protocol direct {
17 }
18
19 protocol kernel {
20 disabled;
21 # learn; # Learn all routes from the kernel
22 # scan time 10; # Scan kernel tables every 10 seconds
23 }
24
25 protocol static {
26 # disabled;
27
28 import filter { print "ahoj";
29 print source;
30 if source = RTS_STATIC then {
31 print "It is from static";
32 }
33 print from;
34 from = 1.2.3.4;
35 print from;
36 print scope;
37 scope = SCOPE_HOST;
38 print scope;
39
40 preference = 15;
41 print preference;
42 preference = 29;
43 print preference;
44 rip_metric = 1;
45 print rip_metric;
46 rip_metric = rip_metric + 5;
47 print rip_metric;
48 # bgp_community = - empty - ;
49 # print "nazdar";
50 # bgp_community = add(bgp_community, (1,2));
51 # print "cau";
52 # bgp_community = add(bgp_community, (2,3));
53 # bgp_community.add((4,5));
54 # print "community = ", bgp_community;
55 # bgp_community.delete((2,3));
56 # print "community = ", bgp_community;
57 # bgp_community.empty;
58 # print "community = ", bgp_community;
59 print "done";
60 accept;
61 };
62
63 route 0.0.0.0/0 via 195.113.31.113;
64 route 62.168.0.0/25 reject;
65 route 1.2.3.4/32 via 195.113.31.124;
66 # route 10.0.0.0/8 reject;
67 # route 10.1.1.0:255.255.255.0 via 62.168.0.3;
68 # route 10.1.2.0:255.255.255.0 via 62.168.0.3;
69 # route 10.1.3.0:255.255.255.0 via 62.168.0.4;
70 # route 10.2.0.0/24 via "arc0";
71 export all;
72 }