You are not logged in.
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.comThe 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
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
I have 3 "devices", lo, enp2s0 and wlp3s0, so I guess the second is for the wired connection, right?
Offline
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
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@enp2s0The 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
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@enp2s0The 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` ![]()
Offline
Wait, I rebooted and internet works now O.o.
I remember that in a step I did
systemctl enable dhcpcd@enp2s0and that's why is working now, thank you!
Last edited by Thorvald (2016-01-04 18:28:58)
Offline
If your issue is resolved, please edit your original post and add [SOLVED] to the beginning of the title.
Offline
systemctl --now ...
Ah, cool. Thanks. Learn something new every day.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline