You are not logged in.

#1 2015-07-04 17:36:43

chosentorture
Member
Registered: 2014-10-31
Posts: 58

[SOLVED] unable to install Arch; 100% packet loss when pinging

I've been at this for 3 days now and I don't understand what's wrong. I can't seem to get an internet connection to work during the Arch installation on my Desktop. Here's what've tried.

  • I downloaded the Arch ISO from a torrent and verified it's MD5, SHA1 and PGP signature.

  • I created a live USB using the dd command as instructed in the Arch wiki.

  • I tried booting Arch in both the UEFI mode and non-UEFI mode but both have the same results (I have a UEFI BIOS).

  • After booting the ISO and reaching the zsh shell, I used the ip link command to get the enp0s20u2 interface name for my tethered connection via an android phone.

  • I entered dhcpcd enp0s20u2 in the shell and it got it's addresses as it's supposed to.

  • Now, when I try to ping any website, it gives me an error. I've tried pinging www.google.com, 8.8.8.8 and numerous other websites but it all fails with a 100% packet loss. I got the same result with wvdial when I tried to get an internet connection with a 3G USB modem. In both cases, the connection is established but the pinging fails with 100% packet loss. I've got a working internet connection on my android and with my 3G USB modem on an another Arch Laptop with the same SIM card.

I hope it's not a dhcpcd bug or something like that because I'm tired of not seeing any progress on a brand new desktop. Help please?

Last edited by chosentorture (2015-07-05 17:30:40)

Offline

#2 2015-07-04 17:59:58

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

So what does your routing information look like?


Knute

Offline

#3 2015-07-04 18:10:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Also, have you verified that your phone works in USB Tethered mode using other computers?.  There are certain amoral carriers in this country that deliberately break that functionality.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2015-07-04 18:25:24

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Knute wrote:

So what does your routing information look like?

Routing information? You mean the IP address, interface, driver, subnet mask, route, dns and such?

ewaller wrote:

Also, have you verified that your phone works in USB Tethered mode using other computers?.  There are certain amoral carriers in this country that deliberately break that functionality.

I installed Arch on my laptop using the same phone with USB tethering and I am writing this post with USB tethered connection with that same SIM in the phone.

Offline

#5 2015-07-04 18:30:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

chosentorture wrote:

Routing information? You mean the IP address, interface, driver, subnet mask, route, dns and such?

Yes.  The output of ip route should provide the required information.   You might also try "down"ing other network interfaces before you start the tether

I installed Arch on my laptop using the same phone with USB tethering and I am writing this post with USB tethered connection with that same SIM in the phone.

Fair enough.  Just checking


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2015-07-04 18:51:09

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

ewaller wrote:
chosentorture wrote:

Routing information? You mean the IP address, interface, driver, subnet mask, route, dns and such?

Yes.  The output of ip route should provide the required information.   You might also try "down"ing other network interfaces before you start the tether

I installed Arch on my laptop using the same phone with USB tethering and I am writing this post with USB tethered connection with that same SIM in the phone.

Fair enough.  Just checking

I tried downing the enp2s0 interface (ethernet) but I still get a 100% packet loss.
The output of ip route is -

default via 192.168.42.129 dev enp0s20u2 metric 204
192.168.42.0/24 dev enp0s20u2 proto kernel   scope link    src 192.168.42.198    metric 204

Offline

#7 2015-07-04 19:43:31

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Ok. So now, what's the ip address of your phone that you are using to tether?


Knute

Offline

#8 2015-07-04 20:43:10

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Knute wrote:

Ok. So now, what's the ip address of your phone that you are using to tether?

I restarted the Arch installation and the ip route of the tethered desktop is -

default via 192.168.42.129 dev enp0s20u2 metric 203
192.168.42.0/24 dev enp0s20u2 proto kernel   scope link    src 192.168.42.152    metric 203

and the ip route of the phone is -

default via 10.99.160.1 dev rmnet0
10.99.160.1 dev rmnet0    scope link
192.168.42.0/24 dev rndis0    proto kernel   scope link    src 192.168.42.129

Offline

#9 2015-07-04 20:54:28

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

So, where does your 10.99 network and your 192.168 network actually meet?


Knute

Offline

#10 2015-07-04 21:07:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Knute wrote:

So, where does your 10.99 network and your 192.168 network actually meet?

That is kind of what I was leading up to.  But, the OP said that it worked with other devices, so my assumption is that they do have NAT on the phone.

chosentorture,
Can you ping 192.168.42.129 (The address of the phone) from Arch?
Can you ping 192.168.42.152(The address of the Arch Box) from the phone?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#11 2015-07-04 21:17:57

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Knute wrote:

So, where does your 10.99 network and your 192.168 network actually meet?

What? neutral

ewaller wrote:
Knute wrote:

So, where does your 10.99 network and your 192.168 network actually meet?

That is kind of what I was leading up to.  But, the OP said that it worked with other devices, so my assumption is that they do have NAT on the phone.

chosentorture,
Can you ping 192.168.42.129 (The address of the phone) from Arch?
Can you ping 192.168.42.152(The address of the Arch Box) from the phone?

Yeah, both the pings work fine.

Offline

#12 2015-07-04 21:27:42

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

The gateway on your phone is a different class of network than the connection between your phone and Arch.  If your phone isn't routing Arch to your phone's gateway, then you are on an intranet, but not the internet.  (intranet is the network between your phone and arch)


Knute

Offline

#13 2015-07-04 21:32:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

What knute is saying is that there are two networks here.  The 192/24 network, and the 10/8 network.  The 10. network is the network provided by your carrier that the phone uses to talk to the internet.  The 192/24 network is a small private network exists between your phone and your computer.  We have just proven that that network works, but has no connection to the Internet.  What is needed is either a Bridge or NAT forwarding (Network Address Translation) to move packets from one network to the other.  This is the responsibility of the phone.  It is also why I asked if it works with other systems.

Is the phone rooted?

Edit:  Knute and I were posting at the same time smile

Last edited by ewaller (2015-07-04 21:33:16)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#14 2015-07-04 21:36:37

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Knute wrote:

The gateway on your phone is a different class of network than the connection between your phone and Arch.  If your phone isn't routing Arch to your phone's gateway, then you are on an intranet, but not the internet.  (intranet is the network between your phone and arch)

ewaller wrote:

What knute is saying is that there are two networks here.  The 192/24 network, and the 10/8 network.  The 10. network is the network provided by your carrier that the phone uses to talk to the internet.  The 192/24 network is a small private network exists between your phone and your computer.  We have just proven that that network works, but has no connection to the Internet.  What is needed is either a Bridge or NAT forwarding (Network Address Translation) to move packets from one network to the other.  This is the responsibility of the phone.  It is also why I asked if it works with other systems.

Is the phone rooted?

Edit:  Knute and I were posting at the same time smile

knute - Ok, I get it.

ewaller - I'm positive that my phone works with other systems because I'm using the same phone to connect to my Arch laptop and talk here.
Yeah, my phone is rooted. I haven't unlocked it's bootloader though if that's relevant.

EDIT: I get the same type of output with my Arch laptop and on the phone when both of them are tethered and the internet works fine on the laptop.

Last edited by chosentorture (2015-07-04 22:13:59)

Offline

#15 2015-07-04 22:21:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

When you have a USB tether established (and you have an IPv4 address in Arch), check your phone and ensure that ip_forwarding is enabled:

shell@htc_m8:/ $ cat /proc/sys/net/ipv4/ip_forward                             
1
shell@htc_m8:/ $ 

That file should not contain '0'.  I did this with wifi tether and a USB ADB shell.  You will probably need to use a local shell if the USB is being used in a tethered mode.

Edit:  You and I were posting at the same time.   Now I am really confused hmm

Last edited by ewaller (2015-07-04 22:22:55)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#16 2015-07-04 22:30:21

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

ewaller wrote:

When you have a USB tether established (and you have an IPv4 address in Arch), check your phone and ensure that ip_forwarding is enabled:

shell@htc_m8:/ $ cat /proc/sys/net/ipv4/ip_forward                             
1
shell@htc_m8:/ $ 

That file should not contain '0'.  I did this with wifi tether and a USB ADB shell.  You will probably need to use a local shell if the USB is being used in a tethered mode.

Edit:  You and I were posting at the same time.   Now I am really confused hmm

It contains 1.

Maybe something's wrong with your system? tongue

Offline

#17 2015-07-05 00:23:05

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Did you do this on your phone or the arch system in question?


Knute

Offline

#18 2015-07-05 02:33:09

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Knute wrote:

Did you do this on your phone or the arch system in question?

On my phone.
I used the terminal emulator app on my phone while the connection was made to the desktop.

Offline

#19 2015-07-05 03:15:21

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Just double checking.  smile

You have other devices that are tethered through your phone?  Are they on at 192.168.whatever as well?  And if so, do you have any problems with them?


Knute

Offline

#20 2015-07-05 03:32:44

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Knute wrote:

Just double checking.  smile

You have other devices that are tethered through your phone?  Are they on at 192.168.whatever as well?  And if so, do you have any problems with them?

smile

Yes, like I said, I used the same phone to install Arch on my laptop and post this thread. I examined the outputs of ip route when my phone was tethering my laptop and both of them had the same structure that the ip route outputs of the phone and the desktop have which I posted here.

EDIT - And yeah, the laptop was on 192.168 as well and is working fine.

Last edited by chosentorture (2015-07-05 03:37:39)

Offline

#21 2015-07-05 06:16:53

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

This is strange. I can't ping any addresses on my mobile either but the internet on my mobile works fine. Obviously, I've only checked internet connectivity on my desktop by pinging and it failed.

Is it possible that one can access the internet without issues but can't ping any websites on it?

Offline

#22 2015-07-05 13:14:15

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

chosentorture wrote:

Is it possible that one can access the internet without issues but can't ping any websites on it?

Yes.  There are firewall rules that can prevent pings.


Knute

Offline

#23 2015-07-05 17:33:15

chosentorture
Member
Registered: 2014-10-31
Posts: 58

Re: [SOLVED] unable to install Arch; 100% packet loss when pinging

Perhaps there should be warning in the Beginner's Guide that pinging websites is not a foolproof way to confirm the presence of an internet connection? hmm

Offline

Board footer

Powered by FluxBB