dhclient not binding ip address to eth0
Steve Clark
sclark at netwolves.com
Sun Feb 5 20:06:53 UTC 2012
On 02/05/2012 01:56 PM, Cheng-Yang Tan wrote:
> One more thing, my dhclient-script is empty. Should it actually have something?
>
Pretty sure the dhclient-script does all the work of configuring your interface, setting default route, dns servers etc.
> Contents of dhclient-script:
> **********************
> #!/bin/sh
> # empty dhclient-script to keep dhclient from complaining
> #
> ********************************
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* Cheng-Yang Tan <cytan299 at yahoo.com>
> *To:* Users of ISC DHCP <dhcp-users at lists.isc.org>
> *Sent:* Sunday, February 5, 2012 12:51 PM
> *Subject:* Re: dhclient not binding ip address to eth0
>
> Hi Jose,
> The system is a Samsung ARM s3c2410 with enc28j60 as the ethernet controller. I did not set the ARM system clock because I did not think it mattered. However, I've rectified the situation and the problem remains:
>
> **********************
> lease {
> interface "eth0";
> fixed-address 192.168.1.6;
> option subnet-mask 255.255.255.0;
> option routers 192.168.1.1;
> option dhcp-lease-time 86400;
> option dhcp-message-type 5;
> option domain-name-servers 192.168.1.1;
> option dhcp-server-identifier 192.168.1.1;
> renew 1 2012/02/06 03:07:26;
> rebind 1 2012/02/06 14:49:21;
> expire 1 2012/02/06 17:49:21;
> }
> # date
> Sun Feb 5 12:49:58 CST 2012
> **************************
> and it still still doesn't bind
> *******************************
> #ifconfig -a
> eth0 Link encap:Ethernet HWaddr 56:C7:86:20:37:A6
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:23367 errors:0 dropped:15 overruns:0 frame:0
> TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1797535 (1.7 MiB) TX bytes:3762 (3.6 KiB)
> Interrupt:54
> **********************************************************
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* José Queiroz <zekkerj at gmail.com>
> *To:* Users of ISC DHCP <dhcp-users at lists.isc.org>
> *Sent:* Sunday, February 5, 2012 10:20 AM
> *Subject:* Re: dhclient not binding ip address to eth0
>
> 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.
>
> 2012/2/5 Cheng-Yang Tan <cytan299 at yahoo.com <mailto:cytan299 at yahoo.com>>
>
> Hi
> I'm having a very weird problem with dhclient running on arm-linux. I can get an ip address from dhclient:
>
> *********************************************
>
> # cat dhclient.leases
> lease {
> interface "eth0";
> fixed-address 192.168.1.6;
> option subnet-mask 255.255.255.0;
> option dhcp-lease-time 86400;
> option routers 192.168.1.1;
> option dhcp-message-type 5;
> option dhcp-server-identifier 192.168.1.1;
> option domain-name-servers 192.168.1.1;
> renew 4 1970/01/01 10:05:28;
> rebind 4 1970/01/01 21:01:42;
> expire 5 1970/01/02 00:01:42;
> }
> ***************************************
>
> BUT it is *not* bound to eth0:
>
> ******************************************
> # ifconfig eth0
> eth0 Link encap:Ethernet HWaddr 56:C7:86:20:37:A6
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:277 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:23176 (22.6 KiB) TX bytes:1026 (1.0 KiB)
> Interrupt:54
> *******************************************
>
> I can manually bind the address using:
> ifconfig eth0 192.168.1.6
>
> and eth0 talks to the world.
>
> I believe I've set up /etc/network/interface correctly:
> *****************************************************
> auto lo
> iface lo inet loopback
> #
> auto eth0
> iface eth0 inet dhcp
> *****************************************************
>
> How can I make dhclient bind the ip address to eth0.
>
> Thanks for any info!
>
> cytan
>
> P.S. linux version is: 2.6.39.4
> and dclient comes from dhcp-4.1-ESV-R3.tar.gz
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
--
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark at netwolves.com
http://www.netwolves.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120205/4f7ef3e5/attachment.html>
More information about the dhcp-users
mailing list