I modified the dhcpcd@.service file to include the parameter "-t 120" in the call to dhcpcd. It appears it's taking over a minute to get an IP (i'm not sure what the root cause of this is) causing dhcpcd to time out on boot. Adding "-t 120" to the call increases the timeout to 2 minutes from the default one minute, and seems to have helped me.
Currently I've also added the BindsTo/After=sys-subsystem-net-devices-%i.device to my service file as well, and I've added "tg3.conf" containing "tg3" to "/etc/modules-load.d/", but those alone had no effect until I increased the timeout. I'm leaving them in place at the moment, because it's working and I don't want to mess with it, but I think they have no effect.
Try increasing the timeout and see if it helps. Initially I used "-t 0", but that's an infinite timeout period which would cause systemd to wait forever, so once I looked at the logs to see the average time to get an address, I changed the timeout to something larger than that, so it will fail gracefully.
Good luck.
]]>You could try netcfg instead of dhcpcd@eth0 and see if it just works instead of hacking on service files.
]]>$lspci |grep net
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
$lsmod |grep r8
r8169 56839 0
mii 4091 1 r8169
maybe https://www.archlinux.org/packages/comm … _64/r8168/ needed to properly start.
]]>I had trouble using dhcp and finally figured it out. I don't have much of a clue about dhcpcd.
All I had to do was install dhcp package and set it up like this
ip link set eth0 up
dhcpd eth0
Did you try dhcp or dhclient ?
]]>Oct 30 12:46:25 big dhcpcd[333]: version 5.6.2 starting
Oct 30 12:46:26 big dhcpcd[333]: eth0: waiting for carrier
Oct 30 12:46:27 big dhcpcd[333]: eth0: carrier acquired
Oct 30 12:46:27 big dhcpcd[333]: eth0: sending IPv6 Router Solicitation
Oct 30 12:46:27 big dhcpcd[333]: eth0: sendmsg: Cannot assign requested address
Oct 30 12:46:27 big dhcpcd[333]: eth0: rebinding lease of 10.35.1.10
Oct 30 12:46:28 big kernel: r8169 0000:03:00.0: eth0: link down
Oct 30 12:46:28 big kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Oct 30 12:46:28 big kernel: r8169 0000:03:00.0: eth0: link down
Oct 30 12:46:28 big systemd-logind[335]: Watching system buttons on /dev/input/event4 (Power Button)
Oct 30 12:46:28 big systemd-logind[335]: Watching system buttons on /dev/input/event3 (Power Button)
Oct 30 12:46:28 big kernel: r8169 0000:03:00.0: eth0: link up
Oct 30 12:46:28 big kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Oct 30 12:46:31 big dhcpcd[333]: eth0: sending IPv6 Router Solicitation
Oct 30 12:46:32 big dhcpcd[333]: eth0: broadcasting for a lease
Oct 30 12:46:35 big dhcpcd[333]: eth0: sending IPv6 Router Solicitation
Oct 30 12:46:39 big dhcpcd[333]: eth0: sending IPv6 Router Solicitation
Oct 30 12:46:39 big dhcpcd[333]: eth0: no IPv6 Routers available
Oct 30 12:46:44 big xdm[362]: pam_unix(xdm:session): session opened for user username by username(uid=0)
Oct 30 12:46:44 big systemd-logind[335]: New session 1 of user username.
Oct 30 12:46:44 big systemd-logind[335]: Linked /tmp/.X11-unix/X0 to /run/user/1000/X11-display.
Oct 30 12:46:44 big dbus-daemon[334]: dbus[334]: [system] Activating via systemd: service name='org.freedesktop.ConsoleKit' unit='console-kit-daemon.service'
Oct 30 12:46:44 big dbus[334]: [system] Activating via systemd: service name='org.freedesktop.ConsoleKit' unit='console-kit-daemon.service'
Oct 30 12:46:44 big systemd[1]: Starting Console Manager...
Oct 30 12:46:44 big console-kit-daemon[369]: missing action
Oct 30 12:46:44 big dbus-daemon[334]: dbus[334]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Oct 30 12:46:44 big dbus[334]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Oct 30 12:46:44 big polkitd[436]: started daemon version 0.105 using authority implementation `local' version `0.105'
Oct 30 12:46:44 big dbus-daemon[334]: dbus[334]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Oct 30 12:46:44 big dbus[334]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Oct 30 12:46:44 big dbus-daemon[334]: dbus[334]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Oct 30 12:46:44 big dbus[334]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Oct 30 12:46:44 big systemd[1]: Started Console Manager.
Oct 30 12:46:56 big dhcpcd[333]: timed out
Oct 30 12:46:56 big systemd[1]: dhcpcd@eth0.service: control process exited, code=exited status=1
Oct 30 12:46:56 big systemd[1]: Failed to start dhcpcd on eth0.
Oct 30 12:46:56 big systemd[1]: Unit dhcpcd@eth0.service entered failed state
Oct 30 12:46:56 big systemd[1]: Starting Multi-User.
Oct 30 12:46:56 big systemd[1]: Reached target Multi-User.
Oct 30 12:46:56 big systemd[1]: Starting Graphical Interface.
Oct 30 12:46:56 big systemd[1]: Reached target Graphical Interface.
Oct 30 12:46:56 big systemd[1]: Starting Update UTMP about System Runlevel Changes...
Oct 30 12:46:56 big systemd[1]: Starting Network.
Oct 30 12:46:56 big systemd[1]: Reached target Network.
Oct 30 12:46:56 big systemd[1]: Started Update UTMP about System Runlevel Changes.
Oct 30 12:46:56 big systemd[1]: Startup finished in 4s 358ms 629us (kernel) + 34s 614ms 825us (userspace) = 38s 973ms 454us.
What is the output you get for
systemctl status dhcpd@eth0.service
% sudo 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 Tue, 2012-10-30 12:46:56 MSK; 1min 1s ago
Process: 333 ExecStart=/sbin/dhcpcd -A -q -w %I (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/dhcpcd@.service/eth0
Oct 30 12:46:27 big dhcpcd[333]: eth0: sendmsg: Cannot assign requested address
Oct 30 12:46:27 big dhcpcd[333]: eth0: rebinding lease of 10.35.1.10
Oct 30 12:46:31 big dhcpcd[333]: eth0: sending IPv6 Router Solicitation
Oct 30 12:46:32 big dhcpcd[333]: eth0: broadcasting for a lease
Oct 30 12:46:35 big dhcpcd[333]: eth0: sending IPv6 Router Solicitation
Oct 30 12:46:39 big dhcpcd[333]: eth0: sending IPv6 Router Solicitation
Oct 30 12:46:39 big dhcpcd[333]: eth0: no IPv6 Routers available
Oct 30 12:46:56 big dhcpcd[333]: timed out
Oct 30 12:46:56 big systemd[1]: Failed to start dhcpcd on eth0.
Oct 30 12:46:56 big systemd[1]: Unit dhcpcd@eth0.service entered failed state
systemctl status dhcpd@eth0.service
What info needed?
]]>