You are not logged in.

#1 2017-02-03 00:24:51

larvasapiens
Member
Registered: 2015-12-16
Posts: 10

No internet in LiveUSB / Fresh Installation

Hello Arch community. Some weeks ago, I was installing Arch in a PC, but I had to interrupt the proccess just after configuring the hostname (as described in https://wiki.archlinux.org/index.php/In … e#Hostname ). Yesterday I finally got to resume the installation. I used arch-chroot (as I hadn't installed a boot loader yet, the computer just throws an error about a missing GRUB file) with a LiveUSB. I think that the image I have now is a newer version (2017-01-01) than the one I used in the interrupted installation. The thing is, I couldn't get access to internet. I decided I could just wipe out everything and start from zero again, but I couldn't get the LiveUSB archiso to ping any website either. I've read a lot of things in the forums, but none has solved the problem. Here's some (selected) output that could be useful (from the LiveUSB):

ping -c 3 localhost

PING localhost(localhost.localdomain (::1)) 56 data bytes
64 bytes from localhost(localhost.localdomain (::1)) icmp_seq=1 ttl=64 time=0.043ms
...

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2032 ms
rtt min/avg/max/mdev = 0.043/0.079/0.144/0.046 ms

ping -c 3 www.google.com

PING www.google.com (216.58.219.68) 56(84) data bytes of data.

--- www.google.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2030 ms

ping -c 3 8.8.8.8

PING 8.8.8.8 (8.8.8.8) 56(84) data bytes of data.

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2030 ms

ip link

1: lo ...
2: enp0s25: <BROADCAST,MULTICAST,IP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 00:22:64:1d:23:bc brd ff:ff:ff:ff:ff:ff

route

Kernel IP routing table
Destination    Gateway    Genmask    Flags    Metric    Ref    Use    Iface
default    172.17.8.129    0.0.0.0    UG    202    0    0    enp0s25 
172.17.8.128    0.0.0.0    255.255.255.192    UG    202    0    0    enp0s25

lspci -v

...
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
...
Kernel driver in use: e1000e
Kernel modules: e1000e
...

I've tried

 modeprobe e1000e 

and

 dhcpcd enp0s25 

with no result. I also tried to use dhclient like this:

pkill dhcpcd
systemctl stop dhcpcd@enp0s25.service
systemctl start dhclient@enp0s25.service

with no luck, again (I'm actually not sure if this is the right way to use dhclient. Couldn't find any clear example).

I hope you can help me, I really love arch smile

Last edited by larvasapiens (2017-02-03 14:03:36)

Offline

#2 2017-02-03 12:02:27

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: No internet in LiveUSB / Fresh Installation

Immediately after booting the liveusb, what do these commands show :

ip addr
ip -family inet route show
ip -family inet6 route show


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2017-02-03 17:32:29

larvasapiens
Member
Registered: 2015-12-16
Posts: 10

Re: No internet in LiveUSB / Fresh Installation

ip addr

1: lo ...
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 00:22:64:1d:23:bc brd ff:ff:ff:ff:ff:ff
    inet 172.17.8.145/26 brd 172.17.8.191 scope global enp0s25
    valid_lft forever preferred_lft forever
    inet6 fe80::b87f:241b:ad66:22a9/64 scope link
    valid_lft forever preferred_lft forever

ip -family inet route show

default via 172.17.8.129 dev enp0s25 src 172.17.8.145 metric 202
172.17.8.128/26 dev enp0s25 proto kernel scope link src 172.17.8.145 metric 202

ip -family inet route show

fe80::/64 dev enp0s25 proto kernel metric 256 pref medium

Offline

#4 2017-02-03 17:54:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: No internet in LiveUSB / Fresh Installation

Did you run dhcpcd  ?  You should.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2017-02-03 20:14:15

larvasapiens
Member
Registered: 2015-12-16
Posts: 10

Re: No internet in LiveUSB / Fresh Installation

Yes, I did. But it didn't work either hmm

Offline

#6 2017-02-03 21:30:24

Stewart Little
Member
From: England, UK
Registered: 2017-01-18
Posts: 120

Re: No internet in LiveUSB / Fresh Installation

Did you also follow the setup advice from the Arch Linux Wiki?


“Great minds discuss ideas; average minds discuss events; small minds discuss people.” -Eleanor Roosevelt
“It is our choices, that show what we truly are, far more than our abilities.” -J. K Rowling
-----
How to Ask Questions the Smart Way

Offline

#7 2017-02-03 21:55:29

larvasapiens
Member
Registered: 2015-12-16
Posts: 10

Re: No internet in LiveUSB / Fresh Installation

Yes. I have a hostname, I can ping my hostname and my driver is loaded successfully.

Is my method of using dhclient correct?

pkill dhcpcd
systemctl stop dhcpcd@enp0s25.service
systemctl start dhclient@enp0s25.service

Offline

#8 2017-02-04 14:00:18

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: No internet in LiveUSB / Fresh Installation

the pkill dhcpcd is not needed and may even cause problems.

before switching to another client , you may want to try connecting manually .

just stop the dhcpcd@enp0s25.service , then run dhcpcd enp0s25 .
The output should help with troubleshooting your connection.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2017-02-06 13:31:37

larvasapiens
Member
Registered: 2015-12-16
Posts: 10

Re: No internet in LiveUSB / Fresh Installation

Ok, I issued (on a fresh start of the LiveUSB):

systemctl stop dhcpcd@enp0s25.service
dhcpcd enp0s25

and got:

DUID 00:01:00:01:20:2b:33:b3:00:22:64:1d:23:bc
enp0s25: IAID 64:1d:23:bc
enp0s25: rebinding lease of 172.17.8.149
enp0s25: leased 172.17.8.149 for 604800 seconds
enp0s25: changing route to 172.17.8.128/26
enp0s25: changing default route via 172.17.8.129
forked to background, child pid 623

Then I tried to ping google, with the same result (3 packets transmited, 100% packet loss) sad

Offline

#10 2017-02-06 15:19:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: No internet in LiveUSB / Fresh Installation

Can you ping 172.17.8.129?
Edit:  Can you ping 138.201.81.199  (an Arch Linux server) ?

Last edited by ewaller (2017-02-06 15:20:38)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2017-02-06 15:47:55

larvasapiens
Member
Registered: 2015-12-16
Posts: 10

Re: No internet in LiveUSB / Fresh Installation

Update: just to try, I downloaded the lastest Linux Mint (18) image and prepared a LiveUSB using the same usbstick I used with arch. The Linux Mint image have access to the internet with no problems.

Offline

#12 2017-02-06 15:50:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: No internet in LiveUSB / Fresh Installation

Good information.  What address is being assigned to your card in Mint?  Did you get a chance to ping the devices I had suggested in #10?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#13 2017-02-08 16:02:22

larvasapiens
Member
Registered: 2015-12-16
Posts: 10

Re: No internet in LiveUSB / Fresh Installation

Sorry for the late response, I've been busy lately. I can ping 172.17.8.129, but not the Arch server.
I ended up installing Linux Mint in one partition in the meanwhile, but I'm still interested in Arch. From the Mint installation, this is what I get after running route:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         172.17.8.129    0.0.0.0         UG    100    0        0 enp0s25
link-local      *               255.255.0.0     U     1000   0        0 enp0s25
172.17.4.2      172.17.8.129    255.255.255.255 UGH   100    0        0 enp0s25
172.17.8.128    *               255.255.255.192 U     100    0        0 enp0s25

Could it be that the 172.17.4.2 destination is missing in the Arch Live USB? How could I add it?

Offline

#14 2017-02-09 16:58:51

Stewart Little
Member
From: England, UK
Registered: 2017-01-18
Posts: 120

Re: No internet in LiveUSB / Fresh Installation

By editing the /etc/hosts file and then you should see the list here is mine:

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>	<hostname.domain.org>	<hostname>
127.0.0.1	localhost.localdomain	localhost
::1		localhost.localdomain	localhost

# End of file

If you check the /etc/hosts file on Linux mint it looks similar to the one you've provided then copy some of the settings over to the Arch Linux partition. If both don't look the same then it must be a different network file which I haven't come across....


“Great minds discuss ideas; average minds discuss events; small minds discuss people.” -Eleanor Roosevelt
“It is our choices, that show what we truly are, far more than our abilities.” -J. K Rowling
-----
How to Ask Questions the Smart Way

Offline

#15 2017-02-13 15:04:20

larvasapiens
Member
Registered: 2015-12-16
Posts: 10

Re: No internet in LiveUSB / Fresh Installation

The contents of that file in Mint are:

127.0.0.1 localhost
127.0.1.1 Eva04

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe02::1 ip6-allnodes
fe02::2 ip6-allrouters

Eva04 is the hostname. In Arch, the file is the same as you provided.

Offline

#16 2017-02-14 12:21:51

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: No internet in LiveUSB / Fresh Installation

/etc/hosts is used to translate names into ip-addresses, the change needs to be made in the routing table .

try

route add 172.17.4.2 gw 172.17.8.129

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB