Re: DHCP server - map to host names?
From: Whoever (nobody@devnull.none)
Date: 04/22/03
- Next message: Valentin Nechayev: "Re: /bin/ksh not found"
- Previous message: LHradowy: "Re: DHCP server - map to host names?"
- In reply to: Dave Miner: "Re: DHCP server - map to host names?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Whoever <nobody@devnull.none> Date: Tue, 22 Apr 2003 17:59:47 GMT
On Thu, 17 Apr 2003, Dave Miner wrote:
> John Howells wrote:
> >
> > LHradowy wrote:
> >
> >>How would I set up the DHCP server to map ip's to the host names, currently
> >>I am mapping to the MAC address. I am running currently SUN 5.7
> >
> >
> > If the question is
> >
> >
> > how can I set up the DHCP server so that a machine that has its name set
> > to 'fred' always has the address '1.2.3.4' without having to set a
> > static MAC address allocation in the network table, and so that even if
> > the MAC address of 'fred' were to change it would still have the address
> > '1.2.3.4' allocated
> > <<
> >
> > I think the answer is you cannot. The DHCP server can only allocate
> > dynamic or static addresses, and the latter can only be done against MAC
> > address.
> >
>
> This isn't quite true, in that the DHCP server allocates address to a client's
> identifier; usually this is defaulted to being based on the MAC address, but
> some clients (such as Solaris and the ISC client for Linux and other Unixes) can
> be set to send an arbitrary string as the client identifier, and this could be a
> hostname in those cases.
This isn't quite true. Firstly, this is a function of the dhcp server, and
before any absolute statements such as this are made, one should know
which server is being discussed.
With ISC's DHCP server, you can match on the client identifier (usually
based on the MAC address) or you can match and allocate based on the MAC
address itself (and ignore the client identifier).
>From "man dhcpd.conf":
Host declarations are matched to actual DHCP or BOOTP clients by
matching the dhcp-client-identifier option specified in the host
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
declaration to the one sup-plied by the client, or, if the host
declaration or the client does not provide a dhcp-client-identifier
option, by matching the hardware parameter in the host declaration to the
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
network hardware address supplied by the client. BOOTP clients do not
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
normally provide a dhcp-client-identifier, so the hardware address must be
used for all clients that may boot using the BOOTP protocol.
- Next message: Valentin Nechayev: "Re: /bin/ksh not found"
- Previous message: LHradowy: "Re: DHCP server - map to host names?"
- In reply to: Dave Miner: "Re: DHCP server - map to host names?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|