Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant fail to connect
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MerrinX
n00b
n00b


Joined: 20 Dec 2019
Posts: 15

PostPosted: Sat Dec 21, 2019 10:47 am    Post subject: wpa_supplicant fail to connect Reply with quote

Hey, I have a fresh install of gentoo, but fail to get my wireless up and running.

I do not have internet on my laptop, with gentoo installed so typing this from my desktop, so bear with me.

My /etc/conf.d/wpa_supplicant

Code:
wpa_supplicant_args="-B -M -c/etc/wpa_supplicant/wpa_supplicant.conf"


my /etc/wpa_supplicant/wpa_supplicant.conf

Code:

ctrl_interface=DIR=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1

network={
              ssid="secret ssid"
              psk="secret psk"
              scan_ssid=1
              proto=RSN
              key_mgmt=WPA-PSK
              pairwise=TKIP
              priority=5
              id_str="gentoo"
}


my /etc/conf.d/net
Code:

dns_domain_lo="homenetwork"

modules="wpa_supplicant"
config_wlp2s0="dhcp"


when starting the wlp2s0 it initialize the wpa and everythign seem fine, inn the end it says net.wlp2s0 started, but is inactive.

wpa_cli status
Code:

selected interface 'p2p-dev-wlp2s0'
wpa-state=DISCONNECTED


when doing a dhcpcd -k

Code:
dhcpcd not running


Please any help i can get is much appreciated.
Back to top
View user's profile Send private message
papas
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2014
Posts: 112
Location: Athens

PostPosted: Sat Dec 21, 2019 11:30 am    Post subject: Reply with quote

did you start your net.wlp2s0 service? after that just run wpa_gui
my conf
Code:

modules_wlp5s0="wpa_supplicant"
config_wlp5s0="dhcp"
routes_wlp5s0="default via 192.168.2.1"
dns_servers_wlp5s0="192.168.2.1 8.8.8.8"
Back to top
View user's profile Send private message
MerrinX
n00b
n00b


Joined: 20 Dec 2019
Posts: 15

PostPosted: Sat Dec 21, 2019 12:31 pm    Post subject: Reply with quote

I did, my wlp2s0 starts at boot. But nothing happens, when I try restarting it, it says it is running and wpa_supplicant is starting but wlp2s0 is inactive. After that is check my wpa_cli status, and is says its disconnected.
Back to top
View user's profile Send private message
papas
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2014
Posts: 112
Location: Athens

PostPosted: Sat Dec 21, 2019 12:40 pm    Post subject: Reply with quote

I am taking the same message from my wlp5s0 (inactive) every time i am starting the service, but in my case the output of wpa_cli status is scanning.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44900
Location: 56N 3W

PostPosted: Sat Dec 21, 2019 12:49 pm    Post subject: Reply with quote

MerrinX,

Welcome to Gentoo.

We need the output of dmesg from your gentoo install.
Boot your Gentoo normally
Run
Code:
dmesg > /dmesg.txt
to save it to a file.

Put that file onto a pastebin site.

There are two methods.
a) boot your install media and mount your gentoo at /mnt/gentoo. Do not chroot.
The file we need will be /mnt/gentoo/dmesg.txt

b) put the file onto a USB stick and pastebin it from elsewhere.

The inactive message does not always mean that the interface is not working. It can take several seconds to become ready.
Does
Code:
ifconfig
show that the interface has an IP address?
What is it?

If you have an IPaddress what does the
Code:
route
command output?

What is the content of /etc/resolv.config ?

Don't copy type. Save things to files and post the file content.
dmesg is too big for a post. Use a pastebin.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
MerrinX
n00b
n00b


Joined: 20 Dec 2019
Posts: 15

PostPosted: Sat Dec 21, 2019 1:18 pm    Post subject: Reply with quote

Hey, thank you for the reply, I'm currently out driving, will comply later.
Back to top
View user's profile Send private message
MerrinX
n00b
n00b


Joined: 20 Dec 2019
Posts: 15

PostPosted: Sun Dec 22, 2019 7:01 am    Post subject: Reply with quote

What is the content of /etc/resolv.config ?
Code:

# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line


Route
Code:

Kernel IProuting table
Destination     Gateway     Gateway     Flags Metric Ref     Use Iface


ifconfig does not show a IP adress, it looks like a mac adress.

My dhcpcd i think is not running.

Regarding the dmesg, i have no way of getting it out there, however there are no errors, and all firmware is loaded.

Any help would be much appreciated
Back to top
View user's profile Send private message
MerrinX
n00b
n00b


Joined: 20 Dec 2019
Posts: 15

PostPosted: Sun Dec 22, 2019 7:07 am    Post subject: Reply with quote

And last, my wpa_cli show connected to p2p-dev-wlp2s0 and not wlp2s0
Do not know what the different is?
Back to top
View user's profile Send private message
MerrinX
n00b
n00b


Joined: 20 Dec 2019
Posts: 15

PostPosted: Sun Dec 22, 2019 8:17 am    Post subject: Reply with quote

Sorry for the spam here, but i got it working.

However, it was the wpa_cli that had the wrong interface, also my wpa_supplicant.conf was wrong.
Had to delete everything about network and then do the connection through the cli interface.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum