You are not logged in.

#1 2013-04-13 18:36:21

ChaosNil77
Member
Registered: 2013-04-10
Posts: 4

Arch installation network problems

Hi, I am desperately trying to get Arch running on my desktop PC after having success with my laptop. However, I have had a few problems during the installation process. First, I was unable to establish an internet connection.
Running:

ping -c 3 www.google.com

returned:

ping: unknown host www.google.com

It turns out that I was getting an IP address briefly and 'losing' it straight away. After searching on the internet, I found the following commands:

dhcpcd eth0 -k
dhcpcd eth0 --nohook mtu

This sorted the problem and I was able to proceed with the installation.
The problem I have now is that I would like these commands to run at startup. I read suggestions of placing a script in /etc/rc.conf but this does not exist on my computer. The other solution identifies using systemd to run the commands at startup. I do not know how to do this and have been unable to figure it out using the Arch wiki. Could someone please help by explaining how to run commmands at startup?

Thank you

Offline

#2 2013-04-13 18:59:56

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Arch installation network problems

1.what type of network interfaces you have in your laptop?
2. What is the output of

 ip addr

in your laptop?
3. how do you connect to internet usually? Does it need an authentication ID, password on the ISP's webpage on a browser to get internet?

Last edited by hadrons123 (2013-04-13 19:00:50)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#3 2013-04-13 19:37:04

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

Re: Arch installation network problems

I think you need to take a look atthe well supported, soon to be deprecated, Netcfg or at the newer, but slightly immature but eventually the Arch standard, netctl

or, mayhap, wicd


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

#4 2013-04-13 19:39:16

ChaosNil77
Member
Registered: 2013-04-10
Posts: 4

Re: Arch installation network problems

Thanks for the quick response,

1. I am using a cabled connection on the laptop (I have not set up the wireless yet).

2. ip addr returns:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1492 qdisc mq state UP qlen 1000
    link/ether 1c:75:08:f5:7a:e6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.7/24 brd 192.168.2.255 scope global enp1s0
    inet6 fe80::1e75:8ff:fef5:7ae6/64 scope link 
       valid_lft forever preferred_lft forever
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether ec:55:f9:53:ed:1e brd ff:ff:ff:ff:ff:ff

3. I do not usually need authentication or ISP passwords to access the internet.

Offline

#5 2013-04-13 22:08:36

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Arch installation network problems

there is no eth0 interface on your laptop .

dhclient enp1s0

should bring your ethernet port up. What happens when you do that?


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#6 2013-04-13 22:54:38

ChaosNil77
Member
Registered: 2013-04-10
Posts: 4

Re: Arch installation network problems

When I run

dhclient enpls0

I get

Cannot find device "enpls0"

However, when I run:

systemctl start dhcpcd@enp1s0

I get a connection and everything runs fine. It is on my desktop however, that I am having real problems. I am unable to obtain a connection without using the commmands I listed in my original post. I thought that running them on startup was the solution but it seems that I should be able to establish a connection without running them at all.

Offline

#7 2013-04-13 23:07:03

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

Re: Arch installation network problems

ChaosNil77 wrote:

When I run

dhclient enpls0

I get

Cannot find device "enpls0"

It's a "1", not an "l". smile

All the best,

-HG

Offline

#8 2013-04-13 23:15:50

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Arch installation network problems

ChaosNil77 wrote:
dhcpcd eth0 -k
dhcpcd eth0 --nohook mtu

With the first command you only dump the link of the failed service start, then you restart dhcp handshake with the "--nohook mtu" option. One thing to try is to add the second to the end of the /etc/dhcpcd.conf and then see whether that has the desired effect already when you stop and restart the service (see above).

Offline

#9 2013-04-14 11:37:33

ChaosNil77
Member
Registered: 2013-04-10
Posts: 4

Re: Arch installation network problems

I have found a solution.  I have set up a static IP for my desktop's wired connection. For some reason this was renamed to eno1 from eth0 when I rebooted after installation. I will read up on netcfg and try editing the /etc/dhcpcd.conf file to see if I can sort the dhcp problem.
Thank you to all who posted help, it is much appreciated.

Offline

Board footer

Powered by FluxBB