[klibc] ipconfig and boot filename option
H. Peter Anvin
hpa at zytor.com
Sat May 24 11:07:22 PDT 2008
Άλκης Γεωργόπουλος wrote:
> ipconfig is used in ltsp (thin clients) initramfs. Some of the users
> have to have 2 dhcp servers in ltsp environments, so they hit on this
> The first dhcp request is from the pxe rom boot code. This code
> ignores any dhcp offers that don't have a filename field. So they
> always get the correct address, from the ltsp server.
> The second dhcp request (in initramfs) is done by ipconfig. And here
> is the problem, ipconfig accepts any offered addresses, even those
> that don't have the filename option. So the clients may get their ip
> from the wrong dhcp server (e.g. the adsl router) and fail to boot.
> What I'm asking for is a command line option,
> that forces ipconfig to ignore all DHCPOFFERs that do not have a
> filename option,
> so that it only accepts ip addresses from ltsp servers.
I think that would be a very bad idea.
A much better idea would be to use the "ipappend 2" option to pxelinux,
which passes the hardware address of the booting interface to the
kernel. Then just bring *that* interface up.
More information about the klibc