2015-10-28 18:59:51 +00:00
|
|
|
Wired mesh (Mesh-on-WAN/LAN)
|
2018-07-06 16:55:25 +00:00
|
|
|
############################
|
2015-10-28 18:59:51 +00:00
|
|
|
|
|
|
|
In addition to meshing over WLAN and VPN, it is also possible to
|
2017-03-11 13:20:41 +00:00
|
|
|
configure wired meshing over the LAN or WAN ports. This allows
|
2015-10-28 18:59:51 +00:00
|
|
|
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.
|
|
|
|
|
2018-07-06 16:55:25 +00:00
|
|
|
Enabling Mesh-on-LAN replaces the normal "client network" function
|
2015-10-28 18:59:51 +00:00
|
|
|
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).
|
|
|
|
|
2018-07-06 16:55:25 +00:00
|
|
|
Wired mesh encapsulation
|
|
|
|
************************
|
|
|
|
|
|
|
|
Since version 2018.1, Gluon supports encapsulating wired mesh traffic in
|
|
|
|
`VXLAN <https://en.wikipedia.org/wiki/Virtual_Extensible_LAN>`_, a new standard with
|
2019-03-10 19:15:25 +00:00
|
|
|
use cases similar to VLANs, but a much greater ID space of 24bit; in addition, VXLAN
|
2018-07-06 16:55:25 +00:00
|
|
|
packets pass through VLAN-aware switches without any special configuration.
|
|
|
|
|
|
|
|
Encapsulating mesh traffic has two advantages:
|
|
|
|
|
|
|
|
* By using a different VXLAN ID for each site and mesh domain, accidental
|
|
|
|
wired mesh connections between nodes of different domains will be prevented.
|
|
|
|
This has special importance when nodes migrate between domains automatically,
|
|
|
|
as currently possible through different site-specific packages.
|
|
|
|
* While batman-adv traffic does not interact with non-mesh traffic in the same wired
|
|
|
|
network in any way (so Gluon nodes can mesh over existing wired networks), this is
|
|
|
|
not the case for layer 3 mesh protocols like Babel. Encapsulating the traffic allows
|
|
|
|
to distinguish mesh traffic from unrelated packets.
|
|
|
|
|
|
|
|
As enabling VXLAN encapsulation will prevent wired mesh communication with old nodes
|
|
|
|
that do not support VXLAN yet, VXLANs can be enabled per-domain using the site configuration
|
|
|
|
setting *mesh.vxlan*. VXLAN is enabled by default in multidomain setups; in single-domain
|
|
|
|
site configurations, the *mesh.vxlan* setting is mandatory. We recommend to enable
|
|
|
|
VXLAN encapsulation in all new sites and domains.
|
|
|
|
|
|
|
|
Non-encapsulated ("legacy") wired meshing will be removed in a future Gluon release.
|
|
|
|
We cannot give a concrete timeframe for the removal yet; a missing prerequisite is the
|
|
|
|
implementation of a robust migration path for existing deployments.
|
|
|
|
|
2015-10-28 18:59:51 +00:00
|
|
|
Configuration
|
2018-07-06 16:55:25 +00:00
|
|
|
*************
|
2015-10-28 18:59:51 +00:00
|
|
|
|
|
|
|
Both Mesh-on-WAN and Mesh-on-LAN can be configured on the "Network" page
|
2017-02-08 21:19:24 +00:00
|
|
|
of the *Advanced settings* (if the package ``gluon-web-network`` is installed).
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2022-01-23 23:18:02 +00:00
|
|
|
It is also possible to enable Mesh-on-WAN and Mesh-on-LAN by default by adding
|
|
|
|
the ``mesh`` role to the ``interfaces.*.default_roles`` options in site.conf.
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2018-07-06 16:55:25 +00:00
|
|
|
Commandline
|
|
|
|
===========
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2018-07-06 16:55:25 +00:00
|
|
|
Enable Mesh-on-WAN::
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2018-01-10 00:00:28 +00:00
|
|
|
uci set network.mesh_wan.disabled=0
|
2016-11-21 09:25:45 +00:00
|
|
|
uci commit network
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2018-07-06 16:55:25 +00:00
|
|
|
Disable Mesh-on-WAN::
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2018-01-10 00:00:28 +00:00
|
|
|
uci set network.mesh_wan.disabled=1
|
2016-11-21 09:25:45 +00:00
|
|
|
uci commit network
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2018-07-06 16:55:25 +00:00
|
|
|
Enable Mesh-on-LAN::
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2018-01-10 00:00:28 +00:00
|
|
|
uci set network.mesh_lan.disabled=0
|
2015-10-28 18:59:51 +00:00
|
|
|
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
|
|
|
|
2018-07-06 16:55:25 +00:00
|
|
|
Disable Mesh-on-LAN::
|
2015-10-28 18:59:51 +00:00
|
|
|
|
2018-01-10 00:00:28 +00:00
|
|
|
uci set network.mesh_lan.disabled=1
|
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
|
|
|
|
2018-07-06 16:55:25 +00:00
|
|
|
Please note that this configuration has changed in Gluon 2016.1. Using
|
|
|
|
the old commands on 2016.1 and later will break the corresponding options
|
2016-09-21 18:04:57 +00:00
|
|
|
in the *Advanced settings*.
|