You are not logged in.

#1 2014-05-21 16:56:52

moisespedro
Member
Registered: 2013-11-07
Posts: 25

Connectivity problems (Network is unreachable)

Hi, I installed Arch two days ago and everything is going fine except for the network, that is unrealiable. First I thought it was a temporary problem with either my connection or with the server but since it is happening multiple times I think it is some configuration problem on my part. I am using a wired connection connected via dhcpd and I am having trouble with "network is unreachable" problems.

Examples:

- Trying to build screencloud from AUR:

-> Downloading screencloud-1.1.6-1-x86_64.pkg.tar.xz...
  % 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) Failed to connect to download.opensuse.org port 80: Network is unreachable 

- Trying to import infinality bundle repo key

[root@arch ~]# pacman-key -r 962DDE58 
gpg: requesting key 962DDE58 from hkp server pool.sks-keyservers.net
gpgkeys: HTTP fetch error 7: Failed to connect to pool.sks-keyservers.net port 11371: Network is unreachable
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
==> ERROR: Remote key not fetched correctly from keyserver. 

And before I was able to fetch packages from AUR repo using aurget I had to add the following line to my "/etc/hosts" file (I was getting "network is unreachable" errors too):

78.46.78.247    aur.archlinux.org 

What is going on?

EDIT: My dmesg (I think it might be useful)

Last edited by moisespedro (2014-05-21 17:06:17)

Offline

#2 2014-05-21 20:17:18

moisespedro
Member
Registered: 2013-11-07
Posts: 25

Re: Connectivity problems (Network is unreachable)

Can't download torrents via rtorrent either, what the hell

Offline

#3 2014-05-21 20:36:48

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Connectivity problems (Network is unreachable)

Instead of cursing, let us know what you have done in order to fix the issue.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2014-05-21 20:41:34

moisespedro
Member
Registered: 2013-11-07
Posts: 25

Re: Connectivity problems (Network is unreachable)

Inxsible wrote:

Instead of cursing, let us know what you have done in order to fix the issue.

Apart from adding the aur line on the /etc/hosts file I didn't do anything because I am clueless

Offline

#5 2014-05-21 20:43:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Connectivity problems (Network is unreachable)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2014-05-21 20:43:49

moisespedro
Member
Registered: 2013-11-07
Posts: 25

Re: Connectivity problems (Network is unreachable)

It seems that removing Google DNS off my router settings solved the issue (or it might be a huge coincidence).
EDIT: No, it didn't
EDIT2: By the way I configured my network exactly like the wiki teaches (I am using dhcpcd)

Last edited by moisespedro (2014-05-21 20:51:47)

Offline

#7 2014-05-22 06:52:44

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Connectivity problems (Network is unreachable)

So show us what you have done, show us the output of dhcpcd, ip addr, ping outputs, output of /etc/resolv.conf... you know?

Offline

#8 2014-05-22 10:26:47

moisespedro
Member
Registered: 2013-11-07
Posts: 25

Re: Connectivity problems (Network is unreachable)

[pedro@arch ~]$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    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: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 74:d0:2b:cc:47:48 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.2/24 brd 192.168.1.255 scope global enp2s0
       valid_lft forever preferred_lft forever
    inet6 fe80::76d0:2bff:fecc:4748/64 scope link 
       valid_lft forever preferred_lft forever 
[pedro@arch ~]$ ping -c3 google.com
PING google.com (177.43.115.168) 56(84) bytes of data.
64 bytes from googlecom168.static.host.gvt.net.br (177.43.115.168): icmp_seq=1 ttl=59 time=7.03 ms
64 bytes from googlecom168.static.host.gvt.net.br (177.43.115.168): icmp_seq=2 ttl=59 time=6.22 ms
64 bytes from googlecom168.static.host.gvt.net.br (177.43.115.168): icmp_seq=3 ttl=59 time=6.99 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 6.223/6.748/7.032/0.377 ms
[pedro@arch ~]$ cat /etc/resolv.conf 
# Generated by resolvconf
domain domain.name
nameserver 192.168.1.1

