Article 6G6T5 Configure hidden Wifi with static IP in NetworkManager gui

Configure hidden Wifi with static IP in NetworkManager gui

by
youni
from LinuxQuestions.org on (#6G6T5)
Hello. I installed Slackware this year when Devuan worked with old kernel that had not drivers for my system, but then I update kernel and keep using Devuan.

Now I wish to try USB Wifi Adapter that also is not supported by free drivers in Devuan (Linux devuan 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux ), and I do not wish to install firmware to Devuan. So, I run Slackware from usb flash again.

I still cannot connect to Hidden wifi with static IP on Slackware using NetworkManager Gui (I think I could do this half a year ago, and noted some key option, but now I cannot remember that key option that need to be done).

Please, what am I doing wrong?

I click on wifi icon in panel near clocks. And clicked to symbol "Settings", and got a window where I added new Wireless network:
Name: MyHomeWifi
Type: Ad-hoc
Band: Automatic
Restrict: wlan0 (XX:XX:XX:XX:XX:XX)
Cloned MAC: XX:XX:XX:XX:XX:XX - I copied here mac from wlan0
Hidden network: checked

Next tab Security:
WPA2/Personal
Pass: mypass

Next tab IPv4:
Manual
DNS: 1.1.1.1
Add
IP / Netmask / Gateway
192.168.1.21 255.255.255.0 192.168.1.1

Click Routes
Add
IP / Netmask / Gateway
192.168.1.21 255.255.255.0 192.168.1.1

Click Advanced
Send hostname: uncheck

Click Apply.

Click on icon wifi - Connect to MyHomeWifi

It connected, but ping 192.168.1.1 says Host is unreachable

I also attach file /etc/NetworkManager/system-connections/MyHomeWifi.nmconnection

I cannot connect to hidden MyHomeWifi in Slackware, while I connect to hidden MyHomeWifi in all devices, and in Devuan I do not use NetwotkManager and wicd, but just networking.service. Here it is my /etc/network/interfaces from Devuan:

Code:auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.21
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid MyHomeWifi
wpa-scan-ssid 1
wpa-proto WPA2
wpa-key-mgmt WPA-PSK
wpa-psk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxI cannot translate this cool "/etc/network/interfaces" to MyHomeWifi.nmconnection
Attached Files
txt.gifMyHomeWifi.nmconnection.txt (523 Bytes)
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments