Need help about the using method of DHCP client

LiGang lixiaogang110217 at hotmail.com
Sat May 15 03:26:09 UTC 2010


I'm trying to implement DHCP client on my ARM board, but the IP address seems cannot bound to my system.
   My host PC is Linux CentOS 4.4
   The kernal in ARM board is Linux 2.6.24.4
   Version of ISC DHCP src is 3.1.3
   Version of crosstool is arm-linux-gcc 3.4.1

1. My ethernet interface is called "wiz0", so i input "dhclient wiz0" and got this result:

    Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

can't create /var/state/dhcp/dhclient.leases: No such file or directory
execve (/sbin/dhclient-script, ...): No such file or directory
Listening on LPF/wiz0/00:08:dc:a0:00:01
Sending on   LPF/wiz0/00:08:dc:a0:00:01
Sending on   Socket/fallback
DHCPDISCOVER on wiz0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 164.125.71.45
DHCPREQUEST on wiz0 to 255.255.255.255 port 67
DHCPACK from 164.125.71.45
execve (/sbin/dhclient-script, ...): No such file or directory
can't create /var/state/dhcp/dhclient.leases: No such file or directory
bound to 164.125.71.241 -- renewal in 242 seconds.

2. Then i input "ifconfig wiz0" to check and got this result: 

wiz0      Link encap:Ethernet  HWaddr 00:08:DC:A0:00:01
          inet addr:164.125.71.190  Bcast:164.125.71.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1624 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2197104 (2.0 MiB)  TX bytes:17314 (16.9 KiB)
          Interrupt:16
Why the IP address is not 164.125.71.241 which got from DHCP server?

3. Here, 164.125.71.190 is the default IP address of my ARM board which is set in /etc/rc.d/rc.local:

      ifconfig wiz0 164.125.71.190 netmask 255.255.255.0 up
      route add default gw 164.125.71.1 wiz0 

   So, I think i should cancel the default IP address. But after default IP cancellation, i got this result:
  
Listening on LPF/wiz0/00:08:dc:a0:00:01
Sending on   LPF/wiz0/00:08:dc:a0:00:01
Sending on   Socket/fallback
receive_packet failed on wiz0: Network is down
DHCPDISCOVER on wiz0 to 255.255.255.255 port 67 interval 3
send_packet: Network is down
DHCPDISCOVER on wiz0 to 255.255.255.255 port 67 interval 4
send_packet: Network is down
DHCPDISCOVER on wiz0 to 255.255.255.255 port 67 interval 7
send_packet: Network is down
DHCPDISCOVER on wiz0 to 255.255.255.255 port 67 interval 8

4. So, where is the incorrect operation or configuration when i use DHCP client?
   Thanks!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20100515/d01a8f7e/attachment.html>


More information about the dhcp-users mailing list