LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-05-2012, 12:51 AM   #1
cytan299
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Rep: Reputation: Disabled
dhclient not binding ip address to eth0


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
 
Old 02-06-2012, 02:39 PM   #2
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
when you type dhclient in terminal what you see?
post the output
 
Old 02-06-2012, 09:08 PM   #3
cytan299
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
dhclient not binding ip address eth0 [Solved}

Hi,
It turns out the the isc dhclient installation does not automatically fill in the
dhclient-script file in sbin. I copied the file client/scripts/linux from the
distribution to /sbin/dhclient-script and fixed the paths in it. And now everything
works!

Thanks!

cytan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need help configuring eth0 with dhclient Geraldsmod Linux - Networking 3 09-27-2009 06:37 PM
binding of IP address to its mac address in squid proxy ramamalempati Linux - Server 5 06-05-2009 02:51 AM
FC8 dhclient gethostid always returns 127.0.0.1 not eth0 address MrUmunhum Linux - Networking 1 07-26-2008 12:55 AM
what happens with dhclient eth0? gawain Linux - Networking 9 04-26-2007 05:11 PM
eth0 binding sew2athotmail Linux - Networking 3 08-04-2001 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration