2015-10-28 18:59:51 +00:00
|
|
|
Wired mesh (Mesh-on-WAN/LAN)
|
|
|
|
============================
|
|
|
|
|
|
|
|
In addition to meshing over WLAN and VPN, it is also possible to
|
|
|
|
configured wired meshing over the LAN or WAN ports. This allows
|
|
|
|
nodes to be connected directly or over wireless bridges.
|
|
|
|
|
|
|
|
Mesh-on-WAN can be enabled in addition to the mesh VPN, so multiple nodes
|
|
|
|
in the same local network that is used as VPN uplink can also mesh directly.
|
|
|
|
Enabling Mesh-on-WAN should be avoided if the local network is also bridged with
|
|
|
|
a WLAN access point, as meshing over batman-adv causes large amounts of
|
|
|
|
multicast traffic, which will take up a lot of airtime.
|
|
|
|
|
|
|
|
Enabling Mesh-on-LAN will replace the normal "client network" function
|
|
|
|
of the LAN ports, as client network ports may never be connected (so care must be taken to always
|
|
|
|
enable Mesh-on-LAN before connecting two nodes' LAN ports).
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Both Mesh-on-WAN and Mesh-on-LAN can be configured on the "Network" page
|
2016-07-27 00:38:39 +00:00
|
|
|
of the *Advanced settings* (if the package ``gluon-luci-portconfig`` is installed).
|
2015-10-28 18:59:51 +00:00
|
|
|
|
|
|
|
It is also possible to enable Mesh-on-WAN and Mesh-on-LAN by default by
|
|
|
|
adding ``mesh_on_wan = true`` and ``mesh_on_lan = true`` to ``site.conf``.
|
|
|
|
|
|
|
|
Commandline configuration
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
Mesh-on-WAN
|
|
|
|
...........
|
|
|
|
|
|
|
|
It's possible to enable Mesh-on-WAN like this::
|
|
|
|
|
|
|
|
uci set network.mesh_wan.auto=1
|
2016-11-21 09:25:45 +00:00
|
|
|
uci commit network
|
2015-10-28 18:59:51 +00:00
|
|
|
|
|
|
|
It may be disabled by running::
|
|
|
|
|
|
|
|
uci set network.mesh_wan.auto=0
|
2016-11-21 09:25:45 +00:00
|
|
|
uci commit network
|
2015-10-28 18:59:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
Mesh-on-LAN
|
|
|
|
...........
|
|
|
|
|
|
|
|
Configuring Mesh-on-LAN is a bit more complicated::
|
|
|
|
|
|
|
|
uci set network.mesh_lan.auto=1
|
|
|
|
for ifname in $(cat /lib/gluon/core/sysconfig/lan_ifname); do
|
|
|
|
uci del_list network.client.ifname=$ifname
|
|
|
|
done
|
2016-11-21 09:25:45 +00:00
|
|
|
uci commit network
|
2015-10-28 18:59:51 +00:00
|
|
|
|
|
|
|
It may be disabled by running::
|
|
|
|
|
2015-11-05 15:19:55 +00:00
|
|
|
uci set network.mesh_lan.auto=0
|
2015-10-28 18:59:51 +00:00
|
|
|
for ifname in $(cat /lib/gluon/core/sysconfig/lan_ifname); do
|
|
|
|
uci add_list network.client.ifname=$ifname
|
|
|
|
done
|
2016-11-21 09:25:45 +00:00
|
|
|
uci commit network
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2016-01-01 15:29:15 +00:00
|
|
|
Please note that this configuration has changed in Gluon v2016.1. Using
|
2016-09-21 18:04:57 +00:00
|
|
|
the old commands on v2016.1 and later will break the corresponding options
|
|
|
|
in the *Advanced settings*.
|