FW: No free leases

Simon Hobson dhcp1 at thehobsons.co.uk
Fri Sep 1 22:17:26 UTC 2006


Marcos Iuato wrote:

>subnet 192.168.11.0 netmask 255.255.255.0 {
>          option subnet-mask            255.255.255.0;
>          option broadcast-address      192.168.11.255;
>          option routers                192.168.11.251;
>          option domain-name-servers    192.168.11.251;
>          option domain-name            "vlan2";
>
>          filename "/pxelinux.0";
>
>          group {
>                 next-server 192.168.11.253;
>
>                 # Host Terminal:vlan2:47
>                      host 192.168.21.120 {
>                      hardware ethernet 00:13:90:00:F2:0F;
>                      fixed-address 192.168.11.120;
>                 }
>                 # Host Terminal:vlan2:48
>                      host 192.168.21.121 {
>                      hardware ethernet 00:13:90:01:0C:82;
>                      fixed-address 192.168.11.121;
>                 }
>                 # Host Terminal:vlan2:48
>                      host 192.168.21.122 {
>                      hardware ethernet 00:13:90:00:F3:DA;
>                      fixed-address 192.168.11.122;
>                 }
>          }
>}

Note that you have put host declarations inside a subnet declaration. 
This is generally considered a bad thing. Host statements should be 
treated as global and placed in the global scope (ie outside of any 
subnet declarations) or you can get some subtle and difficult to 
diagnose problems.

The clients will inherit settings from the subnet automatically.

Simon


More information about the dhcp-users mailing list