[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: diskless system's limited dhcp support



Ross Boylan wrote: 
> I have a buster system with no disk, started by PXE boot and using NFS root.
> It appears (details below) that dhcp setup is via ipconfig in one of the
> initrd scripts (configure_networking() in the "functions" script), with
> ipconfig coming from klibc.  So fiddling with the settings in dhclient.conf
> on the client has no effect, and ipconfig both sends and handles a narrower
> range of information than dhclient.  In particular, it doesn't send the
> host name (it actually can according to the docs, but the initrd scripts
> don't invoke it that way) and it seems to ignore (or at least not pass on)
> some of the info, like the domain, that gets sent back.
> 
> I would like, in particular, to have the client send the host name and
> respond to the usual parameters the server sends it, as well as to
> ntp-servers which I'd like to send.
> 
> Any thoughts on whether my analysis is correct?  On solutions?

The usual way is:

1. DNS record tied to a static IP address
2. IP address handed out by DHCP server based on MAC address of
   the interface

This is especially normal when the root is served by NFS, so PXE
needs to figure out the right root to hand out -- PXE is
governed by MAC address, and then you really want the kernel's
conception of its IP address to remain the same.

> bit of a hack.  Also, I'd like the DNS entry for the system to appear only
> while it is up, and without the client sending a host name that's harder.

That requires a server that listens to a dynamic DNS protocol,
and a dynamic DNS client on the client system.

Why would you care about the DNS name not being available when
the machine isn't up?

-dsr-


Reply to: