2 # olsr.org OLSR daemon config file
4 # Lines starting with a # are discarded
6 # This file was shipped with olsrd 0.X.X
9 # This file is an example of a typical
10 # configuration for a mostly static
11 # network(regarding mobility) using
15 # If set to 0 the daemon runs in the background
19 # IP version to use (4 or 6)
23 # FIBMetric ("flat", "correct", or "approx")
27 # Clear the screen each time the internal state changes
32 # syntax: netaddr netmask
33 # Example Internet gateway:
40 # more entries can be added:
41 # 192.168.1.0 255.255.255.0
45 # syntax: netaddr prefix
46 # Example Internet gateway:
51 # more entries can be added:
56 # Should olsrd keep on running even if there are
57 # no interfaces available? This is a good idea
58 # for a PCMCIA/USB hotswap environment.
63 # TOS(type of service) value for
64 # the IP header of control traffic.
65 # If not set it will default to 16
69 # The fixed willingness to use(0-7)
70 # If not set willingness will be calculated
71 # dynamically based on battery/power status
72 # if such information is available
76 # Allow processes like the GUI front-end
77 # to connect to the daemon.
81 # Determines how many simultaneously
82 # IPC connections that will be allowed
83 # Setting this to 0 disables IPC
87 # By default only 127.0.0.1 is allowed
88 # to connect. Here allowed hosts can
94 # You can also specify entire net-ranges
95 # that are allowed to connect. Multiple
98 #Net 192.168.1.0 255.255.255.0
101 # Link quality aging factor
102 # Defaults to 0.1, smaller values mean faster reaction to changing links
104 #LinkQualityAging 0.1
106 # Link quality algorithm
107 # Defaults to "etx_fpm" for fixpoint based etx algorithm
109 LinkQualityAlgorithm "etx_fpm"
111 # Polling rate in seconds(float).
112 # Default value 0.05 sec
116 # Interval to poll network interfaces for configuration
117 # changes. Defaults to 2.5 seconds
122 # Specifies how much neighbor info should
123 # be sent in TC messages
124 # Possible values are:
125 # 0 - only send MPR selectors
126 # 1 - send MPR selectors and MPRs
127 # 2 - send all neighbors
136 # Specifies how many MPRs a node should
137 # try select to reach every 2 hop neighbor
139 # Can be set to any integer >0
146 # Olsrd plugins to load
147 # This must be the absolute path to the file
148 # or the loader will use the following scheme:
149 # - Try the paths in the LD_LIBRARY_PATH
150 # environment variable.
151 # - The list of libraries cached in /etc/ld.so.cache
152 # - /lib, followed by /usr/lib
154 # Example plugin entries with parameters:
156 #LoadPlugin "olsrd_arprefresh.so.0.1"
160 #LoadPlugin "olsrd_dyn_gw_plain.so.0.4"
164 #LoadPlugin "olsrd_nameservice.so.0.3"
166 # PlParam "name" "your-pc-hostname"
167 # PlParam "hosts-file" "/var/run/hosts"
168 # PlParam "suffix" ".olsr"
169 # PlParam "interval" "180"
170 # PlParam "timeout" "3600"
171 # PlParam "latlon-file" "/var/run/latlon.js"
172 # PlParam "lat" "52.000001"
173 # PlParam "lon" "13.000001"
176 #LoadPlugin "olsrd_txtinfo.so.0.1"
178 # PlParam "Accept" "127.0.0.1"
181 #LoadPlugin "olsrd_dot_draw.so.0.3"
183 # PlParam "Accept" "127.0.0.1"
186 #LoadPlugin "olsrd_httpinfo.so.0.1"
188 # PlParam "port" "8080"
189 # PlParam "Host" "127.0.0.1"
190 # PlParam "Net" "104.0.0.0 255.0.0.0"
191 # PlParam "Net" "192.168.0.0 255.255.0.0"
194 #LoadPlugin "olsrd_dyn_gw.so.0.3"
196 # # Here parameters are set to be sent to the
197 # # plugin. Theese are on the form "key" "value".
198 # # Parameters ofcause, differs from plugin to plugin.
199 # # Consult the documentation of your plugin for details.
201 # # Example: dyn_gw params
203 # # how often to check for Internet connectivity
204 # # defaults to 5 secs
205 # PlParam "Interval" "40"
207 # # if one or more IPv4 addresses are given, do a ping on these in
208 # # descending order to validate that there is not only an entry in
209 # # routing table, but also a real internet connection. If any of
210 # # these addresses could be pinged successfully, the test was
211 # # succesful, i.e. if the ping on the 1st address was successful,the
212 # # 2nd won't be pinged
213 # PlParam "Ping" "141.1.1.1"
214 # PlParam "Ping" "194.25.2.129"
218 # Interfaces and their rules
219 # Omitted options will be set to the
220 # default values. Multiple interfaces
221 # can be specified in the same block
222 # and multiple blocks can be set.
224 # !!CHANGE THE INTERFACE LABEL(s) TO MATCH YOUR INTERFACE(s)!!
225 # (eg. wlan0 or eth1):
227 Interface "XXX" "YYY"
229 # Olsrd can autodetect changes in NIC
230 # configurations(IP address changes etc.).
231 # This is Enabled by default and the interval
232 # to poll for changes on is defined by
234 # This polling can be disabled pr. NIC by setting
235 # AutoDetectChanges to no.
237 # AutoDetectChanges yes
239 # IPv4 broadcast address to use. The
240 # one usefull example would be 255.255.255.255
241 # If not defined the broadcastaddress
242 # every card is configured with is used
244 # Ip4Broadcast 255.255.255.255
246 # IPv6 address scope to use.
247 # Must be 'site-local' or 'global'
249 # Ip6AddrType site-local
251 # IPv6 multicast address to use when
252 # using site-local addresses.
253 # If not defined, ff05::15 is used
255 # Ip6MulticastSite ff05::11
257 # IPv6 multicast address to use when
258 # using global addresses
259 # If not defined, ff0e::1 is used
261 # Ip6MulticastGlobal ff0e::1
264 # Emission intervals.
265 # If not defined, RFC proposed values will
266 # be used in most cases.
268 # Hello interval in seconds(float)
271 # HELLO validity time
272 HelloValidityTime 20.0
274 # TC interval in seconds(float)
280 # MID interval in seconds(float)
286 # HNA interval in seconds(float)
293 # When multiple links exist between hosts
294 # the weight of interface is used to determine
295 # the link to use. Normally the weight is
296 # automatically calculated by olsrd based
297 # on the characteristics of the interface,
298 # but here you can specify a fixed value.
299 # Olsrd will choose links with the lowest value.
301 # Interface weight is used if LinkQualityAlgorithm is
302 # set to the currently unimplemented RFC mode plugin.
306 # If a certain route should be preferred
307 # or ignored by the mesh, the Link Quality
308 # value of a node can be multiplied with a factor
309 # entered here. In the example the route
310 # using 192.168.0.1 would rather be ignored.
311 # A multiplier of 0.5 will result in a small
312 # (bad) LinkQuality value and a high (bad)
315 # Interface weight is used if LinkQualityAlgorithm is set to
316 # anything but the currently unimplemented RFC mode plugin.
318 # LinkQualityMult 192.168.0.1 0.5
320 # This multiplier applies to all other nodes
321 # LinkQualityMult default 0.8