* DHCP lease renewal after boot
@ 2007-05-12 13:41 Edward Jubenville
0 siblings, 0 replies; only message in thread
From: Edward Jubenville @ 2007-05-12 13:41 UTC (permalink / raw)
To: Linuxppc-Embedded
I posted a similar question in the u-boot list, but this list seems more
appropriate...
When I configure u-boot to get an IP address using DHCP, and pass that IP
through the kernel command line, doesn't the kernel need to know that it was
obtained from DHCP, so that it can maintain the lease on the IP address? Is
it allowable for the kernel to treat the command line IP address as a static
IP, and ignore the obligations of DHCP lease renewal?
I found the following in Documentation/kernel-parameters.txt. The last
sentence suggests that it is OK for the kernel to abandon responsibility of
DHCP lease renewal. This seems to violate the DHCP protocol, RFC 2131
"4.4.5 Reacquisition and expiration".
"DHCP support
CONFIG_IP_PNP_DHCP
If you want your Linux box to mount its whole root file system (the
one containing the directory /) from some other computer over the
net via NFS and you want the IP address of your computer to be
discovered automatically at boot time using the DHCP protocol (a
special protocol designed for doing this job), say Y here. In case
the boot ROM of your network card was designed for booting Linux and
does DHCP itself, providing all necessary information on the kernel
command line, you can say N here."
RFC 2131 describes a DHCPINFORM message that clients can use to announce
their static IP addresses to a DHCP server. Therefore, it matters whether
the IP address u-boot passes to the kernel is dynamic or static, because it
implies different behaviors in the kernel after boot.
How do I tell the kernel whether its command line IP address is static or
dynamic?
I'm using u-boot 1.1.4 with kernel 2.4.25 from ELDK 3.1.1
Ed Jubenville
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-12 14:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-12 13:41 DHCP lease renewal after boot Edward Jubenville
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox