Linux – Arch Linux – connect: Network is unreachable

arch linuxnetworking

After five unsuccessful Arch Linux installations, I've got two that installed correctly. The first time, the network worked fine, and I was even installing Arch Linux over SSH.

After booting from the installed system instead of the live CD, it can't connect to the network, I get the following message when I try to ping anything, even my router:

connect: Network is unreachable

I've tried installing Arch again, because nothing on the Internet seemed to fix my issue. After installing, I'm getting the same issue.

It appears it's failing to start eth0 because it times out.

Best Answer

The problem I was facing was that there was no eth0 (from what I can understand.) Run the command ip link, this should output your interfaces. I did not have the eth0 interface. Instead I had enp1s8.

Because I was using static, I copied the example profile with cd /etc/netctl then cp examples/ethernet-static my-network. After that, I edited my-network with nano my-network, and changed the Interface from eth0 to en1s8 (or whatever your adapter is in ip link). Finally, I enabled it to use that profile on startup with netctl enable my-network.

Enabling the profile will ensure that it starts upon boot, but there is no need to reboot the system, simply run netctl start my-network to initialize it immediately.

I was able to get help on the official Arch Linux forums, you can view my topic there.

Related Question