dhcp3, assign IP based on client
Hello,
I wondering if I can assign a specific IP to a machine based
on its name?
I realize this can be done with hardware ethernet address, but
I would prefer to use client-hostname if its even possible.
A regular machine connecting to the dhcp3 server will add an entry to
the dhcpd.leases file, something like:
lease 10.0.0.60 {
starts 3 2006/12/06 02:45:05;
ends 3 2006/12/06 04:25:05;
binding state active;
next binding state free;
hardware ethernet 00:17:f2:eb:2a:f8;
uid "\001\000\027\362\353*\370";
client-hostname "laptop";
}
Any chance I can use the client-hostname line and say; if this line
equals "laptop" then give this machine an IP of 10.0.0.222 ?
Thanks,
Mike
Reply to: