Reservation best practices?

jeffrey j donovan donovan at beth.k12.pa.us
Wed Jul 13 12:26:26 UTC 2011


On Jul 13, 2011, at 12:21 AM, Glenn Satchell wrote:

> On 07/13/11 06:53, Joshua Beard wrote:
>> 
>> On Jul 12, 2011, at 12:17 PM, Joshua Beard wrote:
>> 
>>> Greetings,
>>> 
>>> This is likely a rookie question, but I thought I'd ask the list.
>>> 
>>> The scenario:
>>> We've received many new printers on our network this week, which already had hostnames preset to conform to our standards and were setup for DHCP.  My plan was to let them get DHCP and then reserve the address for them by using the MAC.
>>> 
>>> After reading around, it looks like reservations don't work that way in ISC DHCP.  My understanding is that the reserved address cannot be in the lease pool.  Unfortunately, these printers have already received addresses in the pools of their respective subnets.
>>> 
>>> Additionally, some of the folks setting them up may have already added these printers via their IP addresses to client machines.
>>> 
>>> What's recommendations are there to handle this?  I'm thinking I'll have to set aside a block of addresses in each subnet that's not in the pool and reserve them in that and wait for them to make a new request, then adjust any client machines that are talking to them via IP.  Is this my best option?  Is there a clean way to do this with ddns in mind?
>>> 
>>> Thanks in advance,
>>> Josh
>> 
>> 
>> Thanks for all the responses.  I ended up just setting aside a range from each subnet's non-pooled addresses and designating them for reservations and hacking together a couple of scripts to bulk import them into BIND and DHCP's configs.
>> 
>> Josh
>> 

Greetings

Josh , take a look at your /var/db/dhcpd.leases file, you can get the hostname ,mac address and other information then you can can create a group and assign either a pool to the group or add a static entry for your printers. You can create separate file or place this at the end of your conf
example

group {
option routers 10.13.1.1;
option domain-name-servers 10.13.1.21, 10.13.1.2;
option pacserver "http://10.13.1.29/~username/proxy.pac";
	host recon77 {
	fixed-address 10.13.1.77;
	hardware ethernet 00:25:bc:eg:c1:9d;
	}
	host FooBookPro {
	fixed-address 10.13.1.99;
	hardware ethernet 00:17:f2:6c:3c:fb;
	}
}#close group
host MyPrintert {
fixed-address 10.153.6.66;
option routers 10.153.6.1
hardware ethernet 00:16:e0:08:4d:80;
}


More information about the dhcp-users mailing list