Advertisement
Guest User

olsrd.conf

a guest
Dec 7th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.19 KB | None | 0 0
  1. #
  2. # OLSR.org routing daemon config file
  3. # This file contains the usual options for an ETX based
  4. # stationary network without fisheye
  5. # (for other options see olsrd.conf.default.full)
  6. #
  7. # Lines starting with a # are discarded
  8. #
  9.  
  10. #### ATTENTION for IPv6 users ####
  11. # Because of limitations in the parser IPv6 addresses must NOT
  12. # begin with a ":", so please add a "0" as a prefix.
  13.  
  14. ###########################
  15. ### Basic configuration ###
  16. ###########################
  17. # keep this settings at the beginning of your first configuration file
  18.  
  19. # Debug level (0-9)
  20. # If set to 0 the daemon runs in the background, unless "NoFork" is set to true
  21. # (Default is 1)
  22.  
  23. # DebugLevel 1
  24.  
  25. # IP version to use (4 or 6)
  26. # (Default is 4)
  27.  
  28. IpVersion 6
  29.  
  30. #################################
  31. ### OLSRd agent configuration ###
  32. #################################
  33. # this parameters control the settings of the routing agent which are not
  34. # related to the OLSR protocol and it's extensions
  35.  
  36. # FIBMetric controls the metric value of the host-routes OLSRd sets.
  37. # - "flat" means that the metric value is always 2. This is the preferred value
  38. # because it helps the linux kernel routing to clean up older routes
  39. # - "correct" use the hopcount as the metric value.
  40. # - "approx" use the hopcount as the metric value too, but does only update the
  41. # hopcount if the nexthop changes too
  42. # (Default is "flat")
  43.  
  44. # FIBMetric "flat"
  45.  
  46. #######################################
  47. ### Linux specific OLSRd extensions ###
  48. #######################################
  49. # these parameters are only working on linux at the moment, but might become
  50. # useful on BSD in the future
  51.  
  52. # SrcIpRoutes tells OLSRd to set the Src flag of host routes to the originator-ip
  53. # of the node. In addition to this an additional localhost device is created
  54. # to make sure the returning traffic can be received.
  55. # (Default is "no")
  56.  
  57. # SrcIpRoutes no
  58.  
  59. # Specify the proto tag to be used for routes olsr inserts into kernel
  60. # currently only implemented for linux
  61. # valid values under linux are 1 .. 254
  62. # 1 gets remapped by olsrd to 0 UNSPECIFIED (1 is reserved for ICMP redirects)
  63. # 2 KERNEL routes (not very wise to use)
  64. # 3 BOOT (should in fact not be used by routing daemons)
  65. # 4 STATIC
  66. # 8 .. 15 various routing daemons (gated, zebra, bird, & co)
  67. # (defaults to 0 which gets replaced by an OS-specific default value
  68. # under linux 3 (BOOT) (for backward compatibility)
  69.  
  70. # RtProto 0
  71.  
  72. # Activates (in IPv6 mode) the automatic use of NIIT
  73. # (see README-Olsr-Extensions)
  74. # (default is "yes")
  75.  
  76. # UseNiit yes
  77.  
  78. # Activates the smartgateway ipip tunnel feature.
  79. # See README-Olsr-Extensions for a description of smartgateways.
  80. # (default is "no")
  81.  
  82. # SmartGateway no
  83.  
  84. # Allows the selection of a smartgateway with NAT (only for IPv4)
  85. # (default is "yes")
  86.  
  87. # SmartGatewayAllowNAT yes
  88.  
  89. # Determines the period (in milliseconds) on which a new smart gateway
  90. # selection is performed.
  91. # (default is 10000 milliseconds)
  92.  
  93. # SmartGatewayPeriod 10000
  94.  
  95. # Determines the number of times the link state database must be stable
  96. # before a new smart gateway is selected.
  97. # (default is 6)
  98.  
  99. # SmartGatewayStableCount 6
  100.  
  101. # When another gateway than the current one has a cost of less than the cost
  102. # of the current gateway multiplied by SmartGatewayThreshold then the smart
  103. # gateway is switched to the other gateway. The unit is percentage.
  104. # (defaults to 0)
  105.  
  106. # SmartGatewayThreshold 0
  107.  
  108. # The weighing factor for the gateway uplink bandwidth (exit link, uplink).
  109. # See README-Olsr-Extensions for a description of smart gateways.
  110. # (default is 1)
  111.  
  112. # SmartGatewayWeightExitLinkUp 1
  113.  
  114. # The weighing factor for the gateway downlink bandwidth (exit link, downlink).
  115. # See README-Olsr-Extensions for a description of smart gateways.
  116. # (default is 1)
  117.  
  118. # SmartGatewayWeightExitLinkDown 1
  119.  
  120. # The weighing factor for the ETX costs.
  121. # See README-Olsr-Extensions for a description of smart gateways.
  122. # (default is 1)
  123.  
  124. # SmartGatewayWeightEtx 1
  125.  
  126. # The divider for the ETX costs.
  127. # See README-Olsr-Extensions for a description of smart gateways.
  128. # (default is 0)
  129.  
  130. # SmartGatewayDividerEtx 0
  131.  
  132. # Defines what kind of Uplink this node will publish as a
  133. # smartgateway. The existence of the uplink is detected by
  134. # a route to 0.0.0.0/0, ::ffff:0:0/96 and/or 2000::/3.
  135. # possible values are "none", "ipv4", "ipv6", "both"
  136. # (default is "both")
  137.  
  138. # SmartGatewayUplink "both"
  139.  
  140. # Specifies if the local ipv4 uplink use NAT
  141. # (default is "yes")
  142.  
  143. # SmartGatewayUplinkNAT yes
  144.  
  145. # Specifies the speed of the uplink in kilobit/s.
  146. # First parameter is upstream, second parameter is downstream
  147. # (default is 128/1024)
  148.  
  149. # SmartGatewaySpeed 128 1024
  150.  
  151. # Specifies the EXTERNAL ipv6 prefix of the uplink. A prefix
  152. # length of more than 64 is not allowed.
  153. # (default is 0::/0
  154.  
  155. # SmartGatewayPrefix 0::/0
  156.  
  157. ##############################
  158. ### OLSR protocol settings ###
  159. ##############################
  160.  
  161. # HNA (Host network association) allows the OLSR to announce
  162. # additional IPs or IP subnets to the net that are reachable
  163. # through this node.
  164. # Syntax for HNA4 is "network-address network-mask"
  165. # Syntax for HNA6 is "network-address prefix-length"
  166. # (default is no HNA)
  167. Hna4
  168. {
  169. # Internet gateway
  170. # 0.0.0.0 0.0.0.0
  171. # specific small networks reachable through this node
  172. # 15.15.0.0 255.255.255.0
  173. }
  174. Hna6
  175. {
  176. # Internet gateway
  177. # 0:: 0
  178. # specific small networks reachable through this node
  179. # fec0:2200:106:0:0:0:0:0 48
  180. }
  181.  
  182. ################################
  183. ### OLSR protocol extensions ###
  184. ################################
  185.  
  186. # Link quality algorithm (only for lq level 2)
  187. # (see README-Olsr-Extensions)
  188. # - "etx_float", a floating point ETX with exponential aging
  189. # - "etx_fpm", same as ext_float, but with integer arithmetic
  190. # - "etx_ff" (ETX freifunk), an etx variant which use all OLSR
  191. # traffic (instead of only hellos) for ETX calculation
  192. # - "etx_ffeth", an incompatible variant of etx_ff that allows
  193. # ethernet links with ETX 0.1.
  194. # (defaults to "etx_ff")
  195.  
  196. # LinkQualityAlgorithm "etx_ff"
  197.  
  198. # Fisheye mechanism for TCs (0 meansoff, 1 means on)
  199. # (default is 1)
  200.  
  201. LinkQualityFishEye 1
  202.  
  203. #####################################
  204. ### Example plugin configurations ###
  205. #####################################
  206. # Olsrd plugins to load
  207. # This must be the absolute path to the file
  208. # or the loader will use the following scheme:
  209. # - Try the paths in the LD_LIBRARY_PATH
  210. # environment variable.
  211. # - The list of libraries cached in /etc/ld.so.cache
  212. # - /lib, followed by /usr/lib
  213. #
  214. # the examples in this list are for linux, so check if the plugin is
  215. # available if you use windows/BSD.
  216. # each plugin should have a README file in it's lib subfolder
  217.  
  218. # LoadPlugin "olsrd_txtinfo.dll"
  219. LoadPlugin "olsrd_txtinfo.so.0.1"
  220. {
  221. # the default port is 2006 but you can change it like this:
  222. #PlParam "port" "8080"
  223.  
  224. # You can set a "accept" single address to allow to connect to
  225. # txtinfo. If no address is specified, then localhost (127.0.0.1)
  226. # is allowed by default. txtinfo will only use the first "accept"
  227. # parameter specified and will ignore the rest.
  228.  
  229. # to allow a specific host:
  230. #PlParam "accept" "172.29.44.23"
  231. # if you set it to 0.0.0.0, it will accept all connections
  232. #PlParam "accept" "0.0.0.0"
  233. }
  234.  
  235. #############################################
  236. ### OLSRD default interface configuration ###
  237. #############################################
  238. # the default interface section can have the same values as the following
  239. # interface configuration. It will allow you so set common options for all
  240. # interfaces.
  241.  
  242. InterfaceDefaults {
  243. # Ip4Broadcast 255.255.255.255
  244. }
  245.  
  246. ######################################
  247. ### OLSRd Interfaces configuration ###
  248. ######################################
  249. # multiple interfaces can be specified for a single configuration block
  250. # multiple configuration blocks can be specified
  251.  
  252. # WARNING, don't forget to insert your interface names here !
  253. Interface "eth5"
  254. {
  255. # Interface Mode is used to prevent unnecessary
  256. # packet forwarding on switched ethernet interfaces
  257. # valid Modes are "mesh" and "ether"
  258. # (default is "mesh")
  259.  
  260. # Mode "mesh"
  261. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement