<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=gb2312 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV>I'm trying to implement DHCP client on my ARM board, but the IP
address seems cannot bound to my system.</DIV>
<DIV> My host PC is Linux CentOS 4.4<BR> The kernal in
ARM board is Linux 2.6.24.4<BR> <FONT color=#ff0000>Version of ISC
DHCP src is 3.1.3<BR></FONT> Version of crosstool is arm-linux-gcc
3.4.1</DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV>1. My ethernet interface is called "wiz0", so i input "dhclient wiz0" and
got this result:</DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri> <FONT face=Courier> Internet Systems
Consortium DHCP Client V3.1.3<BR>Copyright 2004-2009 Internet Systems
Consortium.<BR>All rights reserved.<BR>For info, please visit </FONT><A
title="https://www.isc.org/software/dhcp/
CTRL + Click to follow link"
href="https://www.isc.org/software/dhcp/"><FONT
title="https://www.isc.org/software/dhcp/
CTRL + Click to follow link"
face=Courier>https://www.isc.org/software/dhcp/</FONT></A></FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>can't create /var/state/dhcp/dhclient.leases: No such
file or directory<BR>execve (/sbin/dhclient-script, ...): No such file or
directory<BR>Listening on LPF/wiz0/00:08:dc:a0:00:01<BR>Sending on
LPF/wiz0/00:08:dc:a0:00:01<BR>Sending on
Socket/fallback<BR>DHCPDISCOVER on wiz0 to 255.255.255.255 port 67 interval
5<BR><FONT color=#ff0000>DHCPOFFER from 164.125.71.45<BR></FONT>DHCPREQUEST on
wiz0 to 255.255.255.255 port 67<BR><FONT color=#ff0000>DHCPACK from
164.125.71.45<BR></FONT>execve (/sbin/dhclient-script, ...): No such file or
directory<BR>can't create /var/state/dhcp/dhclient.leases: No such file or
directory<BR><FONT color=#ff0000>bound to 164.125.71.241</FONT> -- renewal in
242 seconds.</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier><FONT face="Times New Roman">2. Then i input "ifconfig
wiz0" to check and got this result:</FONT> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Courier>wiz0 Link
encap:Ethernet HWaddr
00:08:DC:A0:00:01<BR> inet
addr:<FONT color=#ff0000>164.125.71.190</FONT> Bcast:164.125.71.255
Mask:255.255.255.0<BR> UP
BROADCAST RUNNING MULTICAST MTU:1500
Metric:1<BR> RX
packets:1624 errors:0 dropped:0 overruns:0
frame:0<BR> TX packets:99
errors:0 dropped:0 overruns:0
carrier:0<BR> collisions:0
txqueuelen:1000<BR> RX
bytes:2197104 (2.0 MiB) TX bytes:17314 (16.9
KiB)<BR>
Interrupt:16</FONT></DIV>
<DIV><FONT color=#ff0000 face=Courier>Why the IP address is not 164.125.71.241
which got from DHCP server?</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV>3. Here, 164.125.71.190 is the default IP address of my ARM board
which is set in /etc/rc.d/rc.local:</DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier> ifconfig wiz0
164.125.71.190 netmask 255.255.255.0 up</FONT></DIV>
<DIV><FONT face=Courier> route add default gw
164.125.71.1 wiz0 </FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier> </FONT><FONT
face="Times New Roman"> So, I think i should cancel the default IP address.
But after default IP cancellation, i got this result:</FONT></DIV>
<DIV><FONT face=Calibri> </FONT> </DIV>
<DIV><FONT face=Courier>Listening on LPF/wiz0/00:08:dc:a0:00:01<BR>Sending
on LPF/wiz0/00:08:dc:a0:00:01<BR>Sending on
Socket/fallback<BR>receive_packet failed on wiz0: Network is
down<BR>DHCPDISCOVER on wiz0 to 255.255.255.255 port 67 interval
3<BR>send_packet: Network is down<BR>DHCPDISCOVER on wiz0 to 255.255.255.255
port 67 interval 4<BR>send_packet: Network is down<BR>DHCPDISCOVER on wiz0 to
255.255.255.255 port 67 interval 7<BR>send_packet: Network is
down<BR>DHCPDISCOVER on wiz0 to 255.255.255.255 port 67 interval 8</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>4. So, where is the incorrect operation or
configuration when i use DHCP client?</FONT></DIV>
<DIV><FONT face=Courier> Thanks!!</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV></BODY></HTML>