Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186589 - =net-misc/dhcpcd-3.1.0 fails to assign an ip address due to ARPOP_REPLY
Summary: =net-misc/dhcpcd-3.1.0 fails to assign an ip address due to ARPOP_REPLY
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-25 14:04 UTC by Cheba
Modified: 2007-07-26 10:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge --info,3.88 KB, text/plain)
2007-07-25 14:06 UTC, Cheba
Details
Reject ARP from our hardware address (dhcpcd-arp.patch,846 bytes, patch)
2007-07-25 21:11 UTC, Roy Marples (RETIRED)
Details | Diff
Reject ARP from our hardware address (dhcpcd-arp.patch,981 bytes, patch)
2007-07-25 21:36 UTC, Roy Marples (RETIRED)
Details | Diff
Reject ARP from our hardware address (dhcpcd-arp.patch,986 bytes, patch)
2007-07-25 22:16 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cheba 2007-07-25 14:04:42 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-25 14:06:25 UTC

*** This bug has been marked as a duplicate of bug 186557 ***
Comment 2 Cheba 2007-07-25 14:06:42 UTC
Created attachment 125978 [details]
emerge --info
Comment 3 Cheba 2007-07-25 14:08:54 UTC
(In reply to comment #1)
> 
> *** This bug has been marked as a duplicate of bug 186557 ***
> 

Roy Marples say I have different issue.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-07-25 19:07:27 UTC
Jakub when I say "open a new bug" that does not mean you mark as dupe when a user does just that.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-07-25 19:08:17 UTC
Do you have any other interfaces up?
Comment 6 Cheba 2007-07-25 19:10:11 UTC
(In reply to comment #5)
> Do you have any other interfaces up?
> 

No. Only lo.
Comment 7 Roy Marples (RETIRED) gentoo-dev 2007-07-25 21:11:41 UTC
Created attachment 126020 [details, diff]
Reject ARP from our hardware address

Try this patch :)
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-07-25 21:36:26 UTC
Created attachment 126022 [details, diff]
Reject ARP from our hardware address

Better patch.
Comment 9 Cheba 2007-07-25 21:49:33 UTC
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
Comment 10 Roy Marples (RETIRED) gentoo-dev 2007-07-25 22:16:47 UTC
Created attachment 126028 [details, diff]
Reject ARP from our hardware address

Could you run it with the -d option please? Thanks.
Comment 11 Cheba 2007-07-25 22:20:48 UTC
(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
Comment 12 Roy Marples (RETIRED) gentoo-dev 2007-07-25 22:24:13 UTC
after installing the above patch, do this

dhcpcd -k eth0
dhcpcd -d eth0
Comment 13 Cheba 2007-07-25 22:35:30 UTC
-=>> 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
Comment 14 Roy Marples (RETIRED) gentoo-dev 2007-07-25 22:44:23 UTC
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
Comment 15 Cheba 2007-07-25 22:47:20 UTC
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
Comment 16 Roy Marples (RETIRED) gentoo-dev 2007-07-26 10:13:47 UTC
3.1.1 now in portage, thanks