olsrd.conf(5)
π olsrd.conf(5) β File Formats Manual π
okay bestie, welcome to the olsrd.conf glow-up π
this is the config file page from the File Formats Manual, and it's literally the main character for setting up olsrd(8).
β¨ NAME β¨
olsrd.conf β configuration file for olsrd(8) π«Ά
π¦ DESCRIPTION π¦
The file olsrd.conf, which lives in /etc by default, contains runtime configuration for the Optimized Link State Routing daemon olsrd(8). Olsrd can however be set to read an alternative configuration file at startup using the -f command line argument. No cap, that's the vibe.
A configuration file parser/generator olsrd_cfgparser(2) can be built as both a standalone executable or a dynamically linked library from the olsrd sources. The DLL version can be used to easily create tools for generating/parsing olsrd configuration files. Iconic little toolkit behavior, honestly β¨
The configuration file consists of comments, single options and option blocks.
π COMMENTS π
Comments are everything following a # in a line. This data is discarded. Commenting out options is an easy way to make olsrd use the default value for that option. So if you're like "hmm, what was the default again?" β just slap a # on it and let olsrd do its thing π
π SINGLE OPTIONS π
Single options are single-line options that consist of a keyword and a user-supplied value. Note that a comment can follow such an option on the same line. Valid single options are:
DebugLevel[0-9]β controls the amount of debug output olsrd sends to stdout. If set to0, olsrd will detach from the current process and run in the background. A value of9yields a maximum of debug output. Defaults to0.IpVersion[4|6]β olsrd supports both IP version 4 and 6. This option controls what IP version olsrd is to use. Defaults to4.AllowNoInt[yes|no]β olsrd supports dynamic configuration of network interfaces. This means that interfaces on which olsrd runs can be reconfigured and olsrd will update itself with no need to be restarted. Olsrd also supports removal and addition of interfaces in run-time. This option specifies if olsrd should keep running if no network interfaces are available. Defaults toyes.TosValue[0-16]β this value controls the type of service value to set in the IP header of OLSR control traffic. Defaults to16.Willingness[0-7]β nodes participating in an OLSR routed network will announce their willingness to act as relays for OLSR control traffic for their neighbors. This option specifies a fixed willingness value to be announced by the local node.4is a neutral option here, while0specifies that this node will never act as a relay, and7specifies that this node will always act as such a relay. If this option is not set in the configuration file, then olsrd will try to retrieve information about the system power and dynamically update willingness according to this info. If no such info can be retrieved, willingness is set to4.OlsrPort[>1000]β if set, olsr uses the specified port instead of its default IANA assigned port698!RtProto[0|1-255]β this setting configures the routing protocol ID to be used when setting routes via rtnetlink, seeRTNETLINK(7)for thertm_protocolkeyword. Use0to specify the operating system default, e.g.RTPROT_BOOTon Linux). Defaults to0.RtTableDefault[0|1-254]β defines the routing table for inserting a new default route. Defaults to0(useRtTable).RtTable[0|1-254]β with Linux and BSD, more than one routing table exists in the system. Together with a rules set that determines which table handles what packets, these system functions are called βiproute2β or βPolicy Routingβ. You may want to read Linux Advanced Routing & Traffic Control (http://lartc.org/) for details. Defaults to254(or βmainβ, see/etc/iproute2/rt_tables) β currently only supported under linux!UseHysteresis[yes|no]β if set toyes, hysteresis will be used as explained in section 14 of RFC3626.HystScaling[0.01-0.99]β sets the scaling value used by the hysteresis algorithm. This must be a positive floating point value smaller than1.0. Consult RFC3626 for details. The default value is0.5.HystThrHigh[HystThrLow-0.99]β this option sets the upper threshold for accepting a link in hysteresis calculation. The value must be higher than the one set as the lower threshold. Defaults to0.8.HystThrLow[0.01-HystThrHigh]β this option sets the lower threshold for setting a link to asymmetric using hysteresis. The value must be lower than the one set as the upper threshold. Defaults to0.3.Pollrate[0.1-10.0]β this option sets the interval, in seconds, that the olsrd event scheduler should be set to poll. A setting of0.2will set olsrd to poll for events every0.2seconds. Defaults to0.1.NicChgsPollInt[0.1-100.0]β this option sets the interval, in seconds, that olsrd will check the configured interfaces for changes in configuration. Defaults to2.5.TcRedundancy[0|1|2]β this value controls the TC redundancy used by the local node in TC message generation. To enable a more robust understanding of the topology, nodes can be set to announce more than just their MPR selector set in TC messages. If set to0, the advertised link set of the node is limited to the MPR selectors. If set to1, the advertised link set of the node is the union of its MPR set and its MPR selector set. Finally, if set to2, the advertised link set of the node is the full symmetric neighbor set of the node. Defaults to0.MprCoverage[1-]β this value decides how many MPRs a node should attempt to select for every two hop neighbor. Defaults to1, and any other setting will severely reduce the optimization introduced by the MPR scheme!LinkQualityLevel[1-2]β this setting decides the Link Quality scheme to use. If set to0, link quality is not regarded and olsrd runs in "RFC3626 mode". If set to1, link quality is used when calculating MPRs. If set to2, routes will also be calculated based on distributed link quality information. Note that a setting of1or2breaks RFC3626 compatibility! This option should therefore only be set to1or2if such a setting is used by all other nodes in the network.LinkQualityFishEye[0|1]β enables (1) or disables (0) use of the experimental Fish Eye algorithm.ClearScreen[yes|no]β if set toyesand olsrd is running with a debuglevel>0, the terminal to which output is sent (STDOUT) is cleared prior to writing updated tables. This makes it easier to follow changes in real-time by eye. IfSTDOUTis not a terminal (eg. it is a file), then no action is taken upon writing tables toSTDOUT.
π OPTION BLOCKS π
Okay bestie, option blocks are config options that hold a whole body of sub-options wrapped in curly braces ({}). The valid ones are:
π§Έ IpcConnect {[sub-options]} π§Έ
Olsrd can let processes make a TCP connection to itself, and data about the topology gets transmitted over it. This is typically used by GUI applications to give you a user-friendly front-end to olsrd. This option block controls these kinds of connections.
MaxConnections [0-5]β specifies how many connections can exist simultaneously. β οΈ Heads up: multiple connections have not been tested and do not work! This option should only be used to control whether processes can connect to olsrd: set it to0to tell olsrd not to allow any connections, or set it to a positive value. Defaults to0.Host [IPv4 address]β specifies a single host that is allowed to connect to olsrd. By default only the loopback address (127.0.0.1) is set to be allowed. So if you want to be able to connect from another host, you should add it here. This option can be repeated to add multiple hosts.Net [IPv4 netaddress] [IPv4 netmask]β here you can specify an entire netrange of IP addresses that olsrd will allow TCP connections from. This option can be repeated to add multiple networks.
π¦ Hna4 {[sub-options]} π¦
Hosts in a OLSR routed network can announce connectivity to external networks using HNA messages. This option block is used to set the IPv4 networks to be announced by this host.
[IPv4 netaddress] [IPv4 netmask]β specifies an IPv4 network to announce in HNA messages. Multiple entries can be added. To announce Internet connectivity set0.0.0.0 0.0.0.0.
π Hna6 {[sub-options]} π
Hosts in a OLSR routed network can announce connectivity to external networks using HNA messages. This option block is used to set the IPv6 networks to be announced by this host.
[IPv6 netaddress] [0-48]β specifies an IPv6 network to announce in HNA messages. The second value is the prefix-length of the network address. Multiple entries can be added. To announce Internet connectivity set:: 0.
πΈ LoadPlugin "[plugin-name]" {[sub-options]} πΈ
Specifies a plugin that olsrd is to load at startup.
PlParam [key] [value]β sends a pair of parameters to the plugin at initialization. Consult individual plugin documentation to find the possible parameters.
π Interface "[device-name1]" "[device-name2]" ... {[sub-options]} π
This option block specifies one or more network interfaces on which olsrd should run. At least one network interface block must be specified for olsrd to run! Various parameters can be specified on individual interfaces or groups of interfaces. This option block can be repeated to add multiple interface configurations.
AutoDetectChanges [yes|no]β olsrd can autodetect changes in interface configurations (polling on the interval set byNicChgsPollInt). This is enabled by default but can be turned off per NIC to save CPU cycles.Ip4Broadcast [IPv4 address]β forces the given IPv4 (broadcast) address to be used as the destination address for all outgoing OLSR traffic on the interface. One useful example is the address255.255.255.255. Another useful example may be to use the peer (unicast) IP of an ptp tunnel that olsr shall run on. If this option is not set, the broadcast address that the interface is configured with will be used. This address will also be updated at run-time if a change is detected. This feature is only available in Linux versions!Mode ["mesh"|"ether"]β olsrd can be used on wireless interfaces and ethernet. To prevent unnecessary packet forwardings on switched ethernet interfaces, the mode of an interface can be set to"ether". The default value of this option ismesh.Ip6AddrType [site-local|global]β this option sets what IPv6 address type is to be used in interface address detection. Defaults tosite-local.Ip6MulticastSite [IPv6 address]β sets the destination of outgoing OLSR traffic on this interface to use the specified IPv6 multicast address as destination if the site-local address type is set on this interface.Ip6MulticastGlobal [IPv6 address]β sets the destination of outgoing OLSR traffic on this interface to use the specified IPv6 multicast address as destination if the global address type is set on this interface.HelloInterval [0.0-]β sets the interval on which HELLO messages will be generated and transmitted on this interface.HelloValidityTime [0.0-]β sets the validity time to be announced in HELLO messages generated by this host on this interface. This value must be larger than the HELLO generation interval to make any sense. Defaults to3 *the generation interval.TcInterval [0.0-]β sets the interval on which TC messages will be generated and transmitted on this interface.TcValidityTime [0.0-]β sets the validity time to be announced in TC messages generated by this host on this interface. This value must be larger than the TC generation interval to make any sense. Defaults to3 *the generation interval.MidInterval [0.0-]β sets the interval on which MID messages will be generated and transmitted on this interface.MidValidityTime [0.0-]β sets the validity time to be announced in MID messages generated by this host on this interface. This value must be larger than the MID generation interval to make any sense. Defaults to3 *the generation interval.HnaInterval [0.0-]β sets the interval on which HNA messages will be generated and transmitted on this interface.HnaValidityTime [0.0-]β sets the validity time to be announced in HNA messages generated by this host on this interface. This value must be larger than the HNA generation interval to make any sense. Defaults to3 *the generation interval.Weight [0-]β when multiple links exist between hosts, the weight of the interface is used to determine the link to route by. Normally the weight is automatically calculated by olsrd based on the characteristics of the interface, but here you can specify a fixed value. Olsrd will choose links with the lowest value.
π MISC π
The homepage of olsrd is http://www.olsr.org.
π FILES π
/etc/olsrd.conf
π«Ά SEE ALSO π«Ά
π thatβs the whole vibe, bestie β Β© 2004 Andreas Tonnesen, March 2009, olsrd.conf(5). byeee! π
π¦ where this page comes from
- nixos 26.05: olsrd 0.9.8
- nixpkgs unstable: olsrd 0.9.8
- Copyright (c) 2003-2005 Andreas Tonnesen
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms