Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have enabled kernel level IP configuration in my linux kernel and compiled it, but it does not try get any DHCP address. Why?

Is there something extra or special I have to do?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Make sure:

  • the kernel has loaded the drivers for your NIC
  • DHCP is enabled for IP autoconfiguration

Then add ip=dhcp to the kernel command line and you're good to go.

share|improve this answer

From KConfig

CONFIG_IP_PNP:

This enables automatic configuration of IP addresses of devices and of the routing table during kernel boot, based on either information supplied on the kernel command line or by BOOTP or RARP protocols.

So it can't be used with plain DHCP For using with DHCP you need additional option.

share|improve this answer
    
Does you turn on CONFIG_IP_PNP_DHCP ? –  osgx Feb 6 '10 at 15:47
2  
config IP_PNP_DHCP bool "IP: DHCP support" depends on IP_PNP lxr.linux.no/#linux+v2.6.19/net/ipv4/Kconfig –  osgx Feb 6 '10 at 15:48
1  
Also, you need to check kernel logs: KERN_NOTICE level for "Sending ... requests" where ... can be DHCP, BOOTP, RARP –  osgx Feb 6 '10 at 15:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.