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 _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded