From: "Edward Jubenville" <edjubenville@adelphia.net>
To: "Linuxppc-Embedded" <linuxppc-embedded@ozlabs.org>
Subject: DHCP lease renewal after boot
Date: Sat, 12 May 2007 06:41:00 -0700 [thread overview]
Message-ID: <GPECLCIGPLHEOMGPMCPAEEPCEKAA.edjubenville@adelphia.net> (raw)
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
reply other threads:[~2007-05-12 14:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=GPECLCIGPLHEOMGPMCPAEEPCEKAA.edjubenville@adelphia.net \
--to=edjubenville@adelphia.net \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox