Networking Forums

Networking Forums > Computer Networking > Linux Networking > Newbie and DHCP no free leases

Reply
Thread Tools Display Modes

Newbie and DHCP no free leases

 
 
Walter Zambotti
Guest
Posts: n/a

 
      05-27-2004, 06:14 AM
Can anyone spot my mistake in this dhcp configuration.

I am continually getting the error "no free leases" when I try
to do any class matching.

In the configuration file you can see I have tried a number of ways
to match a client. I have tried a simple hardware match but that
failed.

Can anyone say why the subclass ethernet address has a 1: prepended
to it. I have tried it with and without this of course!

The configuration file follows:

ddns-update-style ad-hoc;
default-lease-time 21600;
max-lease-time 43200;
option domain-name-servers 10.0.0.138;

subnet 10.0.0.0 netmask 255.192.0.0 {
#not authoritative;
option broadcast-address 10.0.0.255;
option routers 10.0.0.138;
range 10.0.0.11 10.0.0.254;
}


class "admin" {
#match pick-first-value (option dhcp-client-identifier, hardware);
match if substring ( option host-name, 1, 10) = "officepcyc";
}

class "training" {
match if substring ( option host-name, 1, 12 ) = "trainingpcyc";
#match pick-first-value (option dhcp-client-identifier, hardware);
#match hardware;
}

subclass "training" 00:0c:6e:f8:5b:d4;
subclass "training" 1:0:c:6e:f8:5b:d4;
subclass "training" 1:00:0c:6e:f8:5b:d4;

group {
use-host-decl-names on;

host trainingpcyc1 {
hardware ethernet 00:0c:6e:f8:5b:d4;
#fixed-address 10.128.0.2;
}
}

class "NetCafe-Clients" {
match pick-first-value (option dhcp-client-identifier, hardware);
#match if substring ( option host-name, 1, 7) = "netcafe";
}

shared-network pcycnet {
subnet 10.64.0.0 netmask 255.192.0.0 {
option routers 10.64.0.10;
pool {
allow members of "Admin-Clients";
deny unknown clients;
range 10.64.0.11 10.64.0.254;
}
}

subnet 10.128.0.0 netmask 255.192.0.0 {
option routers 10.128.0.10;
pool {
allow members of "training";
deny unknown clients;
range 10.128.0.11 10.128.0.254;
}
}

subnet 10.192.0.0 netmask 255.192.0.0 {
option routers 10.192.0.10;
pool {
allow members of "NetCafe-Clients";
deny unknown clients;
range 10.192.0.11 10.192.0.254;
}
}
}

----------------

The error message seen is:

DHCPDISCOVER from 00:0c:6e:f8:5b:d4 via eth1: network pcycnet: no free leases
DHCPDISCOVER from 00:0c:6e:f8:5b:d4 via eth1: network pcycnet: no free leases


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
partner_down - peer holds all free leases oto.maly@gmail.com Linux Networking 0 04-01-2009 05:44 PM
"no free leases" problem with isc dhcp 3.0.1 on Debian ceremona@gmail.com Linux Networking 2 06-20-2006 10:59 PM
Odd issue with DHCP leases & RAS zebulebu Windows Networking 4 03-10-2006 09:10 AM
DHCP leases from old box to new box. edavid3001@gmail.com Linux Networking 4 11-11-2005 11:26 PM
dhcpd - No Free Leases NAV Linux Networking 6 09-08-2005 04:33 AM



1 2 3 4 5 6 7 8 9 10 11