Is there a way to exclude a single IP address from a DHCP pool? For various reasons I have a machine that I can't reconfigure or move off the network (let's call it a printer). It has been hard coded with address x.x.x.50
and my DHCP pool is x.x.x.10 -> x.x.x.246
.
I don't want to have two pool definitions for this one subnet just to cover the ranges on either side of this machine. Is there some form of 'exclude IP' argument/option?
I'm using Ubuntu 11 and the isc-dhcp-server
package.
DISCLAIMER: I have googled and it only came up with IOS and Juniper configuration info.
Why don't you set the IP for that appliance explicitly:
I just successfully tested a configuration with two ranges like that. Multiple range statements are legal, as per the manpage there must be at least one range statement:
I think you want to do static DHCP assignment. See if this help. http://www.miquels.cistron.nl/isc-dhcpd/ http://forums.whirlpool.net.au/archive/309440
You shouldn't need to worry about it - the DHCP server will check whether the address exists on the network before allocating it. Do
man dhcpd.conf
and look at theIP Address Conflict Prevention
section. Provided the device will respond to an ICMP Echo Request, you don't need to do anything.Note: A conflict may arise if a device gets the IP address via DHCP initially, followed by the static address being allocated.