Host with static entries in an other subnet

Simon Hobson dhcp1 at thehobsons.co.uk
Fri Sep 28 14:41:05 UTC 2007


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 134.108.71.252: 
>>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 be
>an easier way ...

It should "just work" ...

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

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