You are not logged in.

#1 2021-12-17 11:01:14

joao_reves
Member
Registered: 2021-12-17
Posts: 5

Network is unreachable for some sites [Solved]

I have that when I have a wifi connection in some routers, some site are unreachable. For example, I can ping Google but can't ping DuckDuckGo:

 ping www.google.com
PING www.google.com(mad41s14-in-x04.1e100.net (2a00:1450:4003:80e::2004)) 56 data bytes
64 bytes from mad41s14-in-x04.1e100.net (2a00:1450:4003:80e::2004): icmp_seq=1 ttl=58 time=9.95 ms 

but

 ping www.duckduckgo.com
ping: connect: Network is unreachable


This is the first problem I have encountered related to Network so I am unsure of what information I should provide.

Thank you!

Last edited by joao_reves (2021-12-17 11:59:35)

Offline

#2 2021-12-17 11:22:56

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,152
Website

Re: Network is unreachable for some sites [Solved]

1) DDG does not respond to ICMP echo requests.
2) DDG is not reachable over IPv6.

I suspect that you're on a IPv6-only network and thusly cannot reach DDG.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2021-12-17 11:24:51

joao_reves
Member
Registered: 2021-12-17
Posts: 5

Re: Network is unreachable for some sites [Solved]

Do you know how can I check this?

Offline

#4 2021-12-17 11:33:22

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,152
Website

Re: Network is unreachable for some sites [Solved]

$ ip a
$ ip -4 r
$ ip -6 r

Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#5 2021-12-17 11:37:51

joao_reves
Member
Registered: 2021-12-17
Posts: 5

Re: Network is unreachable for some sites [Solved]

This is what I got

 $ ip a
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
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 68:f7:28:a7:d6:a7 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 5c:c5:d4:e1:11:3f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.100/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp3s0
       valid_lft 2638sec preferred_lft 2638sec
    inet6 2001:8a0:7009:a400:9bb3:8f79:319:c4e/64 scope global dynamic noprefixroute
       valid_lft 89904sec preferred_lft 89904sec
    inet6 fe80::44d7:860e:7eff:dc88/64 scope link noprefixroute
       valid_lft forever preferred_lft forever 
 $ ip -4 r
192.168.1.0/24 dev wlp3s0 proto kernel scope link src 192.168.1.100 metric 600 
 $ ip -6 r
::1 dev lo proto kernel metric 256 pref medium
2001:8a0:7009:a400::/64 via fe80::ce19:a8ff:feaf:8f0f dev wlp3s0 proto ra metric 600 pref high
fe80::/64 dev wlp3s0 proto kernel metric 600 pref medium
default via fe80::ce19:a8ff:feaf:8f0f dev wlp3s0 proto ra metric 600 pref low 

Offline

#6 2021-12-17 11:38:57

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,152
Website

Re: Network is unreachable for some sites [Solved]

Yeah. You don't have an IPv4 default gateway.
Only your local network 192.168.1.0/24 is routed.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#7 2021-12-17 11:48:34

joao_reves
Member
Registered: 2021-12-17
Posts: 5

Re: Network is unreachable for some sites [Solved]

From my research, I think I need to run

 sudo route add default gw IPAddress Adapter 

, correct?

Offline

#8 2021-12-17 11:59:59

joao_reves
Member
Registered: 2021-12-17
Posts: 5

Re: Network is unreachable for some sites [Solved]

Thank you schard! It worked

Offline

#9 2023-04-26 19:49:32

SumZbrod
Member
Registered: 2023-04-26
Posts: 1

Re: Network is unreachable for some sites [Solved]

joao_reves wrote:

From my research, I think I need to run

 sudo route add default gw IPAddress Adapter 

, correct?

When I try run this command, I get error.

 sudo: route: command not found 

How to install route?

Offline

#10 2023-04-26 21:00:21

seth
Member
Registered: 2012-09-03
Posts: 60,792

Re: Network is unreachable for some sites [Solved]

pacman -F route

https://archlinux.org/packages/core/x86_64/net-tools/

Please don't necrobump, esp. what's essentially off-topic ("how do i know what provides a binary" isn't related to this thread)
Also you can just use "ip r"

Offline

#11 2023-04-26 22:17:03

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: Network is unreachable for some sites [Solved]

As noted, SumZbrod, please do not necrobump.

Closing this old solved thread.

Offline

Board footer

Powered by FluxBB