On 1/13/20 7:59 PM, Pedro Peña Sánchez wrote:
I need to disable DHCP in the mesh, because it's
received from "wan"
(shoud be called upstream?). According
to
https://lists.libremesh.org/pipermail/lime-users/2017-November/000971.html,
I will need only batadv?
Never tried, just a few thoughts.
The easiest solution is to plug the upstream router to the WAN port of a
LibreMesh router and a NAT is created. Easy, works using LibreMesh DHCP.
**disclaimer: all of this is untested and likely wrong**
If you want to have your clients connecting to LibreMesh routers,
receiving an IPv4 from an external router you should likely connect the
gateway to a LAN port on the LibreMesh router (a very bad idea unless
you really shut off the DHCP server of all LibreMesh nodes connected, a
related problem (IMHO is a bug and we should add an option for filtering
DHCP offers) happens when you connect via ethernet two LibreMesh nodes
with different ap_ssid, see
https://github.com/libremesh/lime-packages/issues/658 ), then you should
deselect lime-proto-anygw from the proto list (copy and paste the list
from /etc/config/lime-defaults to /etc/config/lime-node and then erase
the anygw line) and manually disable OpenWrt DHCP server somehow, like
removing /etc/rc.d/S19dnsmasq or setting "option ignore 1" in
/etc/config/dhcp lan section.
Then you should set your LibreMesh nodes' IPv4 by hand making sure to be
out of the DHCP range of the external gateway or changing the
autoconfiguration range to be out of that range but with the same
network domain as the external gateway (but if the autoconfiguration
range is too small, collisions become too likely), see lime-example on
how to configure this:
https://github.com/libremesh/lime-packages/blob/master/packages/lime-docs/f…
I repeat, I did not test this...
Ciao,
Ilario