You are not logged in.
Before migration to netctl, internet over ethernet (dhcp over router) worked well.
Now I simply used the /etc/netctl/examples/ethernet-dhcp file as profile.
Then, sometimes after boot I have a internet connection and sometimes not.
Interesing: When I Have a connection:
$ netctl status ethernet-dhcp
netctl@ethernet\x2ddhcp.service - A basic dhcp ethernet connection
Loaded: loaded (/etc/systemd/system/netctl@ethernet\x2ddhcp.service; enabled)
Active: failed (Result: exit-code) since So 2013-04-28 18:49:52 CEST; 11min ago
Docs: man:netctl.profile(5)
Process: 234 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)And when it is not working it is the same.
What is the problem here?
Thansk for any help!
$ journalctl -xn
Jan 10 18:42:46 Arch-PC dhcpcd[1620]: eth0: if_init: Permission deniedThe line is shown 10 times.
I just noticed that it occured that after boot in the command line I had no connection, after starting X it worked (but that´s not always the case! Maybe it was just time)
Last edited by Xstary (2013-04-28 19:33:47)
Offline
DHCP is probably failing. There are a couple threads hereabouts that describe how to increase the timeout.
When if fails, check the output of iw wlan0 info (change wlan0 to whatever your card is called) and see if it is associated. If so, you will know it is a DHCP problem.
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
Thanks, but it is no wlan but ethernet (see update).
I´ll check for "systemctl status dhcpcd@eth0.service" the next time the problem occurs.
Now when it´s working, the output includes "active(running)" and "(code=exited, status=0/SUCCESS)"
Indeed:
$ systemctl status dhcpcd@eth0.service
dhcpcd@eth0.service - dhcpcd on eth0
Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; enabled)
Active: failed (Result: exit-code) since Mo 2013-04-29 08:16:45 CEST; 1min 19s ago
Process: 233 ExecStart=/usr/sbin/dhcpcd -q -w %I (code=exited, status=1/FAILURE)and
$ sudo systemctl restart dhcpcd@eth0.service
$ systemctl status dhcpcd@eth0.service
dhcpcd@eth0.service - dhcpcd on eth0
Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; enabled)
Active: active (running) since Mo 2013-04-29 08:18:42 CEST; 4min 59s ago
Process: 1343 ExecStart=/usr/sbin/dhcpcd -q -w %I (code=exited, status=0/SUCCESS)
Main PID: 1465 (dhcpcd)
CGroup: name=systemd:/system/dhcpcd@.service/eth0
└─1465 /usr/sbin/dhcpcd -q -w eth0Then it works.
Wondering why this occured after migrating to netctl...
Still I don´t know what´s the problem, but I´ll look for it in other threads first now.
Last edited by Xstary (2013-04-29 06:27:30)
Offline