[opensuse] First run of dhcpcd fails
Hi Folks, This is related to my last thread, but I think I've narrowed things down to an actual bug. As Per noticed, my dhcpcd broadcast was timing out, thusly causing it to use the last known lease. But subsequent testing on other platforms didn't show a response-time problem with my local network. So I fiddled around a bit with dhcpcd -k and -n and noticed that the first time dhcpcd runs and issues a broadcast request it always fails. Looking at /var/log/messages it looks like this broadcast is sent BEFORE its interface is up! Could the first broadcast be falling on the floor? Here's the messages dialog, slightly edited. Jan 6 14:25:22 ironhead ifup-dhcp: eth0 Starting DHCP4 client Jan 6 14:25:22 ironhead dhcpcd[1339]: eth0: dhcpcd 3.2.3 starting Jan 6 14:25:22 ironhead dhcpcd[1339]: eth0: hardware address = 00:24:e8:08:00:43 Jan 6 14:25:22 ironhead kernel: [ 14.469711] NET: Registered protocol family 17 Jan 6 14:25:22 ironhead dhcpcd[1339]: eth0: broadcasting for a lease First dhcpcd broadcast ^^^^^^^^^^^^^^^^^^^^^^^^^^ Jan 6 14:25:22 ironhead ifup-dhcp: . Jan 6 14:25:24 ironhead ifup-dhcp: . Jan 6 14:25:24 ironhead kernel: [ 17.037746] r8169 0000:03:00.0: eth0: link up Jan 6 14:25:24 ironhead kernel: [ 17.038196] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Two seconds later eth0 is up and becomes ready ^^^^^^^^^^^^^^^^^^^^^^^^ Jan 6 14:25:26 ironhead avahi-daemon[881]: Registering new address record for fe80::224:e8ff:fe08:43 on eth0.*. Jan 6 14:25:26 ironhead ifup-dhcp: . Jan 6 14:25:28 ironhead ifup-dhcp: . Jan 6 14:25:31 ironhead ifup-dhcp: . Jan 6 14:25:33 ironhead ifup-dhcp: . Jan 6 14:25:35 ironhead kernel: [ 27.090018] eth0: no IPv6 routers present Jan 6 14:25:35 ironhead ifup-dhcp: . Jan 6 14:25:37 ironhead ifup-dhcp: . Jan 6 14:25:38 ironhead network[888]: eth0 Starting DHCP4 client. . . . . . . . Jan 6 14:25:38 ironhead ifup-dhcp: Jan 6 14:25:38 ironhead network[888]: eth0 DHCP4 continues in background Jan 6 14:25:38 ironhead ifup-dhcp: eth0 DHCP4 continues in background Jan 6 14:25:38 ironhead ifup: eth0 Jan 6 14:25:38 ironhead ifup: IP address: xxxx.xxx.xx:44::20/64 Jan 6 14:25:38 ironhead network[888]: eth0 IP address: xxxx.xxx.xx:44::20/64 Jan 6 14:25:38 ironhead ifup: Jan 6 14:25:38 ironhead network[888]: [1Awaiting Jan 6 14:25:38 ironhead network[888]: Waiting for mandatory devices: eth0 Jan 6 14:25:39 ironhead avahi-daemon[881]: Registering new address record for xxxx.xxx.xx:44::20 on eth0.*. Jan 6 14:25:39 ironhead avahi-daemon[881]: Withdrawing address record for fe80::224:e8ff:fe08:43 on eth0. Jan 6 14:25:42 ironhead dhcpcd[1339]: eth0: timed out dhcpcd times out after 20-seconds ^^^^^^^^^^^^^^^ Jan 6 14:25:42 ironhead dhcpcd[1339]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info' Jan 6 14:25:42 ironhead dhcpcd[1339]: eth0: adding IP address xxx.xxx.44.20/24 Jan 6 14:25:42 ironhead avahi-daemon[881]: Joining mDNS multicast group on interface eth0.IPv4 with address xxx.xxx.44.20. Jan 6 14:25:42 ironhead dhcpcd[1339]: eth0: adding default route via xxx.xxx.44.1 metric 0 Jan 6 14:25:42 ironhead avahi-daemon[881]: New relevant interface eth0.IPv4 for mDNS. Jan 6 14:25:42 ironhead avahi-daemon[881]: Registering new address record for xxx.xxx.44.20 on eth0.IPv4. Jan 6 14:25:42 ironhead dns-resolver: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched... Jan 6 14:25:42 ironhead dns-resolver: You can find my version in /etc/resolv.conf.netconfig Jan 6 14:25:42 ironhead dhcpcd-hook: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched... Jan 6 14:25:42 ironhead dhcpcd-hook: You can find my version in /etc/resolv.conf.netconfig ... Jan 6 14:25:42 ironhead ifdown: eth0 device: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02) Jan 6 14:25:42 ironhead ifup: eth0 device: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02) Jan 6 14:25:52 ironhead network[888]: 13 12 11 9 8 7 6 5 4 3 2 1 0 Jan 6 14:25:52 ironhead network[888]: eth0 device: Realtek Semiconductor Co., Ltd. RTL8111/8168B Jan 6 14:25:52 ironhead network[888]: eth0 . . . is just beeing set up Jan 6 14:25:52 ironhead network[888]: eth0 IP address: xxx.xxx.44.20/24 Jan 6 14:25:52 ironhead network[888]: eth0 IP address: xxxx.xxx.xx:44::20/64 Jan 6 14:25:52 ironhead network[888]: eth0 is up Jan 6 14:25:53 ironhead network[888]: [1Awaiting Jan 6 14:25:53 ironhead network[888]: eth0 interface could not be set up until now Jan 6 14:25:53 ironhead network[888]: ..failedSetting up service (localfs) network . . . . . . . . . ...failed Jan 6 14:25:53 ironhead systemd[1]: network.service: control process exited, code=exited status=7 Jan 6 14:25:53 ironhead systemd[1]: Unit network.service entered failed state. Not bouncing the interface on cable swap is one thing, but this is another. Regards, Lew -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Lew Wolfgang