gluon-radv-filterd.rst 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. gluon-radv-filterd
  2. ==================
  3. This package drops all incoming router advertisements except for the
  4. default router with the best metric according to B.A.T.M.A.N. advanced.
  5. Note that advertisements originating from the node itself (for example
  6. via gluon-radvd) are not affected and considered at all.
  7. Selected router
  8. ---------------
  9. The router selection mechanism is independent from the batman-adv gateway mode.
  10. In contrast, the device originating the router advertisment could be any router
  11. or client connected to the mesh, as radv-filterd captures all router
  12. advertisements originating from it. All nodes announcing router advertisement
  13. **with** a default lifetime greater than 0 are being considered as candidates.
  14. In case a router is not a batman-adv originator itself, its TQ is defined by
  15. the originator it is connected to. This lookup uses the batman-adv global
  16. translation table.
  17. Initially the router is the selected by choosing the candidate with the
  18. strongest TQ. When another candidate can provide a better TQ metric it is not
  19. picked up as the selected router until it will outperform the currently
  20. selected router by X metric units. The hysteresis threshold is configurable
  21. and prevents excessive flapping of the gateway.
  22. "Local" routers
  23. ---------------
  24. The package has functionality to select "local" routers, i.e. those connected
  25. via cable or WLAN instead of via the mesh (technically: appearing in the
  26. ``transtable_local``), a fake TQ of 512 so that they are always preferred.
  27. However, if used together with the :doc:`gluon-ebtables-filter-ra-dhcp`
  28. package, these router advertisements are filtered anyway and reach neither the
  29. node nor any other client. You currently have to disable the package or insert
  30. custom ebtables rules in order to use local routers.
  31. respondd module
  32. ---------------
  33. This package also contains a module for respondd that announces the currently
  34. selected router via the ``statistics.gateway6`` property using its interface MAC
  35. address. Note that this is different from the ``statistics.gateway`` property,
  36. which contains the MAC address of the main B.A.T.M.A.N. adv slave interface of
  37. the selected IPv4 gateway.
  38. site.conf
  39. ---------
  40. radv_filterd.threshold : optional
  41. - minimal difference in TQ value that another gateway has to be better than
  42. the currently chosen gateway to become the new chosen gateway
  43. - defaults to ``20``
  44. Example::
  45. radv_filterd = {
  46. threshold = 20,
  47. }