Skip to main content
Topic: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.) (Read 1318 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Hi everyone!

I am a first time Artix user and post here!

I am having some issue with my wifi connection. I installed Artix with openrc and networkmanager and that got me working with ethernet cable. However, with the wifi connection, I am able to access some sites and not others. For instance I can access google.com but not github.com. Moreover, when I ping these two websites I get these results:

Code: [Select]
[computer name]# ping google.com
PING google.com(2800:3f0:4001:82f::200e (2800:3f0:4001:82f::200e)) 56 data bytes
64 bytes from 2800:3f0:4001:82f::200e (2800:3f0:4001:82f::200e): icmp_seq=1 ttl=114 time=22.5 ms
64 bytes from 2800:3f0:4001:82f::200e (2800:3f0:4001:82f::200e): icmp_seq=2 ttl=114 time=23.9 ms
64 bytes from 2800:3f0:4001:82f::200e (2800:3f0:4001:82f::200e): icmp_seq=3 ttl=114 time=23.3 ms
64 bytes from 2800:3f0:4001:82f::200e (2800:3f0:4001:82f::200e): icmp_seq=4 ttl=114 time=22.8 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 22.458/23.106/23.886/0.548 ms

Code: [Select]
[computer name]# ping github.com
PING github.com (20.201.28.151) 56(84) bytes of data.
From 192.168.0.255 icmp_seq=10 Destination Host Unreachable
From 192.168.0.255 icmp_seq=11 Destination Host Unreachable
From 192.168.0.255 icmp_seq=12 Destination Host Unreachable
From 192.168.0.255 icmp_seq=15 Destination Host Unreachable
From 192.168.0.255 icmp_seq=16 Destination Host Unreachable
^CFrom 192.168.0.255 icmp_seq=17 Destination Host Unreachable

--- github.com ping statistics ---
18 packets transmitted, 0 received, +6 errors, 100% packet loss, time 47162ms
pipe 4

Seeing this, I would assume that I cannot ping ipv4 domains, but I am not certain of that. What I managed to grasp my head around is that might be a DNS issue. So I tried to install these two packages and set it up a few different ways but with no luck:

Code: [Select]
local/dhclient 4.4.2.P1-1
    A standalone DHCP client from the dhcp package
local/dnsmasq 2.85-1
    Lightweight, easy to configure DNS forwarder and DHCP server

Since I had no success and I am willing to learn more about this issue I decided to post the question here =]

Any help is most certaily appreciated!

Cheers!

Ps.: I would assume that the title is not very good... If I can change it later to be more precise on the problem I will

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #1
Code: [Select]
# ifconfig wlan0 (or ip addr show wlan0)
# route
# ping 1.1.1.1
and post results.

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #2
Code: [Select]
[name@computer ~]$ ip addr show wlan0
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 64:32:a8:1b:06:1b brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.255/24 brd 192.168.0.255 scope global dynamic noprefixroute wlan0
       valid_lft 34sec preferred_lft 34sec
    inet6 2804:14d:8084:83f9::1003/128 scope global dynamic noprefixroute
       valid_lft 72684sec preferred_lft 58284sec
    inet6 2804:14d:8084:83f9:10e3:6ddd:c8dd:d8cd/64 scope global dynamic noprefixroute
       valid_lft 72685sec preferred_lft 58285sec
    inet6 fe80::bdf4:17d0:b56:7d92/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

Code: [Select]
[name@computer ~]$ ip route # hopefully this is the same as the route command you asked for
default via 192.168.0.1 dev wlan0 proto dhcp metric 20600
127.0.0.0/8 via 127.0.0.1 dev lo
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.255 metric 600

Code: [Select]
[name@computer ~]$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
From 192.168.0.255 icmp_seq=1 Destination Host Unreachable
From 192.168.0.255 icmp_seq=2 Destination Host Unreachable
From 192.168.0.255 icmp_seq=3 Destination Host Unreachable
From 192.168.0.255 icmp_seq=4 Destination Host Unreachable
From 192.168.0.255 icmp_seq=5 Destination Host Unreachable
^C
--- 1.1.1.1 ping statistics ---
7 packets transmitted, 0 received, +5 errors, 100% packet loss, time 6059ms


Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #3
If wired works fine, then we should rule out a problem in your installation. Look into your router's settings, specifically in the wireless section, if there's an IPv6/IPv4 option disabled somewhere.

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #4
Something is wrong in routing.

Post,
Code: [Select]
$traceroute 1.1.1.1

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #5
@nous I could not find any setting that might not be enabled for ipv4 or ipv6 on the router. Interesting enough, and forgot to mention on the post before, all other devices are working on wirelesss: cells and another notebook.

@calvinh here is the output

Code: [Select]
[name@computer ~]$ traceroute 1.1.1.1
traceroute to 1.1.1.1 (1.1.1.1), 30 hops max, 60 byte packets
 1  192.168.0.142 (192.168.0.142)  198.169 ms !H  198.131 ms !H  198.108 ms !H

Another interesting fact, I could not access the router settings from the wireless. I was able via ethernet though.

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #6
wlan0 is not configured properly (wrong ipv4 and multiple ipv6 addresses, wrong default gw). Check your net config in the system and router.

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #7
I am not sure what exactly to set up properly. I am very new to this subject. Would mind elaborate bit more on what setting I am looking for?

from what I could understand, since I am using NetworkManager, its internal dhcp client was supposed to be managing the ipv4, ipv6 settings properly for me. But from that I am a bit lost of what is not working as it is supposed to.

I tried to only change the default gateway as well, but nothing changed

Code: [Select]
ip route add default via 192.168.0.1 dev wlan0 # took this from the example in the man

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #8
Wait, just noticed this:
Code: [Select]
[name@computer ~]$ ip addr show wlan0
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 64:32:a8:1b:06:1b brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.255/24 brd 192.168.0.255 scope global dynamic noprefixroute wlan0
Is really your assigned IP address the broadcast address?

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #9
@nous, you nailed it! I changed with the broadcast setting with these two commands and it worked!

Code: [Select]
 ip address add 192.168.0.44/24 broadcast + dev wlan0

Code: [Select]
ip address del 192.168.0.255/24 dev wlan0

However I am failing to made this change permanent. After a few moments the ip address that is the same as the broadcast comes back.

I could not find the file where this information is stored nor the appropriate command. Is there a simple way of making such change permanet?

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #10
For starters, try to switch temporarily to connman (remember to disable networkmanager). If it works, then NM settings should be investigated.

Re: [Network] [Wifi] Some sites able to ping and others not (google and github e.g.)

Reply #11
@nous, you nailed it! I changed with the broadcast setting with these two commands and it worked!

Code: [Select]
 ip address add 192.168.0.44/24 broadcast + dev wlan0

Code: [Select]
ip address del 192.168.0.255/24 dev wlan0

However I am failing to made this change permanent. After a few moments the ip address that is the same as the broadcast comes back.

I could not find the file where this information is stored nor the appropriate command. Is there a simple way of making such change permanet?

Could be the dhcp lease renew request which changes your old ip. If that's the case, either change to use static ip in your system or change the dhcpd settings (most likely in your router, this is preferred solution).