You are not logged in.

#1 2017-10-08 01:18:48

rlyunlucky
Member
Registered: 2017-10-08
Posts: 16

[SOLVED] Can't connect to any wifi-network

Hello,

I have installed arch about two weeks ago using kde desktop. Since then i have been connected to the internet via lan using dchpcd without any issues. In order to connect to my home Network i bought usb network device. However i am unable to connect to any wifi-network (wpa2 - encrypted) using network manager or wifi-menu.

dmesg | grep usbcore

returns:

 ... 
usbcore: registered new interface driver rtl8xxxu 

and

ip link

gives the output:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 44:8a:5b:5a:78:2f brd ff:ff:ff:ff:ff:ff
3: wlp0s19f2u2: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether d4:6e:0e:14:6c:31 brd ff:ff:ff:ff:ff:ff

so i assume my network card works fine.
When using NetworkManager all avialble wifi networks are displayed. When i try to connect to any one of thme i get asked the pasword. After entering it i get asked for the password again by the deamon. After entering the password again the system fails to connect  to any network.
When disabling all networking services such that

 systemctl list-unit-files

returns:

 ...
dhcpcd.service                             disabled       
dhcpcd@.service                            disabled
netctl-auto@.service                       disabled       
netctl-ifplugd@.service                    disabled       
netctl-sleep.service                       disabled       
netctl-wait-online.service                 disabled       
netctl.service                             disabled       
netctl@.service                            static         
NetworkManager-dispatcher.service          disabled       
NetworkManager-wait-online.service         disabled       
NetworkManager.service                     disabled
wpa_supplicant-nl80211@.service            disabled       
wpa_supplicant-wired@.service              disabled       
wpa_supplicant.service                     disabled       
wpa_supplicant@.service                    disabled
...

,and using

 wifi-menu 

all available networks do appear again. When i try to connect to any network, however, after typing in the password i get the message connecting failed.When running

systemctl --type=service

the line appears:

UNIT                                     LOAD   ACTIVE SUB     DESCRIPTION                            
...
netctl@wlp0s19f2u2\x2ddlink.service      loaded failed failed  Networking for netctl profile wlp0s19f2u
...

where the network is called dlink and the network card is wlp0s19f2u2.
Any idea where i went wrong?

Last edited by rlyunlucky (2017-10-19 17:03:44)

Offline

#2 2017-10-08 01:24:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Can't connect to any wifi-network

Disable all of the network services and just enable the one you need; having multiple ones running will result in the issue you are describing.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-10-08 02:47:59

rlyunlucky
Member
Registered: 2017-10-08
Posts: 16

Re: [SOLVED] Can't connect to any wifi-network

jasonwryan wrote:

Disable all of the network services and just enable the one you need; having multiple ones running will result in the issue you are describing.

Did i forget about any default networking services? Do I need to enable any special networking service to use wifi-menu?


When disabling all networking services like shown above and only enabling netctl@.service for example, i still cant connect to any network, when running a the edited wireless-wpa example.

systemctl  status "netctl@wireless\\x2dwpa.service"

returns:

netctl@wireless\x2dwpa.service - Networking for netctl profile wireless-wpa
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2017-10-08 04:30:45 CEST; 29s ago
     Docs: man:netctl.profile(5)
  Process: 8055 ExecStart=/usr/lib/netctl/network start wireless-wpa (code=exited, status=1/FAILURE)
 Main PID: 8055 (code=exited, status=1/FAILURE)

Okt 08 04:30:29 maxilon systemd[1]: Starting Networking for netctl profile wireless-wpa...
Okt 08 04:30:29 maxilon network[8055]: Starting network profile 'wireless-wpa'...
Okt 08 04:30:45 maxilon network[8055]: WPA association/authentication failed for interface 'wlp0s19f2u2'
Okt 08 04:30:45 maxilon network[8055]: Failed to bring the network up for profile 'wireless-wpa'
Okt 08 04:30:45 maxilon systemd[1]: netctl@wireless\x2dwpa.service: Main process exited, code=exited, sta
Okt 08 04:30:45 maxilon systemd[1]: Failed to start Networking for netctl profile wireless-wpa.
Okt 08 04:30:45 maxilon systemd[1]: netctl@wireless\x2dwpa.service: Unit entered failed state.
Okt 08 04:30:45 maxilon systemd[1]: netctl@wireless\x2dwpa.service: Failed with result 'exit-code'.

Offline

#4 2017-10-08 09:55:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,869

Re: [SOLVED] Can't connect to any wifi-network

Ensure no network managing service is running and then attempt a manual connection for more insight on what fails: https://wiki.archlinux.org/index.php/Wi … nual_setup

Online

#5 2017-10-08 10:16:18

boten_angie
Member
Registered: 2017-08-10
Posts: 7

Re: [SOLVED] Can't connect to any wifi-network

Hello

wifi-menu -o allows generating a netctl profile in /etc/netctl.
Normally, netctl loads this profile (here : /etc/netctl/wireless-wpa) and passes it on to wpa_supplicant to connect to wireless networks. dhcpd then retrieves an IP address.
At this stage, your log suggests you have a problem either associating with the network or authenticating to it.
If I were you, I would therefore verify the contents of the /etc/netctl/wireless-wpa file.

Check for the ESSID and the Key and their format.

ESSID='your SSID'
Key="\encryptedPSKkey

If you didn't generate the PSK key, generate it using the following command

wpa_passphrase [ssid] [passphrase]

And add it at the end at the profile as indicated, starting with "\

Trying to configure the network manually step by step is indeed also a good idea.

Offline

#6 2017-10-15 16:32:42

rlyunlucky
Member
Registered: 2017-10-08
Posts: 16

Re: [SOLVED] Can't connect to any wifi-network

I was able to connect to the network using the manual metod from

using the

wpa_supplicant -i interface -c <(wpa_passphrase "your_SSID" "your_key")

as root beacuse it does not work with sudo (see https://wiki.archlinux.org/index.php/WPA_supplicant). However i cannot be connected to the lan- network and the wireless one at the same time, whenever i connect to either one, i disconnect from the other.

Offline

#7 2017-10-15 19:54:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,869

Re: [SOLVED] Can't connect to any wifi-network

Indicated by what? "ip addr"?
Since the WIFi is a USB extension (ie. this is no HW feature) this sounds as if some network managing daemon is still running? (Notice that disabling a service does not immediately stop it as well)

Online

#8 2017-10-19 17:04:58

rlyunlucky
Member
Registered: 2017-10-08
Posts: 16

Re: [SOLVED] Can't connect to any wifi-network

Ok, turned out, this was due to an ip-address-conflict bewtween the router i was connecting to wifi and the one connected via lan, after deactivating its dhcp-function i was able to connect to both networks

Offline

Board footer

Powered by FluxBB