You are not logged in.

#1 2018-07-20 16:17:22

Physicist137
Member
Registered: 2018-07-20
Posts: 4

[SOLVED] I have no internet! connect: Network is unreachable

After some searching, I've found https://bbs.archlinux.org/viewtopic.php?id=165720
But the solution didn't work for me. Or I did something wrong.

I've installed Arch Linux normally, but, when I log in, it has no internet.

I couldn't install xorg, or anything, because pacman won't do anything without internet.
Thus, I do not have access to copy paste. Try not to ask for commands which displays a huge output for me to type the result big_smile.

ping www.google.com
ping: www.google.com: Temporary failure in name resolution.

ping 8.8.8.8
connect: Network is unreachable

"ip link" command lists two interfaces: lo, enp2s0.
Initially it was down, but manually enabling it with "ip link set enp2s0 up" didn'twork.

Running "netctl list" returns nothing. When I manually did my own network file, copying ethernet-static from /etc/netctl/examples and changing from eth0 to enp2s0, and enabled it with "netctl enable mynetwork" it didn't work.

I have no idea what else to do. I think I'll reinstall it again and try your suggestions/solutions with a freshly reinstalled system.
Any help would be welcome.
It is my first time trying to install Arch Linux.

Also: How do I post code with that neat blue squary  background? big_smile

Last edited by Physicist137 (2018-07-26 14:47:02)

Offline

#2 2018-07-20 16:26:01

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

Re: [SOLVED] I have no internet! connect: Network is unreachable

for now, try sudo dhcpcd

Edit:  I assume you have your wired connection connected to a router

Last edited by ewaller (2018-07-20 16:26:54)


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

#3 2018-07-20 16:30:08

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

Re: [SOLVED] I have no internet! connect: Network is unreachable

It sounds like you skipped the link to Network Configuration in the installation guide.

You need to enable a networking service.  The thread you linked to had a proper solution for the time - however it was a bit outdated.  Some time ago network interface naming changed, so if you literally tried `systemctl enable dhcpcd@eth0` as described in that thread, that would not help.  You need to replace 'eth0' with your interface - in this case 'enp2s0'.


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

Offline

#4 2018-07-20 17:46:35

timothyk.tech
Member
Registered: 2018-07-06
Posts: 9

Re: [SOLVED] I have no internet! connect: Network is unreachable

I usually have to run "systemctl start dhcpcd".

you should also enable it afterwards, "systemctl enable dhcpcd". this allows it to start on bootup

Offline

#5 2018-07-26 14:42:47

Physicist137
Member
Registered: 2018-07-20
Posts: 4

Re: [SOLVED] I have no internet! connect: Network is unreachable

ewaller wrote:

for now, try sudo dhcpcd

Edit:  I assume you have your wired connection connected to a router


That worked immediately after I typed it.
Thanks!
Though later on I decided to reinstall the system, and I used the other one.

Offline

#6 2018-07-26 14:44:25

Physicist137
Member
Registered: 2018-07-20
Posts: 4

Re: [SOLVED] I have no internet! connect: Network is unreachable

timothyk.tech wrote:

I usually have to run "systemctl start dhcpcd".

you should also enable it afterwards, "systemctl enable dhcpcd". this allows it to start on bootup

I never tested your command because the other two worked when I did.
But thanks for your help anyway smile.

Last edited by Physicist137 (2018-07-26 14:48:05)

Offline

#7 2018-07-26 14:45:53

Physicist137
Member
Registered: 2018-07-20
Posts: 4

Re: [SOLVED] I have no internet! connect: Network is unreachable

Trilby wrote:

It sounds like you skipped the link to Network Configuration in the installation guide.

You need to enable a networking service.  The thread you linked to had a proper solution for the time - however it was a bit outdated.  Some time ago network interface naming changed, so if you literally tried `systemctl enable dhcpcd@eth0` as described in that thread, that would not help.  You need to replace 'eth0' with your interface - in this case 'enp2s0'.


I've reinstalled the operating system, and this command worked for me. Internet began to work once I did it.
Thanks very much! By the way, I am already replying this from my arch linux big_smile.

Last edited by Physicist137 (2018-07-26 14:47:42)

Offline

Board footer

Powered by FluxBB