- assigning hostname to unknown clients

PDA

View Full Version : assigning hostname to unknown clients


Florian Effenberger
07-24-2004, 09:50 PM
Hi there,

I run DHCP 3.0pl2, and sending hostnames to known clients works just fine
using these configuration options:

===
use-host-decl-names on;
host somehost {
hardware ethernet 00:11:22:33:44:55;
fixed-address 123.123.123.123;
}
===

However, now I would like to have a range for guest computers with
dynamically assigned IP addresses out of a pool:

===
subnet 123.123.123.0 netmask 255.255.255.0 {
pool {
range 123.123.123.200 123.123.123.210;
allow unknown clients;
}
===

Unknown clients get their IP out of that range, however, I also would like
to send them (i.e. the clients) a hostname via DHCP as well, e.g. guest10.
Is there any option to do so? I already tried out various configuration
options, but as soon as there is no fixed ethernet address assigned, it
seems no host name gets send out.

Any ideas?

Thanks a lot!
Florian

Florian Effenberger
07-24-2004, 09:51 PM
Problem solved - it's a bug in DHCP. use-host-decl-names and
get-lease-hostnames can't be in dhcpd.conf together.