LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-10-2004, 11:35 AM   #1
AlgebraicSpore
LQ Newbie
 
Registered: Jun 2004
Location: Brunswick, ME
Distribution: Debian
Posts: 15

Rep: Reputation: 0
Can not get DHCP client lease on startup


Okay I have been having this problem for a while when I boot up I do not get an ip address from my router. When I initially updated my kernel to 2.4.25 my dhcp lease would no longer start on startup, it had been on the kernel that came with the initial install. It is not kernel parameters however since I now just run pump and get my lease, however I would like to be able to automaticly get a lease when I start up my computer. While booting the following is outputted:

eth0: VIA VT6102 Rhine-II at 0xe000, 00:50:8d:54:8e:f5, IRQ 23.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.

and then after running pump I get the output of:

eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.

if I run ifconfig before pump I get:

eth0 Link encap:Ethernet HWaddr 00:50:8D:54:8E:F5
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:483 (483.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1944 (1.8 KiB) TX bytes:1944 (1.8 KiB)

and then after running pump ifconfig outputs:

eth0 Link encap:Ethernet HWaddr 00:50:8D:54:8E:F5
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2321 errors:0 dropped:0 overruns:0 frame:0
TX packets:2272 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1486417 (1.4 MiB) TX bytes:416716 (406.9 KiB)
Interrupt:23 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1944 (1.8 KiB) TX bytes:1944 (1.8 KiB)

however when I recently updated to 2.6.6 I now get an output line I never got before when running dhclient:

Unrecognized kernel version

So I decided to run strace -eopen dhclient to see what file I might be able to change to get it to work, that outputs:

open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libncurses.so.5", O_RDONLY) = 3
open("/lib/tls/libdl.so.2", O_RDONLY) = 3
open("/lib/tls/libc.so.6", O_RDONLY) = 3
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
open("/etc/mtab", O_RDONLY) = 3
open("/proc/meminfo", O_RDONLY) = 3
open("/sbin/dhclient", O_RDONLY|O_LARGEFILE) = 3
--- SIGCHLD (Child exited) @ 0 (0) ---
Unrecognized kernel version

oh and my /etc/network/interfaces file has not been changed since the one that works. I really don't know what to do so any help would be much appreciated.

Thanks in advance,
tucker
 
Old 06-14-2004, 05:21 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Did you re-install iptables after the new kernel versions?

Try running ifup -a after a boot and watch for dmesg comments about services not working.

Also do depmod -a and check for mismatches..
 
Old 06-15-2004, 12:16 AM   #3
AlgebraicSpore
LQ Newbie
 
Registered: Jun 2004
Location: Brunswick, ME
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
That did not seem to do the job. I just wrote an init script for pump and that works wonderfully. Thanks for the help though.
-Spore
 
  


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
DHCP lease unavailable bwilliam79 Linux - Networking 9 01-31-2008 06:37 AM
DHCP (client) fails at startup frankwaanders Linux - Networking 1 09-22-2005 02:43 AM
how do I renew a dhcp client lease? susefan Linux - Networking 2 03-07-2005 12:49 PM
DHCP client fails to renew lease NiPNi Linux - Networking 2 04-06-2002 07:01 PM
Getting DHCP client lease without configuring interface chenlevy Linux - Networking 0 09-02-2001 11:38 AM


All times are GMT -5. The time now is 03:28 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration