You are not logged in.
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
So what does your routing information look like?
Knute
Offline
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
So what does your routing information look like?
Routing information? You mean the IP address, interface, driver, subnet mask, route, dns and such?
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
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
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 204Offline
Ok. So now, what's the ip address of your phone that you are using to tether?
Knute
Offline
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 203and 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.129Offline
So, where does your 10.99 network and your 192.168 network actually meet?
Knute
Offline
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
So, where does your 10.99 network and your 192.168 network actually meet?
What? ![]()
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
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
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 ![]()
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
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)
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
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
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 ![]()
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
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
It contains 1.
Maybe something's wrong with your system? ![]()
Offline
Did you do this on your phone or the arch system in question?
Knute
Offline
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
Just double checking. ![]()
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
Just double checking.
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?
![]()
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
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
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
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? ![]()
Offline