LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-07-2023, 01:34 PM   #1
youni
LQ Newbie
 
Registered: Mar 2023
Posts: 27

Rep: Reputation: 11
Configure hidden Wifi with static IP in NetworkManager gui


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
Attached Files
File Type: txt MyHomeWifi.nmconnection.txt (523 Bytes, 7 views)
 
Old 11-07-2023, 03:41 PM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,370

Rep: Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086
Quote:
Originally Posted by youni View Post
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 ?

Last edited by marav; 11-07-2023 at 03:52 PM.
 
Old 11-07-2023, 04:41 PM   #3
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Rep: Reputation: 75
Quote:
Originally Posted by youni View Post
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?

Last edited by alekow; 11-07-2023 at 04:47 PM.
 
Old 11-08-2023, 02:19 AM   #4
youni
LQ Newbie
 
Registered: Mar 2023
Posts: 27

Original Poster
Rep: Reputation: 11
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.
 
1 members found this post helpful.
Old 11-08-2023, 11:30 AM   #5
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Rep: Reputation: 75
**DELETED**

Last edited by alekow; 11-08-2023 at 12:58 PM. Reason: Ignore - misunderstood previous post
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to configure WireGuard VPN client with NetworkManager GUI LXer Syndicated Linux News 0 01-22-2021 03:41 PM
[SOLVED] I can't manage NetworkManager via /etc/rc.d/rc.networkmanager script igadoter Slackware 20 03-22-2018 03:17 PM
How to configure networkmanager to auto connect on startup without a user logging in (Wifi) Larry James Ubuntu 4 09-05-2016 03:10 PM
[SOLVED] USB - Hidden /home Boots. Non hidden /home fails hugothebear Incognito 3 10-28-2009 05:22 PM
bash: mv hidden and not hidden files lupe Linux - General 4 06-22-2009 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration