Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can´t connect to network
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
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Fri Dec 30, 2022 3:02 am    Post subject: Can´t connect to network Reply with quote

Hello!
Which log can I provide ?
I have been using XFCE.
I can see wireless networks as well as some that is not quite my network. Like half of name is mine.
I can type password, and there is message after "can´t find network"
Allthough it s star near connection, it is not connected.
Thank you.
Back to top
View user's profile Send private message
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 290

PostPosted: Fri Dec 30, 2022 3:59 pm    Post subject: Reply with quote

are you using networkmanager or default openrc network settings as underlying backend for xfce network?
in case of 1st: try to use networkmanager cli and tell us what it says,
in case 2nd: try to hardcode your wifi into the openrc init system, we'll see whether bypassing xfce is solving the problem.
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Sat Dec 31, 2022 11:52 am    Post subject: Reply with quote

I have tried to connect with nmtui.

I have edited make.conf and I put "network manager" in make.conf.

It just say that I can't connect.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Dec 31, 2022 12:35 pm    Post subject: Reply with quote

RIA77,

Tell us what it does do. Put dmesg onto a pastebin. There may be some hints there.

If your Wireless Access Point (WAP) is set up to use the old discredited insecure tkip then Gentoo disable that by default now.
The right fix, in to reconfigure your WAP to not do that, provided none of the other devices need tkip.

The wrong fix is to set USE=tkip, rebuild things, and use the old discredited insecure tkip anyway.

Your dmesg may tell more.
_________________
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
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Thu Jan 12, 2023 7:39 pm    Post subject: Reply with quote

Thank you.
My dmesg
https://dpaste.com/3SQVGALAS

There is no any network. I selected my network card in kernel, but I can't see any network at all.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 12, 2023 8:05 pm    Post subject: Reply with quote

RIA77,

Code:
[    9.837086] Generic FE-GE Realtek PHY r8169-0-100:00: attached PHY driver (mii_bus:phy_addr=r8169-0-100:00, irq=MAC)
[   10.040578] r8169 0000:01:00.0 eth0: Link is Down
[   15.130056] wlan0: authenticate with d4:6e:0e:60:1a:6c
[   15.166808] wlan0: bad VHT capabilities, disabling VHT
[   15.621737] wlan0: send auth to d4:6e:0e:60:1a:6c (try 1/3)
[   15.625196] wlan0: authenticated
[   15.670202] wlan0: associate with d4:6e:0e:60:1a:6c (try 1/3)
[   15.676843] wlan0: RX AssocResp from d4:6e:0e:60:1a:6c (capab=0x411 status=0 aid=2)
[   15.677130] wlan0: associated


That looks good. The wired network is there and the hard part of wireless, getting the radio link authenticated and associated, is done too.

However, neither has been started.
Code:
dhcpcd eth0
should start wired ethernet or
Code:
dhcpcd wlan0
should bring up wireless. DO not do both at the same time or you will have route problems.
They will only work until the dhcp lease expires.

How do you want to manage your network interfaces?
_________________
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
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Thu Jan 12, 2023 8:15 pm    Post subject: Reply with quote

Code:
dhcpcd wlan0

Dhcpcd started wlan, but no any network is founded.

Checked via network manager (nmtui).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 12, 2023 8:32 pm    Post subject: Reply with quote

RIA77,

What does ifconfig show?

Code:
$ ifconfig
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.100.25  netmask 255.255.255.255  broadcast 192.168.100.255
...

You should have different numbers to me.

What about
Code:
$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.100.252 0.0.0.0         UG    2      0        0 wlan0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
...
Your gateway will be different to mine..

Try ping first by name.
Code:
$ ping -4 google.com
PING google.com (142.250.180.14) 56(84) bytes of data.
64 bytes from lhr25s32-in-f14.1e100.net (142.250.180.14): icmp_seq=1 ttl=117 time=34.8 ms
...


Then by IP address
Code:
$ ping -4 142.250.180.14
PING 142.250.180.14 (142.250.180.14) 56(84) bytes of data.
64 bytes from 142.250.180.14: icmp_seq=1 ttl=117 time=20.1 ms
...


Ping by name requires a working name server to change the name in its IP address. Ping by IP address skips the name lookup.
_________________
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
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Thu Jan 12, 2023 9:01 pm    Post subject: Reply with quote

Ifconfig - no wlan.
I can't ping anyone.
Route -n is empty. Nothing.


Last edited by RIA77 on Thu Jan 12, 2023 9:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 12, 2023 9:05 pm    Post subject: Reply with quote

RIA77,

Can you test with a wired connection?

There may be some new information at the end of dmesg too, after the
Code:
[   15.130056] wlan0: authenticate with d4:6e:0e:60:1a:6c
[   15.166808] wlan0: bad VHT capabilities, disabling VHT
[   15.621737] wlan0: send auth to d4:6e:0e:60:1a:6c (try 1/3)
[   15.625196] wlan0: authenticated
[   15.670202] wlan0: associate with d4:6e:0e:60:1a:6c (try 1/3)
[   15.676843] wlan0: RX AssocResp from d4:6e:0e:60:1a:6c (capab=0x411 status=0 aid=2)
[   15.677130] wlan0: associated
it would be good to see that if its there.
_________________
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
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Thu Jan 12, 2023 9:09 pm    Post subject: Reply with quote

I am not sure how to test with wired connection. Checked yesterday on my working Artix distro, and it didn't worked. So i am quite confused.
Probably it's my fault regarding kernel.
Last time I saw some networks around, so wifi was worked at some point.
I compiled kernel again from scratch, and I probably missed something.
Gentoo wiki was down so I forgot to recheck network parameters.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 12, 2023 9:32 pm    Post subject: Reply with quote

RIA77,

Your dmesg says your kernel is good and that wpa_supplicant, or whatever you use to manage the wifi crypto is good.
_________________
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
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Thu Jan 12, 2023 10:04 pm    Post subject: Reply with quote

I have same problem. Second time in two weeks.
Recompiled kernel again.
I can see two network interfaces. I am standing close to my interface. But network can't see my interface.
Btw I can see one network that is without encryption, free to connect, and I can connect to that network.
Can anyone help how to connect to my network ?
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