wired-mesh.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Wired mesh (Mesh-on-WAN/LAN)
  2. ============================
  3. In addition to meshing over WLAN and VPN, it is also possible to
  4. configured wired meshing over the LAN or WAN ports. This allows
  5. nodes to be connected directly or over wireless bridges.
  6. Mesh-on-WAN can be enabled in addition to the mesh VPN, so multiple nodes
  7. in the same local network that is used as VPN uplink can also mesh directly.
  8. Enabling Mesh-on-WAN should be avoided if the local network is also bridged with
  9. a WLAN access point, as meshing over batman-adv causes large amounts of
  10. multicast traffic, which will take up a lot of airtime.
  11. Enabling Mesh-on-LAN will replace the normal "client network" function
  12. of the LAN ports, as client network ports may never be connected (so care must be taken to always
  13. enable Mesh-on-LAN before connecting two nodes' LAN ports).
  14. Configuration
  15. ~~~~~~~~~~~~~
  16. Both Mesh-on-WAN and Mesh-on-LAN can be configured on the "Network" page
  17. of the *Advanced settings* (if the package ``gluon-luci-portconfig`` is installed).
  18. It is also possible to enable Mesh-on-WAN and Mesh-on-LAN by default by
  19. adding ``mesh_on_wan = true`` and ``mesh_on_lan = true`` to ``site.conf``.
  20. Commandline configuration
  21. -------------------------
  22. Mesh-on-WAN
  23. ...........
  24. It's possible to enable Mesh-on-WAN like this::
  25. uci set network.mesh_wan.auto=1
  26. uci commit
  27. It may be disabled by running::
  28. uci set network.mesh_wan.auto=0
  29. uci commit
  30. Mesh-on-LAN
  31. ...........
  32. Configuring Mesh-on-LAN is a bit more complicated::
  33. uci set network.mesh_lan.auto=1
  34. for ifname in $(cat /lib/gluon/core/sysconfig/lan_ifname); do
  35. uci del_list network.client.ifname=$ifname
  36. done
  37. uci commit
  38. It may be disabled by running::
  39. uci set network.mesh_lan.auto=0
  40. for ifname in $(cat /lib/gluon/core/sysconfig/lan_ifname); do
  41. uci add_list network.client.ifname=$ifname
  42. done
  43. uci commit
  44. Please note that this configuration has changed in Gluon v2016.1. Using
  45. the old commands on v2016.1 and later will break the corresponding options
  46. in the *Advanced settings*.