]>
Commit | Line | Data |
---|---|---|
ca3d562b PM |
1 | /* |
2 | * This is an example configuration file. | |
3 | */ | |
4 | ||
5 | # Yet another comment | |
6 | ||
23b1539b | 7 | router id 62.168.0.1; |
ca3d562b | 8 | |
23b1539b | 9 | define xyzzy = 120+10; |
ca3d562b | 10 | |
ca3d562b | 11 | protocol rip MyRIP_test { |
23b1539b PM |
12 | debug all; |
13 | port 1520; | |
9b47eb85 PM |
14 | period 7; |
15 | garbagetime 60; | |
77f37ae0 | 16 | |
f7d534cf | 17 | interface "*" { mode broadcast; }; |
bce8a34b | 18 | honour neighbour; |
ba446670 PM |
19 | # passwords { password "ahoj" from 0 to 10; |
20 | # password "nazdar" from 10; | |
21 | # } | |
7e1f9971 | 22 | authentication none; |
9b47eb85 PM |
23 | import filter { print "importing"; accept; }; |
24 | export filter { print "exporting"; accept; }; | |
ca3d562b | 25 | } |
ca3d562b PM |
26 | |
27 | protocol device { | |
23b1539b PM |
28 | # disabled; |
29 | # interface "eth*", "ppp*"; | |
ca3d562b PM |
30 | } |
31 | ||
9b47eb85 PM |
32 | protocol direct { |
33 | } | |
34 | ||
35 | protocol kernel { | |
36 | disabled; | |
ca3d562b PM |
37 | # learn; # Learn all routes from the kernel |
38 | # scan time 10; # Scan kernel tables every 10 seconds | |
9b47eb85 | 39 | } |
ca3d562b PM |
40 | |
41 | protocol static { | |
23b1539b | 42 | # disabled; |
77f37ae0 PM |
43 | |
44 | import filter { print "ahoj"; | |
45 | rip_metric = 1; | |
46 | print rip_metric; | |
47 | rip_metric = rip_metric + 5; | |
48 | print rip_metric; | |
49 | bgp_community = - empty - ; | |
50 | print "nazdar"; | |
51 | bgp_community = add(bgp_community, (1,2)); | |
52 | print "cau"; | |
53 | bgp_community = add(bgp_community, (2,3)); | |
54 | bgp_community.add((4,5)); | |
55 | print "community = ", bgp_community; | |
56 | bgp_community.delete((2,3)); | |
57 | print "community = ", bgp_community; | |
58 | bgp_community.empty; | |
59 | print "community = ", bgp_community; | |
60 | print "done"; | |
61 | quitbird; | |
62 | }; | |
63 | ||
9b47eb85 | 64 | route 0.0.0.0/0 via 195.113.31.113; |
23b1539b | 65 | route 62.168.0.0/25 reject; |
9b47eb85 | 66 | route 1.2.3.4/32 via 195.113.31.124; |
23b1539b PM |
67 | # route 10.0.0.0/8 reject; |
68 | # route 10.1.1.0:255.255.255.0 via 62.168.0.3; | |
69 | # route 10.1.2.0:255.255.255.0 via 62.168.0.3; | |
70 | # route 10.1.3.0:255.255.255.0 via 62.168.0.4; | |
71 | # route 10.2.0.0/24 via "arc0"; | |
febe5263 | 72 | export all; |
ca3d562b | 73 | } |