LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Configure hidden Wifi with static IP in NetworkManager gui (https://www.linuxquestions.org/questions/slackware-14/configure-hidden-wifi-with-static-ip-in-networkmanager-gui-4175730664/)

youni 11-07-2023 01:34 PM

Configure hidden Wifi with static IP in NetworkManager gui
 
1 Attachment(s)
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 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I cannot translate this cool "/etc/network/interfaces" to MyHomeWifi.nmconnection

marav 11-07-2023 03:41 PM

Quote:

Originally Posted by youni (Post 6463406)
Click Routes
Add
IP / Netmask / Gateway
192.168.1.21 255.255.255.0 192.168.1.1

With that route, you can only ping yourself (and the gateway usually)

Try:
0.0.0.0 / 0.0.0.0 / 192.168.1.1

Are you sure of your gateway ?

alekow 11-07-2023 04:41 PM

Quote:

Originally Posted by youni (Post 6463406)
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 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I cannot translate this cool "/etc/network/interfaces" to MyHomeWifi.nmconnection

How about if you change "Ad-hoc" to "infrastructure"?
Then just set the SSID and leave everything else on this tab blank.
The only thing you should then need is set your static IP, netmask and gateway.

------------------
EDIT:
You are trying to connect to a router, right?

youni 11-08-2023 02:19 AM

Hello!
> Are you sure of your gateway ?
Yes, I use 192.168.1.1 on all devices. But not sure about fields in Routes form in NetworkManager. I will try your advice.

> You are trying to connect to a router, right?
Right.

> How about if you change "Ad-hoc" to "infrastructure"?
That is what I noted, because I have mesh network in other place, where I tried to solve a task how to connect to certain router, not to the nearest. And configuring BSSID placing router mac is what i need (if ill be able to get mac of keenetic). So, i will try again with your advice too.

alekow 11-08-2023 11:30 AM

**DELETED**


All times are GMT -5. The time now is 08:54 AM.