You are not logged in.
Pages: 1
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
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)
Offline
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
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
there is no eth0 interface on your laptop .
dhclient enp1s0
should bring your ethernet port up. What happens when you do that?
Offline
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
When I run
dhclient enpls0
I get
Cannot find device "enpls0"
It's a "1", not an "l".
All the best,
-HG
Offline
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
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
Pages: 1