Host with static entries in an other subnet

Randall C Grimshaw rgrimsha at
Fri Sep 28 14:55:46 UTC 2007

You need multiple host definitions. One for dynamic assignment, another
for each static assignment. (and yes, these should be outside the

-----Original Message-----
From: dhcp-users-bounce at [mailto:dhcp-users-bounce at] On
Behalf Of Simon Hobson
Sent: Friday, September 28, 2007 10:41 AM
To: dhcp-users at; dhcp-server at
Subject: Re: Host with static entries in an other subnet

Patrick Cervicek wrote:

>We are useing one DHCP-Server for several Subnets. Following sceneario
>makes problems:
>- one subnet for the clients (static host-entries)
>- one subnet for client-installaton (dynamic)
>As soon as we move a client (with a static host-entry) to our dynamic
>installation-vlan, this client won't get an IP
>>... dhcpd: DHCPDISCOVER from 00:12:34:56:78:9c via 
>>network 134.108.71/24: no free leases
>When we comment out the the static host-entry, it works
>How can we use a dynmic range in our installation-vlan WITHOUT removing
>the static host-entry first? We are already thinking about a second
>independend DHCP-Server for the installation-subnet, but there should
>an easier way ...

It should "just work" ...

>Here an example of our dhcpd.conf
>subnet netmask {
>     option ... ;
>### won't get an IP-Adress in other subnet :-(
>host pc1025   { hardware ethernet 00:12:34:56:78:9c; fixed-address
> }
>### temporaliy disabled for installation subnet
>###host pc1030   { hardware ethernet 00:12:34:56:78:9f; fixed-address
> }
># Installation-subnet
>subnet netmask {
>     range;

Take the host statements out of the subnet declaration - they are 
global, but putting them inside a subnet declaration can cause some 
interesting effects.

More information about the dhcp-users mailing list