LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-11-2003, 10:25 PM   #1
VIP3R
Member
 
Registered: Mar 2003
Posts: 99

Rep: Reputation: 15
Kernel Compile --> No DHCP?


Hi, ever since I tried to recompile the 2.4.20 kernel on the redhat system, I could never activate my lan connection with roger's highspeed internet through DHCP. After much work, I got it running using a static setting which is not good because the second it changes, I'll have to change the settings. Therefore, I was wondering why DHCP won't work in the recompiled kernel but it will in the original kernel. What option must I check off for DHCP to work?
 
Old 06-12-2003, 07:30 AM   #2
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
cd /usr/src/linux
make xconfig
click "Networking Options"
check IP: Kernel Level Autoconfiguration
and then IP: DHCP Support

save and recompile
 
Old 06-12-2003, 02:38 PM   #3
VIP3R
Member
 
Registered: Mar 2003
Posts: 99

Original Poster
Rep: Reputation: 15
Either that you're a genius, or i'm a complete retard. How could I have missed that. WOW, THANK YOU!
 
Old 06-13-2003, 02:56 PM   #4
VIP3R
Member
 
Registered: Mar 2003
Posts: 99

Original Poster
Rep: Reputation: 15
UMMMM...It's not working. I recompiled and it still doesn't activate it :S. The internet works if I set the IP manually, but IP leases are only a month long :S!
 
Old 06-13-2003, 06:22 PM   #5
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
So, let me retort:

Everything was working fine.
You recompiled the kernel with your own settings.
Everything isn't working fine anymore.

Ok, so i am assuming that everything was working fine out of the box. (what distro are you on??) then, without changing any settings, like say turning of DHCP support in your network configuration, it stopped working after a kernel upgrade/recompile.

Hmm. If all of that is right so far, then you can fix it by simply installing the original kernel package, changing into the directory it's in, doing a make xconfig saving the configuration to a file, exiting, going to the directory the new kernel is in, loading the saved configuration file from the stock kernel, recompiling.

Now here's the catch, this worked for me in Slackware 9.0 and it worked like a charm. (I'll besure to back up my configuration now, before i screw things up ... it's amazing how many things you can back up after it's too late)

Depending on what distro you are using, you might have a config file in the /boot directory of the old kernel (i could be wrong in this).

Going back to recovering your original kernel configuration, i just tried that, and yes it does work, it does however assume that the installed stock kernel is the same as the kernel in their packaged format. If it still fails, think back, did you change any settings relating to your netwrok?

BTW, if you update your profile to state what distro you're on, it makes it easier for us to be more diffinitive (not that it really makes much difference to this problem) .

best of luck, and i apologize for this being less than elegant, anyone else got a better solution, i'd love to hear it
 
Old 09-23-2003, 05:20 AM   #6
synked
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
You must have the Packet Socket and Socket filtering options set in your kernel. Otherwise, DHCP will not work.

Please note IPHCP is not needed in your case -- its a kernel based DHCP client.


Cheers

Awais Ahmad
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
Driver won't compile on Kernel 2.6 - works fine on Kernel 2.4 c@sey Linux - Software 4 01-08-2005 01:01 PM
compile a new kernel with setting default to current kernel mrpc_cambodia Red Hat 6 07-06-2004 11:32 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:16 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
Open Source Consulting | Domain Registration