Merge pull request #49 from cjkoenig/update_quagga
[feed/routing.git] / babeld / files / babeld.config
1 package babeld
2
3 # Configuration set in this file ends up in /var/etc/babeld.conf.
4 # Babeld is told to use both /etc/babeld.conf and /var/etc/babeld.conf, so
5 # you can use one or the other, or even both at the same time. If an
6 # option is defined in both files, the version in /var/etc/babeld.conf
7 # takes precedence.
8
9 # See "man babeld" for all available options ("Global options").
10 # Important: remember to use '_' instead of '-' in option names.
11 config general
12 # option 'random_id' 'true'
13 # option 'debug' '1'
14 # option 'local_port' '33123'
15 # option 'log_file' '/var/log/babeld.log'
16 ## This seems somewhat buggy on BB. If you need only one
17 ## import-table statement, "option import_table 42" should work.
18 # list 'import_table' '42'
19 # list 'import_table' '100'
20
21 config interface
22 ## Remove this line to enable babeld on this interface
23 option 'ignore' 'true'
24 ## You can use aliases (like lan, wlan) or real names (like eth0.0).
25 ## If you use an alias, it must be already defined when babeld starts.
26 ## Otherwise, the name is taken literally and the interface can be
27 ## brought up later (useful for tunnels for instance).
28 option 'ifname' 'wlan'
29 ## You can set options, see babeld man page ("Interface configuration")
30 # option 'rxcost' '256'
31 # option 'hello_interval' '1'
32
33 config interface
34 option 'ignore' 'true'
35 ## Physical interface name
36 option 'ifname' 'tun-example'
37 # option 'max_rtt_penalty' '90'
38
39 # A config interface without "option ifname" will set default options
40 # for all interfaces. Interface-specific configuration always overrides
41 # default configuration.
42 config interface
43 # option 'enable_timestamps' 'true'
44 # option 'update_interval' '30'
45
46
47 # A filter consists of a type ('in', 'out' or 'redistribute'), an action
48 # ('allow', 'deny' or 'metric xxx') and a set of selectors ('ip', 'eq',
49 # etc.). See babeld man page ("Filtering rules") for more details.
50 # Here is a sample filter wich redistributes the default route if its
51 # protocol number is "boot", e.g. when it installed by dhcp. It is
52 # disabled by default.
53 config filter
54 option 'ignore' 'true'
55 # Type
56 option 'type' 'redistribute'
57 # Selectors: ip, eq, le, ge, neigh, id, proto, local, if
58 option 'ip' '0.0.0.0/0'
59 option 'eq' '0'
60 option 'proto' '3'
61 # Action
62 option 'action' 'metric 128'
63
64 # Notice that the 'local' selector is a boolean.
65 config filter
66 option 'ignore' 'true'
67 option 'type' 'redistribute'
68 option 'local' 'true'
69 # No action means "allow"