Offline

#9 2014-05-22 11:10:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Connectivity problems (Network is unreachable)

moisespedro wrote:

It seems that removing Google DNS off my router settings solved the issue (or it might be a huge coincidence).
EDIT: No, it didn't
EDIT2: By the way I configured my network exactly like the wiki teaches (I am using dhcpcd)

This posts suggests you have taken many steps on your own (which is good) and that each of these steps could reveal valuable information (also good).  But for some reason you aren't sharing what these steps were, or what lead you to these inferences (bad).  How can anyone help you if you don't describe what is happening.



EDIT by Inxsible -- Fixed it for you Trilby wink

Last edited by Inxsible (2014-05-22 14:22:02)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2014-05-22 14:03:18

moisespedro
Member
Registered: 2013-11-07
Posts: 25

Re: Connectivity problems (Network is unreachable)

I am failing to see how I am not sharing what I've done when I said I followed exactly what the Wiki said about dhcp connections. More specifically:
# systemctl enable dhcpcd.service

Also, I shared my dmesg and other outputs. How am I hiding something?

Offline

#11 2014-05-22 14:24:42

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Connectivity problems (Network is unreachable)

lets start from scratch :

Please post outputs of

sudo systemctl start dhcpcd
uname -a

&

sudo systemctl enable dhcpcd

Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#12 2014-05-22 17:53:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Connectivity problems (Network is unreachable)

moisespedro wrote:

By the way I configured my network exactly like the wiki teaches (I am using dhcpcd)

moisespedro wrote:

I am failing to see how I am not sharing what I've done when I said I followed exactly what the Wiki said about dhcp connections. More specifically:
# systemctl enable dhcpcd.service

Wiki networking article wrote:

Other ways to setup DHCP is to use dhcpcd, which is included in the base group. It is more powerful tool and allows to configure more dhcp client options. Either use the provided service file dhcpcd@.service, passing the interface name as an argument, or start it manually by running dhcpcd interface.

moisespedro wrote:

2: enp2s0


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2014-05-23 20:58:38

moisespedro
Member
Registered: 2013-11-07
Posts: 25

Re: Connectivity problems (Network is unreachable)

[root@arch ~]# systemctl start dhcpcd@enp2s0.service
Job for dhcpcd@enp2s0.service failed. See 'systemctl status dhcpcd@enp2s0.service' and 'journalctl -xn' for details.
[root@arch ~]# systemctl status dhcpcd@enp2s0.service
● dhcpcd@enp2s0.service - dhcpcd on enp2s0
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; disabled)
   Active: failed (Result: resources) since Sex 2014-05-23 17:55:33 BRT; 7s ago
  Process: 6304 ExecStart=/usr/bin/dhcpcd -q -w %I (code=exited, status=0/SUCCESS)

Mai 23 17:55:33 arch systemd[1]: PID file /run/dhcpcd-enp2s0.pid not readab...t.
Mai 23 17:55:33 arch systemd[1]: Failed to start dhcpcd on enp2s0.
Mai 23 17:55:33 arch systemd[1]: Unit dhcpcd@enp2s0.service entered failed ...e.
Hint: Some lines were ellipsized, use -l to show in full. 
[root@arch ~]# systemctl status dhcpcd.service
● dhcpcd.service - dhcpcd on all interfaces
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled)
   Active: active (running) since Sex 2014-05-23 17:54:11 BRT; 2min 14s ago
 Main PID: 6137 (dhcpcd)
   CGroup: /system.slice/dhcpcd.service
           └─6137 /usr/bin/dhcpcd -q -b

Mai 23 17:55:22 arch dhcpcd[6137]: control command: /usr/bin/dhcpcd -q -w enp2s0
Mai 23 17:55:22 arch dhcpcd[6137]: enp2s0: adding route to 192.168.1.0/24
Mai 23 17:55:22 arch dhcpcd[6137]: enp2s0: adding default route via 192.168.1.1
Mai 23 17:55:22 arch dhcpcd[6137]: enp2s0: removing route to 192.168.1.0/24
Mai 23 17:55:22 arch dhcpcd[6137]: enp2s0: removing default route via 192.1....1
Mai 23 17:55:33 arch dhcpcd[6137]: control command: /usr/bin/dhcpcd -q -w enp2s0
Mai 23 17:55:33 arch dhcpcd[6137]: enp2s0: adding route to 192.168.1.0/24
Mai 23 17:55:33 arch dhcpcd[6137]: enp2s0: adding default route via 192.168.1.1
Mai 23 17:55:33 arch dhcpcd[6137]: enp2s0: removing route to 192.168.1.0/24
Mai 23 17:55:33 arch dhcpcd[6137]: enp2s0: removing default route via 192.1....1
Hint: Some lines were ellipsized, use -l to show in full. 

EDIT: Ok, so instead of "systemctl enable dhcpcd.service" (as begginers guide says) I've ran "systemctl disable dhcpcd.service" and then "systemctl enable dhcpcd@enp2s0.service" and then I reboot my computer and, as I thought, nothing changed. I am still getting the "network is unreachable" errors.

EDIT2:

 [root@arch ~]# systemctl status dhcpcd@enp2s0.service
● dhcpcd@enp2s0.service - dhcpcd on enp2s0
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; enabled)
   Active: active (running) since Sex 2014-05-23 18:04:13 BRT; 3min 27s ago
  Process: 261 ExecStart=/usr/bin/dhcpcd -q -w %I (code=exited, status=0/SUCCESS)
 Main PID: 421 (dhcpcd)
   CGroup: /system.slice/system-dhcpcd.slice/dhcpcd@enp2s0.service
           └─421 /usr/bin/dhcpcd -q -w enp2s0

Mai 23 18:05:18 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reac...in
Mai 23 18:05:53 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is unre...it
Mai 23 18:05:53 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reac...in
Mai 23 18:06:28 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is unre...it
Mai 23 18:06:29 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reac...in
Mai 23 18:07:04 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is unre...it
Mai 23 18:07:04 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reac...in
Mai 23 18:07:37 arch systemd[1]: Started dhcpcd on enp2s0.
Mai 23 18:07:39 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is unre...it
Mai 23 18:07:39 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reac...in
Hint: Some lines were ellipsized, use -l to show in full. 

Last edited by moisespedro (2014-05-23 21:08:09)

Offline

#14 2014-05-23 21:15:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Connectivity problems (Network is unreachable)

Please paste errors in full:

moisespedro wrote:
Hint: Some lines were ellipsized, use -l to show in full. 

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2014-05-23 22:26:13

moisespedro
Member
Registered: 2013-11-07
Posts: 25

Re: Connectivity problems (Network is unreachable)

Mai 23 18:08:14 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is unreachable, expiring it
Mai 23 18:08:14 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reachable again
Mai 23 18:08:49 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is unreachable, expiring it
Mai 23 18:08:49 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reachable again
Mai 23 18:09:24 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is unreachable, expiring it
Mai 23 18:09:24 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reachable again
Mai 23 18:10:34 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is unreachable, expiring it
Mai 23 18:10:34 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reachable again
Mai 23 18:11:09 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is unreachable, expiring it
Mai 23 18:11:09 arch dhcpcd[421]: enp2s0: fe80::e6c1:46ff:fe83:b771 is reachable again 

Offline

#16 2014-05-24 22:24:50

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Connectivity problems (Network is unreachable)

you missed the output of

uname -a

Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#17 2014-05-26 21:58:36

moisespedro
Member
Registered: 2013-11-07
Posts: 25

Re: Connectivity problems (Network is unreachable)

Inxsible wrote:

you missed the output of

uname -a

From post #1's dmesg

[    0.000000] Linux version 3.14.4-1-ARCH (nobody@var-lib-archbuild-testing-x86_64-tobias) (gcc version 4.9.0 20140507 (prerelease) (GCC) ) #1 SMP PREEMPT Tue May 13 16:41:39 CEST 2014

And many other things.

Offline

Board footer

Powered by FluxBB