You are not logged in.

#1 2016-01-04 18:13:55

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

No internet in fresh arch linux install [SOLVED]

I don't find too much explanation why I can't make a

 ping 

in my newly installed arch, it returns to me

ping: unknown host www.google.com

The manual here https://wiki.archlinux.org/index.php/Ne … figuration is not clear in how to set up an internet connection and I don't know how to proceed. I have set the hostname
in both

 /etc/hostname 

and

 /etc/hosts 

, and also

 dmesg r8169 

returns me a bunch of output.
So what to do next?

Last edited by Thorvald (2016-01-04 18:29:28)

Offline

#2 2016-01-04 18:16:24

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

Re: No internet in fresh arch linux install [SOLVED]

What is the output of ip addr
Did it work during the install?


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

#3 2016-01-04 18:19:28

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: No internet in fresh arch linux install [SOLVED]

I have 3 "devices", lo, enp2s0 and wlp3s0, so I guess the second is for the wired connection, right?

Offline

#4 2016-01-04 18:21:17

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: No internet in fresh arch linux install [SOLVED]

FWIW ArchISO starts dhcpcd automatically, but nothing will set up any network agent for you in the fresh installation. you need to do this yourself (arch way \o/). also resolv.conf and nameserver entries are what you need for resolving hostnames

Last edited by tom.ty89 (2016-01-04 18:22:00)

Offline

#5 2016-01-04 18:22:07

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

Re: No internet in fresh arch linux install [SOLVED]

Correct.  The installation iso has dhcpcd service enabled by default, a fresh new install does not: you need to enable the networking service you want to use.  So if you are using wired ethernet:

systemctl enable dhcpcd@enp2s0
systemctl start dhcpcd@enp2s0

The second of those will actually start networking for the current session, the first will "enable" it so it will be run on every boot so you should be 'automatically' connected from then on and not need to run these commands any more.


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

Offline

#6 2016-01-04 18:22:51

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: No internet in fresh arch linux install [SOLVED]

Trilby wrote:

Correct.  The installation iso has dhcpcd service enabled by default, a fresh new install does not: you need to enable the networking service you want to use.  So if you are using wired ethernet:

systemctl enable dhcpcd@enp2s0
systemctl start dhcpcd@enp2s0

The second of those will actually start networking for the current session, the first will "enable" it so it will be run on every boot so you should be 'automatically' connected from then on and not need to run these commands any more.

There's the graceful `systemctl --now enable UNIT` big_smile

Offline

#7 2016-01-04 18:23:19

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: No internet in fresh arch linux install [SOLVED]

Wait, I rebooted and internet works now O.o.

I remember that in a step I did

systemctl enable dhcpcd@enp2s0

and that's why is working now, thank you!

Last edited by Thorvald (2016-01-04 18:28:58)

Offline

#8 2016-01-04 18:27:40

tyrannis
Member
Registered: 2015-11-06
Posts: 94

Re: No internet in fresh arch linux install [SOLVED]

If your issue is resolved, please edit your original post and add [SOLVED] to the beginning of the title.

Offline

#9 2016-01-04 18:27:47

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

Re: No internet in fresh arch linux install [SOLVED]

tom.ty89 wrote:

systemctl --now ...

Ah, cool.  Thanks.  Learn something new every day.


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

Offline

Board footer

Powered by FluxBB