2010-02-19 12:33:36 +00:00
|
|
|
package babeld
|
|
|
|
|
|
|
|
config general
|
2011-02-03 17:53:16 +00:00
|
|
|
# option 'multicast_address' 'ff02:0:0:0:0:0:1:6'
|
2011-08-29 12:53:22 +00:00
|
|
|
# option 'port' '6696'
|
2010-03-12 17:29:24 +00:00
|
|
|
# option 'state_file' '/var/lib/babel-state'
|
|
|
|
# option 'hello_interval' '4'
|
|
|
|
# option 'wired_hello_interval' '20'
|
2010-02-19 12:33:36 +00:00
|
|
|
# Enable detection of idle networks. This functonality is
|
|
|
|
# experimental, don't use it unless you know what you are doing.
|
|
|
|
## option 'idle_hello_interval' '0'
|
2011-08-29 12:53:22 +00:00
|
|
|
# option 'diversity' '0,128'
|
2010-03-12 17:29:24 +00:00
|
|
|
# option 'kernel_priority' '0'
|
2010-02-19 12:33:36 +00:00
|
|
|
# Do not use this option unless you know what you are doing, as it can
|
|
|
|
# cause persistent route flapping.
|
|
|
|
## option 'duplication_priority' '0'
|
2010-03-12 17:29:24 +00:00
|
|
|
# option 'carrier_sense' 'false'
|
|
|
|
# option 'assume_wireless' 'false'
|
|
|
|
# option 'no_split_horizon' 'false'
|
|
|
|
# option 'parasitic' 'false'
|
|
|
|
# option 'debug' '0'
|
2010-02-19 12:33:36 +00:00
|
|
|
# Listen for connections from a front-end, e.g. on port 33123.
|
|
|
|
## option 'local_server' '33123'
|
2011-08-08 13:23:37 +00:00
|
|
|
# Keep unfeasible routes
|
|
|
|
## option 'keep_unfeasible' 'false'
|
2010-02-19 12:33:36 +00:00
|
|
|
# Use the given kernel routing table for routes inserted by babeld.
|
|
|
|
## option 'export_table' '0'
|
|
|
|
# Export routes from the given kernel routing table.
|
|
|
|
## option 'import_table' '0'
|
|
|
|
# The configuration file is not necessary since you can do everything
|
|
|
|
# from this file.
|
2010-03-12 17:29:24 +00:00
|
|
|
# option 'conf_file' '/etc/babeld.conf'
|
|
|
|
# option 'log_file' '/var/log/babeld.log'
|
2010-02-19 12:33:36 +00:00
|
|
|
|
|
|
|
# You can use aliases (like lan, wlan) or real names (like eth0.0).
|
|
|
|
# If you use an alias, it must be already defined when babeld starts.
|
|
|
|
# Otherwise, the name is taken literally and the interface can be
|
|
|
|
# brought up later (useful for tunnels for instance).
|
|
|
|
config interface wlan
|
2010-03-12 17:29:24 +00:00
|
|
|
# Remove this line to enable babeld on this interface
|
2010-02-19 12:33:36 +00:00
|
|
|
option 'ignore' 'true'
|
2010-03-12 17:29:24 +00:00
|
|
|
# option 'wired' 'auto'
|
|
|
|
# option 'link_quality' 'auto'
|
|
|
|
# option 'split_horizon' 'auto'
|
2010-02-19 12:33:36 +00:00
|
|
|
# The default is 96 for wired interfaces, and 256 for wireless ones
|
|
|
|
## option 'rxcost' '256'
|
2011-08-08 13:23:37 +00:00
|
|
|
# The default is specified with the -h and -H command-line flags.
|
2010-02-19 12:33:36 +00:00
|
|
|
## option 'hello_interval' '4'
|
2011-08-08 13:23:37 +00:00
|
|
|
# This can be set to a fairly large value, unless significant
|
2010-02-19 12:33:36 +00:00
|
|
|
# packet loss is expected. The default is four times the hello
|
|
|
|
# interval.
|
|
|
|
## option 'update_interval' '16'
|
|
|
|
|
|
|
|
config interface lan
|
|
|
|
option 'ignore' 'true'
|
|
|
|
|
|
|
|
# A filter consists in a type ('in', 'out' or 'redistribute'), an action
|
|
|
|
# ('allow', 'deny' or 'metric xxx') and a set of selectors ('ip', 'eq',
|
|
|
|
# etc.). See /etc/babeld.conf for more details.
|
|
|
|
# Here is a sample filter wich redistributes the default route if its
|
|
|
|
# protocol number is "boot", e.g. when it installed by dhcp. It is
|
|
|
|
# disabled by default.
|
|
|
|
config filter
|
|
|
|
option 'ignore' 'true'
|
|
|
|
# Type
|
|
|
|
option 'type' 'redistribute'
|
|
|
|
# Selectors: ip, eq, le, ge, neigh, id, proto, local, if
|
|
|
|
option 'ip' '0.0.0.0/0'
|
|
|
|
option 'le' '0'
|
|
|
|
option 'proto' '3'
|
|
|
|
# Action
|
|
|
|
option 'action' 'metric 128'
|
|
|
|
|