Is this a bootp lease? If not, there may be a problem with system clocks, as  your lease appears as expiring in 1-1-1970.<br><br><div class="gmail_quote">2012/2/5 Cheng-Yang Tan <span dir="ltr"><<a href="mailto:cytan299@yahoo.com">cytan299@yahoo.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div>
<div><font face="'times new roman', 'new york', times, serif">Hi</font></div><div><font face="'times new roman', 'new york', times, serif">I'm having a very weird problem with dhclient running on arm-linux. I can get an ip address from dhclient:</font></div>
<div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">*********************************************</font></div>
<div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif"># cat dhclient.leases </font></div><div><font face="'times new roman', 'new york', times, serif">lease {</font></div>
<div><font face="'times new roman', 'new york', times, serif">interface "eth0";</font></div><div><font face="'times
 new roman', 'new york', times, serif">fixed-address 192.168.1.6;</font></div><div><font face="'times new roman', 'new york', times, serif">option subnet-mask 255.255.255.0;</font></div><div><font face="'times new roman', 'new york', times, serif">option dhcp-lease-time 86400;</font></div>
<div><font face="'times new roman', 'new york', times, serif">option routers 192.168.1.1;</font></div><div><font face="'times new roman', 'new york', times, serif">option dhcp-message-type 5;</font></div>
<div><font face="'times new roman', 'new york', times, serif">option dhcp-server-identifier 192.168.1.1;</font></div><div><font face="'times new roman', 'new york', times, serif">option domain-name-servers 192.168.1.1;</font></div>
<div><font face="'times new roman', 'new york', times, serif">renew 4 1970/01/01 10:05:28;</font></div><div><font face="'times new roman', 'new york', times, serif">rebind 4 1970/01/01 21:01:42;</font></div>
<div><font face="'times new roman',
 'new york', times, serif">expire 5 1970/01/02 00:01:42;</font></div><div><font face="'times new roman', 'new york', times, serif">}</font></div><div><font face="'times new roman', 'new york', times, serif">***************************************</font></div>
<div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">BUT it is *not* bound to eth0:</font></div><div>
<font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">******************************************</font></div>
<div><font face="'times new roman', 'new york', times, serif"># ifconfig eth0</font></div><div><font face="'times new roman', 'new york', times, serif">eth0 Link encap:Ethernet HWaddr 56:C7:86:20:37:A6 </font></div>
<div><font face="'times new roman', 'new york', times, serif">UP BROADCAST RUNNING MULTICAST MTU:1500
 Metric:1</font></div><div><font face="'times new roman', 'new york', times, serif">RX packets:277 errors:0 dropped:0 overruns:0 frame:0</font></div><div><font face="'times new roman', 'new york', times, serif">TX packets:3 errors:0 dropped:0 overruns:0 carrier:0</font></div>
<div><font face="'times new roman', 'new york', times, serif">collisions:0 txqueuelen:1000 </font></div><div><font face="'times new roman', 'new york', times, serif">RX bytes:23176 (22.6 KiB) TX bytes:1026 (1.0 KiB) </font></div>
<div><font face="'times new roman', 'new york', times, serif">Interrupt:54 </font></div><div><font face="'times new roman', 'new york', times, serif">*******************************************</font></div>
<div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">I can manually bind the address using:</font></div>
<div><font face="'times new roman', 'new york',
 times, serif">ifconfig eth0 192.168.1.6</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">and eth0 talks to the world. </font></div>
<div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">I believe I've set up /etc/network/interface correctly:</font></div>
<div><font face="'times new roman', 'new york', times, serif">*****************************************************</font></div><div><font face="'times new roman', 'new york', times, serif">auto lo </font></div>
<div><font face="'times new roman', 'new york', times, serif">iface lo inet loopback </font></div><div><font face="'times new roman', 'new york', times, serif"># </font></div><div><font face="'times new roman', 'new york', times, serif">auto eth0 </font></div>
<div><font face="'times new
 roman', 'new york', times, serif">iface eth0 inet dhcp </font></div><div><font face="'times new roman', 'new york', times, serif">*****************************************************</font></div>
<div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">How can I make dhclient bind the ip address to eth0.</font></div>
<div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">Thanks for any info!</font></div><div><font face="'times new roman', 'new york', times, serif"><br>
</font></div><div><font face="'times new roman', 'new york', times, serif">cytan</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">P.S. linux version is: 2.6.39.4</font></div>
<div><font face="'times new roman', 'new
 york', times, serif">and dclient comes from dhcp-4.1-ESV-R3.tar.gz<br></font></div></div></div></div><br>_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></blockquote></div><br>