You are not logged in.

#1 2022-03-25 13:56:43

naturalsurrender
Member
Registered: 2022-01-26
Posts: 9

Can connect to wifi, but not the internet

ip a output: https://imgur.com/a/o2k7EoB

Network card: Qualcomm Atheros AR9485 Wireless Network Adapter.

ping archlinux.org outputs "Destination unreachable: No route"

I was perfectly able to connect to the very same network with my phone (and make this post with it).

Can anyone help me?

Offline

#2 2022-03-25 14:06:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,635

Re: Can connect to wifi, but not the internet

You have no IPv4 address and only have a local IPv6 address.

How are you connecting to the WiFi?  Are you just using wpa_suplicant?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2022-03-25 14:09:30

progandy
Member
Registered: 2012-05-17
Posts: 5,003

Re: Can connect to wifi, but not the internet

It looks like you connected, but there is no IPv4 address. You probably did not configure a dhcp client to receive an IP and valid routes.
IPv6 is also not configured, so maybe your network does not support ipv6 or requires dhcpv6.

If you use iwd you can configure it to perform the dhcp network configuration, otherwise choose something else: https://wiki.archlinux.org/title/DHCP#DHCP (either a client or a network manager)

Last edited by progandy (2022-03-25 14:10:08)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2022-03-25 14:28:42

naturalsurrender
Member
Registered: 2022-01-26
Posts: 9

Re: Can connect to wifi, but not the internet

progandy wrote:

It looks like you connected, but there is no IPv4 address. You probably did not configure a dhcp client to receive an IP and valid routes.
IPv6 is also not configured, so maybe your network does not support ipv6 or requires dhcpv6.

If you use iwd you can configure it to perform the dhcp network configuration, otherwise choose something else: https://wiki.archlinux.org/title/DHCP#DHCP (either a client or a network manager)

Just checked my nm-connection-editor and it said that both my IPv4 and IPv6 were automatic. So what went wrong?

Offline

#5 2022-03-25 14:32:34

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,635

Re: Can connect to wifi, but not the internet

Look through your logs for DHCP and see if there is anything relevant.  Is this a network you administer?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2022-03-25 14:39:41

naturalsurrender
Member
Registered: 2022-01-26
Posts: 9

Re: Can connect to wifi, but not the internet

ewaller wrote:

Look through your logs for DHCP and see if there is anything relevant.  Is this a network you administer?

dhcpcd log: https://imgur.com/a/Bu7TgXZ
I believe the "no global addresses for default route" is the culprit for the issue. Do you know what does this mean?
Also I do not administer this network.

Last edited by naturalsurrender (2022-03-25 14:41:03)

Offline

#7 2022-03-25 14:42:31

seth
Member
Registered: 2012-09-03
Posts: 30,869

Re: Can connect to wifi, but not the internet

Network card: Qualcomm Atheros AR9485 Wireless Network Adapter.

https://bbs.archlinux.org/viewtopic.php?pid=2027597

Offline

#8 2022-03-25 14:46:48

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 565

Re: Can connect to wifi, but not the internet

dhcpcd log?
nm-connection -editor?

Smells like multiple services also.

Offline

#9 2022-03-25 14:50:18

naturalsurrender
Member
Registered: 2022-01-26
Posts: 9

Re: Can connect to wifi, but not the internet

Zod wrote:

dhcpcd log?
nm-connection -editor?

Smells like multiple services also.

So which one should I disable?

Offline

#10 2022-03-25 14:55:17

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 565

Re: Can connect to wifi, but not the internet

naturalsurrender wrote:

So which one should I disable?

Every network daemon except networkmanager...

And read seth's link.

Edit: And read this...
https://wiki.archlinux.org/title/NetworkManager

Last edited by Zod (2022-03-25 14:57:08)

Offline

#11 2022-03-25 15:15:18

naturalsurrender
Member
Registered: 2022-01-26
Posts: 9

Re: Can connect to wifi, but not the internet

Zod wrote:
naturalsurrender wrote:

So which one should I disable?

Every network daemon except networkmanager...

And read seth's link.

Edit: And read this...
https://wiki.archlinux.org/title/NetworkManager

I have dhcpcd running in the background now. If I kill it, everything crashes, so I don't know how to kill it without screwing myself over

Offline

#12 2022-03-25 15:29:27

seth
Member
Registered: 2012-09-03
Posts: 30,869

Re: Can connect to wifi, but not the internet

If I kill it, everything crashes

Everything? Like you house collapsing and the stars dropping out of the sky?

https://bbs.archlinux.org/viewtopic.php?id=57855

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

And as pointed out before, the ath9k driver has a massive bug in the current kernel, so you want to downgrade that.

Offline

#13 2022-03-26 03:27:15

naturalsurrender
Member
Registered: 2022-01-26
Posts: 9

Re: Can connect to wifi, but not the internet

seth wrote:

If I kill it, everything crashes

Everything? Like you house collapsing and the stars dropping out of the sky?

https://bbs.archlinux.org/viewtopic.php?id=57855

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

And as pointed out before, the ath9k driver has a massive bug in the current kernel, so you want to downgrade that.

Here's the output for your command:

cronie.service                           | multi-user.target.wants
dbus-org.freedesktop.network1.service    | system
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.resolve1.service    | system
dbus-org.freedesktop.timesync1.service   | system
dhcpcd.service                           | multi-user.target.wants
dirmngr.socket                           | sockets.target.wants
display-manager.service                  | system
gcr-ssh-agent.socket                     | sockets.target.wants
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpm.service                              | multi-user.target.wants
iwd.service                              | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
NetworkManager.service                   | multi-user.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire-media-session.service           | pipewire.service.wants
pipewire-session-manager.service         | user
pipewire.socket                          | sockets.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
sshd.service                             | multi-user.target.wants
systemd-network-generator.service        | sysinit.target.wants
systemd-networkd-wait-online.service     | network-online.target.wants
systemd-networkd.service                 | multi-user.target.wants
systemd-networkd.socket                  | sockets.target.wants
systemd-resolved.service                 | multi-user.target.wants
systemd-timesyncd.service                | sysinit.target.wants
xdg-user-dirs-update.service             | default.target.wants

I already downgraded to 5.16.13 kernel.
uname -a output:

Linux archlinux 5.16.13-zen1-1-zen #1 ZEN SMP PREEMPT Tue, 08 Mar 2022 20:07:38 +0000 x86_64 GNU/Linux

Offline

#14 2022-03-26 06:50:14

seth
Member
Registered: 2012-09-03
Posts: 30,869

Re: Can connect to wifi, but not the internet

Well, yeah.
You've dhcpcd, iwd, Networkmanager and systemd-networkd enabled - alllowing me post this meme for the second time this week:
LargeWarmLadybird-max-1mb.gif

Pick one, stop and disable the others.

Offline

#15 2022-03-26 11:41:49

naturalsurrender
Member
Registered: 2022-01-26
Posts: 9

Re: Can connect to wifi, but not the internet

seth wrote:

Well, yeah.
You've dhcpcd, iwd, Networkmanager and systemd-networkd enabled - alllowing me post this meme for the second time this week:
https://thumbs.gfycat.com/LargeWarmLadybird-max-1mb.gif

Pick one, stop and disable the others.

So I uninstalled iwd and systemd-networkd and my net is getting back even after reboots, thanks!

Offline

#16 2022-03-26 12:36:57

seth
Member
Registered: 2012-09-03
Posts: 30,869

Re: Can connect to wifi, but not the internet

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB