networking - How to control IP ranges of Network Manager's hotspots? - Ask Ubuntu
a server has 2 wifi interfaces, both configured via network manager hotspots.
connected clients ips in ranges 10.42.0.0/24 , 10.42.1.0/24 (afaics via dnsmasq
invoked nm). need able assign specific range specific interface. unfortunately, network manager assigns them unpredictably (so wlan0
may 10.42.0.0 today , 10.42.1.0 tomorrow; wlan1
gets remaining range) messes iptables
because routing rules different these interfaces.
i tried dhcp-range=
option in /etc/dnsmasq.conf
(which wasn't present nm configures dnsmasq
via command line) , other ideas can't find workable solution.
any thoughts on how can control ip range gets assigned interface?
you can determine used ipv4 subnet configuring 1 manual address, like
nmcli connection modify $shared_name ipv4.addresses 192.168.2.5/24
it's documented in man nm-settings
, see ipv4.method.
/etc/networkmanager/dnsmasq.d using dnsmasq dns plugin, not use case of connection sharing. that, instead /etc/networkmanager/dnsmasq-shared.d -- @ least in recent versions of nm. shouldn't need that.
Comments
Post a Comment