dhcpcd 3.1.0 fails to assign ip address to interface. 3.0.19 works fine. Jul 25 13:06:02 che-lap dhcpcd[8302]: eth0: dhcpcd 3.1.0 starting Jul 25 13:06:02 che-lap dhcpcd[8302]: eth0: hardware address = 00:18:f3:dd:4e:14 Jul 25 13:06:02 che-lap dhcpcd[8302]: eth0: DUID = 00:01:00:01:0e:39:7d:ba:00:18:f3:dd:4e:14 Jul 25 13:06:02 che-lap dhcpcd[8302]: eth0: broadcasting for a lease Jul 25 13:06:02 che-lap dhcpcd[8302]: eth0: offered 10.113.4.126 from 192.168.4.1 Jul 25 13:06:02 che-lap dhcpcd[8302]: eth0: checking 10.113.4.126 is available on attached networks Jul 25 13:06:02 che-lap ifplugd(eth0)[8167]: client: Error, eth0: ARPOP_REPLY received from 10.113.4.126 (0:18:f3:dd:4e:14) Jul 25 13:06:02 che-lap dhcpcd[8302]: eth0: ARPOP_REPLY received from 10.113.4.126 (0:18:f3:dd:4e:14) Jul 25 13:06:02 che-lap dhcpcd[8302]: eth0: sleeping for 10 seconds Reproducible: Always Steps to Reproduce: Install dhcpcd 3.1.0 and restart network interface in DHCP configured network. Actual Results: dhcpcd fails to assign ip address to interface. Expected Results: dhcpcd successfully assign ip addres to interface
*** This bug has been marked as a duplicate of bug 186557 ***
Created attachment 125978 [details] emerge --info
(In reply to comment #1) > > *** This bug has been marked as a duplicate of bug 186557 *** > Roy Marples say I have different issue.
Jakub when I say "open a new bug" that does not mean you mark as dupe when a user does just that.
Do you have any other interfaces up?
(In reply to comment #5) > Do you have any other interfaces up? > No. Only lo.
Created attachment 126020 [details, diff] Reject ARP from our hardware address Try this patch :)
Created attachment 126022 [details, diff] Reject ARP from our hardware address Better patch.
Patched dhcpcd 3.1.0 assigns ip address to interface but there is message in log about segfault. And it doesn't set up soutes. /var/log/messages Jul 26 00:43:31 che-lap dhcpcd[821]: eth0: dhcpcd 3.1.0 starting Jul 26 00:43:31 che-lap dhcpcd[821]: eth0: hardware address = 00:18:f3:dd:4e:14 Jul 26 00:43:31 che-lap dhcpcd[821]: eth0: DUID = 00:01:00:01:0e:39:7d:ba:00:18:f3:dd:4e:14 Jul 26 00:43:31 che-lap dhcpcd[821]: eth0: broadcasting for a lease Jul 26 00:43:31 che-lap dhcpcd[821]: eth0: offered 10.113.4.124 from 192.168.4.1 Jul 26 00:43:31 che-lap dhcpcd[821]: eth0: checking 10.113.4.124 is available on attached networks Jul 26 00:43:31 che-lap ifplugd(eth0)[783]: client: /lib/rcscripts/net/dhcpcd.sh: line 41: 821 Segmentation fault /sbin/dhcpcd -m 2 eth0 Jul 26 00:43:31 che-lap ifplugd(eth0)[783]: Program executed successfully. routre # for patched dhcpcd 3.1.0 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.113.4.0 * 255.255.255.0 U 0 0 0 eth0 loopback che-lap.pointle 255.0.0.0 UG 0 0 0 lo route # for dhcpcd 3.0.1 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.113.4.0 * 255.255.255.0 U 2 0 0 eth0 loopback che-lap.pointle 255.0.0.0 UG 0 0 0 lo default 10.113.4.1 0.0.0.0 UG 2 0 0 eth0
Created attachment 126028 [details, diff] Reject ARP from our hardware address Could you run it with the -d option please? Thanks.
(In reply to comment #10) > Could you run it with the -d option please? Thanks. > How do I do that? I do rc-config restart net.eth0
after installing the above patch, do this dhcpcd -k eth0 dhcpcd -d eth0
-=>> dhcpcd -d eth0 Info, eth0: dhcpcd 3.1.0 starting Info, eth0: hardware address = 00:18:f3:dd:4e:14 Info, eth0: DUID = 00:01:00:01:0e:39:7d:ba:00:18:f3:dd:4e:14 Info, eth0: broadcasting for a lease Debug, eth0: sending DHCP_DISCOVER with xid 0x65bc890f Debug, eth0: waiting on select for 20 seconds Debug, eth0: got a packet with xid 0x65bc890f Info, eth0: offered 10.113.4.124 from 192.168.4.1 Debug, eth0: sending DHCP_REQUEST with xid 0x65bc890f Debug, eth0: waiting on select for 20 seconds Debug, eth0: got a packet with xid 0x65bc890f Info, eth0: checking 10.113.4.124 is available on attached networks Debug, eth0: sending ARP probe #1 Segmentation fault
OK, could you retry with the tarball here please? http://dev.gentoo.org/~uberlord/dhcpcd-3.1.1_pre2.tar.bz2 Like so cd /tmp wget http://dev.gentoo.org/~uberlord/dhcpcd-3.1.1_pre2.tar.bz2 tar xvjpf dhcpcd-3.1.1_pre2.tar.bz2 cd dhcpcd-3.1.1_pre2 make ./dhcpcd -k eth0 ./dhcpcd -d eth0
This one is OK. -=>> ./dhcpcd -d eth0 Info, eth0: dhcpcd 3.1.1_pre2 starting Info, eth0: hardware address = 00:18:f3:dd:4e:14 Info, eth0: DUID = 00:01:00:01:0e:39:7d:ba:00:18:f3:dd:4e:14 Info, eth0: broadcasting for a lease Debug, eth0: sending DHCP_DISCOVER with xid 0x5ccafe22 Debug, eth0: waiting on select for 20 seconds Debug, eth0: got a packet with xid 0x5ccafe22 Info, eth0: offered 10.113.4.124 from 192.168.4.1 Debug, eth0: sending DHCP_REQUEST with xid 0x5ccafe22 Debug, eth0: waiting on select for 20 seconds Debug, eth0: got a packet with xid 0x5ccafe22 Info, eth0: checking 10.113.4.124 is available on attached networks Debug, eth0: sending ARP probe #1 Debug, eth0: sending ARP probe #2 Debug, eth0: sending ARP probe #3 Debug, eth0: sending ARP claim #1 Debug, eth0: sending ARP claim #2 Info, eth0: leased 10.113.4.124 for 3600 seconds Debug, eth0: renew in 1800 seconds Debug, eth0: rebind in 3150 seconds Info, eth0: adding IP address 10.113.4.124/24 Info, eth0: adding default route via 10.113.4.1 metric 0 Debug, eth0: sending DNS information to resolvconf Debug, eth0: writing /var/lib/dhcpcd/dhcpcd-eth0.info Debug, eth0: forking to background
3.1.1 now in portage, thanks