On 1/26/22 05:04, Link Swanson wrote:
On a two-interface box with WAN + LAN interfaces, WAN having a public IP from ISP, Freedombox sets up a default ipv4 IP for the LAN interface with 10.42.0.1 and the default DHCP server hands out leases between 10.42.0.10 and 10.42.0.254. This is great, but I need to change it.

How do I change the LAN subnet? Say I need it to be something like, e.g., 192.168.1.0/24 <http://192.168.1.0/24>. What steps should I take to ensure that Freedombox LAN interface IP, DHCP services, and internal DNS all switch over to using the 192.168.x.x network and no longer use the 10.42.x.x network?

Can I accomplish this from within plinth? If not, which conf files do I change and/or which commands do I need to run with nmcli? Is there anything to consider before making such a change?


Network Manager (which FreedomBox uses for all things related to network configuration) selects the subnet based on IP address assigned to the interface. "shared" type network connections (like the LAN interface you have) don't usually need to be IP addresses as NM choose from the 256 10.42.x.x/24 subnets automatically. However, if you assign an IP address like 192.168.0.1, NM will select that range 192.168.0.1/24 instead, which is what you want. And it will use that for IP address, DHCP and DNS by passing the appropriate parameters to dnsmasq. So, just set an IPv4 connection on that address. Of course, be sure to be connected via WAN while to do this change.

If you need further tweaking (static assignments, bigger range, more leases) of dnsmasq behavior, then you can write a manual configuration file for it (to be used when NM spawns its own instance of dnsmasq). See the FreedomBox for Communities book[1] for an example.

Links:

- https://en.m.wikibooks.org/wiki/FreedomBox_for_Communities/Network_Configuration#Configuring_DHCP_Leases_and_Range

--
Sunil

Attachment: OpenPGP_0x36C361440C9BC971.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Freedombox-discuss mailing list
Freedombox-discuss@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss

Reply via email to