LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-26-2009, 05:46 AM   #1
taan05
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: Disabled
kernel ip autoconfiguration


Hi,

I have compiled a custom kernel (2.6.24.7) with IP autoconfiguration and DHCP enabled for a thin client application.
When the system boots the kernel never attempts to obtain its IP address by DHCP.
Is there something else I need to enable? (The network drivers load correctly and of coarse I do have a DHCP server running).
I should note that the thin client does not allow any parameters to be passed to the kernel at boot time.


thanks
Gordon
 
Old 06-28-2009, 02:02 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Quote:
Originally Posted by taan05 View Post
I do have a DHCP server running
I suppose you need client rather than server...
 
Old 06-28-2009, 03:48 PM   #3
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
Hi,
The kernel doesn't have any configuration for DHCP that
I can see, but it would be helpful if you can send
more information, what distro are you using,
what network card, your overall network configuration, etc.

In order to use DHCP you only need a correct driver for
your network card in the kernel (not as a module since
you are going thin client) and the configuration of
the network interface should be with dhcp.

Did you see in your DHCP server any request from the
client ? The DHCP server is working correctly? try testing
from another machine if the server answer the dhcp request.
 
Old 06-29-2009, 02:36 AM   #4
taan05
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for your reply.

To give you some more information, I am trying to boot an IBM Netvista N2200 remotely using NFS. The N2200 has a non-standard bios which does not allow any command line parameters to be passed to the kernel during boot. In the bios are parameters for the IP address of the NFS server and a checkbox to select DHCP as the means by which the Netvista obtains it's IP address.
Both of these work allowing me to boot the kernel. This implies the network card, DHCP server and NFS are working.

The stumbling block is trying to load the Root FS using NFS. On loading the kernel the IP address of the system and the address of the NFS server has to be set again(they are not passed to the kernel by the bios).

The ethernet drivers are built into the kernel (not modules) along with NFS and NFS Root support.
The following kernel config parameters in networking are set, "IP: Kernel Level Autoconfiguration" and "IP: DHCP support"

On boot, when trying to locate the Root FS, the kernel reports "No NFS server found" but no connections were made to the DHCP server to obtain an IP address.

I have read conflicting reports that the command line parameter "ip=dhcp" must be passed to the kernel at boot for it to automatically use DHCP, but I have not had this confirmed.

Thanks for any suggestions,
Gordon
 
Old 06-29-2009, 06:39 AM   #5
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
Hi,

I think the steps you are taking are correct although the BIOS
is something different, most of them use PXE in order to do
a remote boot, but if your kernel loads then that step is working
fine.

From your information your kernel configuration seems to be correct,
and the problem would be that your initrd command/script is not
initializing the network using DHCP in order to mount the RootFS.

My idea would be is you can make a test setup using LTSP which
is very easy to setup and that way you can test with proven components
if you setup works correctly and after that modify that setup to use
your own kernel, RootFS etc. If you use the PXE method for boot
you can have a more easy way to control which parameters pass to the
kernel, which initrd to use etc.

Best regards,
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Privacy Extensions for Stateless Address Autoconfiguration in IPv6: RFC3041/4941 gprakash.gps AIX 0 05-27-2009 04:07 AM
ipv6 autoconfiguration montrhano Linux - Networking 0 04-12-2007 03:35 AM
network autoconfiguration failed sevenfactorial Linux - Networking 5 06-28-2006 01:27 PM
Apache Autoconfiguration abhis_mail2002 Fedora 1 01-16-2006 02:44 AM
IPv6 stateless autoconfiguration client Fonk Debian 2 09-22-2005 01:33 AM

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

All times are GMT -5. The time now is 10: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