Re: Can Network Manager be used for router-type configurations?

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
You can do that by configuring a static/manual IP address. That
is assigned to the router, and the same subnet is shared. Explained
`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
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:

(older versions behaved slightly different:
I'll have a look

2 - get WPA/PSK to work on the hotspot (it would configure bit
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
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
ssid TEST
nmcli connection modify nick 802-11-wireless.mode ap 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
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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]