Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't connect. Interface stays DOWN.
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
babayusa
n00b
n00b


Joined: 31 Jul 2024
Posts: 11

PostPosted: Wed Jul 31, 2024 12:17 pm    Post subject: Can't connect. Interface stays DOWN. Reply with quote

Hey forum, tried to look for people with a similar problem couldn't really find a solution that worked.

Following problem:
So I finished the setup and I can boot into gentoo. I tried to download Xorg, did the kernel configurations according to the wiki, but when I tried I noticed I have no internet connection. I followed the wiki for wpa_supplicant and iwlwifi, since I have a AX200.
When checking "dmesg | grep wl" I can see that wlo1 loaded the correct firmware and iwlwifi shows nothing I recognized as an eror.
When checking "ip a" wlo1 is down. I used wpa_passphrase to generate my network and append it to wpa_supplicant.conf. wpa_cli gives me some kind of Network_not_found error even though the ssid is correct.

I'm aware I have to post config files. I booted with the livecd and am going to setup internet connection now.
I'm going to look for the tool that automatically uploads files to pastebin and returns the link. Excuse me for any bad formatting since I am typing this on my mobile phone.

This is my first post, hey :), if one of you could tell me which config files you need I will try to send them.
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 357

PostPosted: Wed Jul 31, 2024 3:02 pm    Post subject: Reply with quote

Previous reasons why I failed to connect to wifi:

- The hotspot was using WPA3 which my wifi adapter does not support. Fixed by switching to WPA2.
- The hotspot had TKIP enabed which is deprecated and disabed by default in wpa_supplicant. Fixed by first enabling TKIP USE flag, then by disabling TKIP on the hotspot.

EDIT:

Post your wpa_supplicant config, which is usually /etx/wpa_supplicant/wpa_supplicant.conf.
Also, try to connect to the hotspot with wpa_cli and post the output of the failed connection.
Back to top
View user's profile Send private message
babayusa
n00b
n00b


Joined: 31 Jul 2024
Posts: 11

PostPosted: Wed Jul 31, 2024 3:51 pm    Post subject: Reply with quote

bstaletic wrote:

- The hotspot was using WPA3 which my wifi adapter does not support. Fixed by switching to WPA2.
- The hotspot had TKIP enabed which is deprecated and disabed by default in wpa_supplicant. Fixed by first enabling TKIP USE flag, then by disabling TKIP on the hotspot.


EDIT: I rechecked the TKIP thing and switchung to a mobile hotspot set to wpa2 instead of wpa/wpa2 like the WLAN I was connected to seems to work. So it probably is this. Thanks! Text below can be ignored. I wrongfully and stupidly believed that if it connects on the live-usb it couldn't be this.

/etc/wpa_supplicant/wpa_supplicant.conf:
Code:

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

network={
                ssid="ssid"
                #psk="pskPlain"
                psk=ImGuessingPskEncrypted
}

The exact same as in the liveusb exept for the added "DIR=" and "GROUP=wheel" as stated in the wiki. Removing this does not change anything.

And wpa_cli run from the booted system as user root:
Code:

devicer ~ # wpa_cli
...

Selected interface 'wlo1'

Interactive mode

<3>CTRL-EVENT-SCAN-RESULTS
<3>CTRL-EVENT-NETWORK-NOT-FOUND
<3>CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=mycountrycode
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>CTRL-EVENT-NETWORK-NOT-FOUND
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>CTRL-EVENT-NETWORK-NOT-FOUND
<3>CTRL-EVENT-SCAN-RESULTS
<3>CTRL-EVENT-NETWORK-NOT-FOUND
... repeated


Code:

devicer ~ # dmesg | grep lw
[    0.096529] Spectre V2 : Selecting STIBP always-on mode to complement retbleed mitigation
[    0.096532] Spectre V2 : User space: Mitigation: STIBP always-on protection
[    0.234435] Spectre V2 : Update user space SMT mitigation: STIBP always-on
[    2.290009] iwlwifi 0000:01:00.0: enabling device (0000 -> 0002)
[    2.301599] iwlwifi 0000:01:00.0: Detected crf-id 0x3617, cnv-id 0x100530 wfpm id 0x80000000
[    2.301646] iwlwifi 0000:01:00.0: PCI dev 2723/0084, rev=0x340, rfid=0x10a100
[    2.301981] Loading firmware: iwlwifi-cc-a0-77.ucode
[    2.304356] iwlwifi 0000:01:00.0: api flags index 2 larger than supported by driver
[    2.304376] iwlwifi 0000:01:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37
[    2.304681] iwlwifi 0000:01:00.0: loaded firmware version 77.c360c4b1.0 cc-a0-77.ucode op_mode iwlmvm
[    2.406210] iwlwifi 0000:01:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340
[    2.567338] iwlwifi 0000:01:00.0: Detected RF HR B3, rfid=0x10a100
[    2.643784] iwlwifi 0000:01:00.0: base HW address: bc:03:58:d4:94:0a
[    2.663834] iwlwifi 0000:01:00.0 wlo1: renamed from wlan0
[    4.333927] iwlwifi 0000:01:00.0: Registered PHC clock: iwlwifi-PTP, with index: 0
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