You are not logged in.

#1 2021-10-23 14:24:07

cheiroamilho
Member
Registered: 2021-02-06
Posts: 10

Wi-Fi not working properly: can't ping 8.8.8.8, but can ping URLs

I'm not sure what it happening, but I just finished my arch installation, still have no window manager, just wanted to install some packages from the AUR. I'm using wi-fi on this laptop, connected to the internet with iwctl, and I did what I believe is the full configuration required from the installation guide. But I noticed this weird error:

[hugo@archlaptop ~]$ git clone https://aur.archlinux.org/yay.git
Cloning into ´yay´...
remote: Enumerating objects: 414, done.
remote: Compressing objects; 100% (305/305), done.
remote: Total 414 (delta 106), reused 413 (delta 106), pack-reused 0
Receiving objects: 100% (414/414), 86.09 KiB | 579 KiB/s, done.
Resolving deltas: 100% (106/106), done.
[hugo@archlaptop ~]$ cd yay
[hugo@archlaptop ~]$ makepkg -si
==> Making package: yay 11.0.2-1 (Sat Oct 23 14:51:24 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading yay-11.0.2.tar.gz..
  % Total    % Received % Xferd  Average Speed    Time    Time       Time  Current
                                                    Dload   Upload    Total    Spent      Left    Speed
   0       0    0        0       0        0          0            0  --:--:--    --:--:--     --:--:--            0curl: (7) Couldn't connect to server
==> ERROR: Failure while downloading https://github.com/Jguer/yay/archive/v11.0.2.tar.gz
         Aborting...

This error happened with all the other AUR packages I tested for. But, on my arch install on my main machine, which uses ethernet (but is essentially the same router, same network), everything works according to plan, so it means the problem is with my laptop's network configuration.
Here's me pinging archlinux.org from this laptop:

[hugo@archlaptop yay]$ ping archlinux.org
PING archlinux.org(archlinux.org (2a01:4f9:c010:6b1f::1)) 56 data butes
64 bytes from archlinux.org (2a01:4f9:c010:6b1f::1): icmp_seq=1 ttl=52 time=66.7 ms

Here's me pinging 8.8.8.8:
[hugo@archlaptop yay]$ ping 8.8.8.8
ping: connect: Network is unreachable

It seems to me that my laptop doesn't work that well with ipv4?

I've tried my best searching the web for awnsers, but either the question isn't the same, or I get completely overwhelmed and simply don't have the knowledge to follow the guides on network troubleshooting.

`ip route show` does not give any output, but `ip -6 route` prints some stuff

Here's the output to `ip address show`:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
         valid_lft forever preferred_lft forever
     inet6 ::1/128 scope host
         valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
      link/ether b8:08:cf:bf:9b:09 brd ff:ff:ff:ff:ff:ff
      inet6 2001:8a0:67fa:cf00:ba08:cfff:febf:9b09/64 scope global dynamic nmgtmpaddr
         valid_lft 89610sec preferred_lft 89610sec
      inet6 fe80::ba08:cfff:febf:9b09/64 scope link
          valid_lft forever preferred_lft forever

Sorry for bad quality pastebin, on another topic I opened I was recommended to use pastebin scripts, but because of this internet problem I couldn't manage to download them. I notice in comparison, my main arch machine has a inet line in wlan0, but my laptop doesn't, maybe that's it? I just don't know what to do at all
Thanks in advance

Offline

#2 2021-10-23 15:09:00

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Wi-Fi not working properly: can't ping 8.8.8.8, but can ping URLs

Try code tags to make your pastegarble more easy on the eye :-)

Offline

#3 2021-10-23 15:12:32

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

Re: Wi-Fi not working properly: can't ping 8.8.8.8, but can ping URLs

Also report it for merging w/ your original thread, https://bbs.archlinux.org/viewtopic.php?id=270621

You don't have na IPv4 lease, so you can't ping IPv4 IPs - how do you obtain the lease? iwd/dhcp, dhcpcd, static, …?

Online

#4 2021-10-23 15:49:17

cheiroamilho
Member
Registered: 2021-02-06
Posts: 10

Re: Wi-Fi not working properly: can't ping 8.8.8.8, but can ping URLs

seth wrote:

Also report it for merging w/ your original thread, https://bbs.archlinux.org/viewtopic.php?id=270621

You don't have na IPv4 lease, so you can't ping IPv4 IPs - how do you obtain the lease? iwd/dhcp, dhcpcd, static, …?

I'm sorry, I have very, very limited knowledge on the subject, I do not know what is the awnser. I know I have been using iwd to connect to the internet

Offline

#5 2021-10-23 16:42:08

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

Re: Wi-Fi not working properly: can't ping 8.8.8.8, but can ping URLs

If you use iwd, then you can tell it to run DHCP  and ask for an IPv4 address: https://wiki.archlinux.org/title/Iwd#En … figuration
If you do not want that, then you'll have to run (edit: and configure) an additional program (systemd-networkd, dhcpcd, dhclient, networkmanager, connman, ...)

Last edited by progandy (2021-10-23 16:44:12)


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

Offline

#6 2021-10-23 17:12:05

cheiroamilho
Member
Registered: 2021-02-06
Posts: 10

Re: Wi-Fi not working properly: can't ping 8.8.8.8, but can ping URLs

Thanks! This was it! Added all those lines to /etc/iwd/main.conf and it worked!

Offline

#7 2021-10-23 20:22:27

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

Re: Wi-Fi not working properly: can't ping 8.8.8.8, but can ping URLs

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.

Online

Board footer

Powered by FluxBB