Re: Problems with dhcpcd-5.0.7
Ira W. Snyder
Tue Aug 11 16:04:32 2009
On Tue, Aug 11, 2009 at 08:57:35AM -0700, Ira W. Snyder wrote:
> Hello all.
>
> I've been using dhcpcd 4.0.12 for a few months, compiled statically,
> using a uclibc toolchain. I'm building both for powerpc and i686.
>
> The network where I am using dhcpcd is unfortunately buggy, and has two
> DHCP servers. I've tcpdumped the DHCP transaction, and one server sends
> an ACK while the other sends a NAK. The NAK comes while dhcpcd is
> testing the ip address with ARP. Blacklisting the NAKing server makes
> dhcpcd-4.0.12 work, as does using the -A option to disable ARP.
>
> I've read the mailing list archives, and noticed that dhcpcd-5.0.7
> should solve this problem by closing the socket listening for DHCP
> responses after receiving an ACK. So I decided to upgrade.
[ snip ]
Here is a quick trace of dhcpcd-4.0.12 in action, on a working system.
The dhcpcd command took about 3 seconds, due to the time needed to bring
up the link on the ethernet card. Note that it didn't time out. Also,
notice that after I killed dhcpcd, eth0 still has an IP address, etc.
# dhcpcd -t 0 -p -L eth0
eth0: dhcpcd 4.0.12 starting
e1000: eth0: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
eth0: host does not support a monotonic clock - timing can skew
eth0: broadcasting for a lease
eth0: offered 192.168.17.74 from 192.100.16.2
eth0: acknowledged 192.168.17.74 from 192.100.16.2
eth0: checking 192.168.17.74 is available on attached networks
eth0: leased 192.168.17.74 for 259200 seconds
# ifconfig -a
eth0 Link encap:Ethernet HWaddr FE:6B:44:F2:DE:3F
inet addr:192.168.17.74 Bcast:192.168.17.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2218 (2.1 KiB) TX bytes:852 (852.0 B)
Base address:0xc040 Memory:f2020000-f2040000
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
# killall dhcpcd
# ifconfig -a
eth0 Link encap:Ethernet HWaddr FE:6B:44:F2:DE:3F
inet addr:192.168.17.74 Bcast:192.168.17.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2282 (2.2 KiB) TX bytes:894 (894.0 B)
Base address:0xc040 Memory:f2020000-f2040000
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Thanks,
Ira
Archive administrator: postmaster@marples.name