Re: Can Network Manager be used for router-type configurations?
- From: Nick Howitt <nick howitts co uk>
- To: Thomas Haller <thaller redhat com>, networkmanager-list gnome org
- Subject: Re: Can Network Manager be used for router-type configurations?
- Date: Tue, 3 Apr 2018 13:11:51 +0100
On 03/04/2018 12:50, Thomas Haller wrote:
On Mon, 2018-04-02 at 16:46 +0100, Nick Howitt wrote:
Hi Nick,
1 - change the DHCP server range of addresses for a Wireless
Hotspot
You can do that by configuring a static/manual IP address. That
address
is assigned to the router, and the same subnet is shared. Explained
in
`man nm-settings`.
If I set the interface with an address and /24 subnet I see the DHCP
server using that subnet, but it always seems to use .10-.254 for
its
available address range. From your link in 3 below, can I pass the
parameters "first" and "last" to the script or are they hard coded?
They depend on the address that you set, see examples at:
https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/dnsmasq/tests/test-dnsmasq-utils.c?id=eb8257dea5802a004af9cccacb30af98440e2172#n122
(older versions behaved slightly different:
https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=d512ed9f1f1353166ae2110e2e6ffeb3d5f624d7
)
I'll have a look
2 - get WPA/PSK to work on the hotspot (it would configure bit
not
allow
connections)
Not sure what you are doing. WPA/PSK hotspot works for me with NM.
I'll have to try again. Configuring as WEP worked. Changing to WPA
and
changing the PSK never allowed a connection from Android. I also
tried a
simplistic configuration at the command line:
nmcli c add type wifi ifname wlp0s18f2u2 con-name nick autoconnect
no
ssid TEST
nmcli connection modify nick 802-11-wireless.mode ap
802-11-wireless.band bg ipv4.method shared
nmcli connection modify nick wifi-sec.key-mgmt wpa-psk
nmcli connection modify nick wifi-sec.psk "12345678"
nmcli connection up nick
but no dice.
if you do this, ipv6.method will be "auto". That (usually) will not
work. Set it to "ignore" or "shared".
Good idea to try.
An alternative might be to create the profile with `nmcli device wifi
hotspot` or the hotspot button in gnome-shell (and adjust it from
there).
I tried but could only connect using WEP configured with
nm-connection-editor and not nmtui (on Centos7.4). Using the Hotspot
button created other complications by adding extra connection
definitions and I lost where I was. From memory even
nm-connection-editor and nmtui may have caused problems when trying to
redefine a current interface to a Hotspot.
best,
Thomas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]