Static Leases do not work

jeffrey j donovan donovan at beth.k12.pa.us
Thu Feb 2 12:55:35 UTC 2012


On Feb 2, 2012, at 4:10 AM, Küppers, Malte wrote:

> Hi there,
>  
> I’m currently setting up a large DHCP Server in my company with about 10000 subnets. I managed to get everything working fine, but I want to set static addresses for some hosts (e.g. printers).
> The problem I’m experiencing is, that I don’t know how to make them static persistently. I used omshell to register a new host object from given MAC and set an IP but I’m not satisfied with that, because the addresses defined are given out
> to dynamic clients again (A side effect of mixing static and dynamic range). Then I simply tried giving the lease the “reserved” state, which also worked fine, but the reserved lease does not appear in dhcpd.leases file after a while an so I guess it is not
> persistently stored? Whats the difference between reserved and static ?
> I just want a single IP range where leases can be dynamically made static and keep that IP… Any ideas?


create a zone and allocate a dynamic range. once your clients receive a lease you can create a static entry for them. BUT,.. you must change the range for dynamic. So that you don't have statics in the middle of your dynamic range.


#FHS-1541 zone1
subnet 10.154.0.0 netmask 255.255.0.0 {
		option routers 10.154.1.1;
		option domain-name-servers 10.154.1.2;
		range 10.154.2.1 10.154.2.254;
}

## static hosts
############
#### noc clients
include "/usr/local/etc/154_clients";

#### 154_clients
group {
option routers 10.154.1.1;
option domain-name-servers 10.154.1.21, 10.154.1.2;

	host recon77 {
	fixed-address 10.154.1.77;
	hardware ethernet 00:25:bc:df:b1:4c;
	}
	host FooBookPro {
	fixed-address 10.154.1.99;
	hardware ethernet 00:17:f2:d1:ff:f6;
	}
}#close group


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120202/9af68a8f/attachment.html>


More information about the dhcp-users mailing list