Re: Identify dhcp client to server using hostname
Robert Ian Smit <robian@xs4all.nl> writes:
>
> I have created a range of dynamic ip-numbers and have tried to find
> a way to identify those hosts that need a fixed address using host
> statements.
The client-supplied "host-name" parameter won't do it. Instead, you
need to configure the client to send a textual "dhcp-client-identifier",
and the server will use that (instead of its MAC address) to identify
it.
That is, on the DHCP client side, you want:
send dhcp-client-identifier "myhost";
and on the DHCP server side, you want:
host myhost {
option dhcp-client-identifier "myhost";
fixed-address 192.168.1.7;
}
I haven't tested it myself, but that should work. Search for
"dhcp-client-identifier" in the dhcpd.conf(5) manpage for more
information. The following shows another example someone got to
work:
http://mail.gnu.org/archive/html/bug-grub/2000-12/msg00045.html
He also included a "send host-name" tag in the client configuration,
though I don't think that's necessary.
--
Kevin <buhr@telus.net>
Reply to: