SV: Problem using subclasses, getting no free leases
Uddenhed, Marcus
marcus.uddenhed at horby.se
Tue Mar 21 12:12:10 UTC 2006
Hi, thanks for the quick reply.
I changed the match hardware-address; to match hardware;
as described but not the range suggested below, what does
that one do exactly since it's out of the scop on the first range
part?
And i changed the wrongly entered mac adress. =)(Me bonehead, ugh)
so now it works but it feels like one of the top rows made it possible
and wich one since i haven't used any of the earlier.
authoritative;
deny duplicates;
deny declines;
get-lease-hostnames on;
one-lease-per-client on;
ddns-update-style none;
default-lease-time 3600;
max-lease-time 84600;
allow client-updates;
boot-unknown-clients on;
But the mather is primarily solved so thanks again for the quick help.
Regards
Marcus
-----Ursprungligt meddelande-----
Från: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] För Holger Honert
Skickat: den 21 mars 2006 12:36
Till: dhcp-users at isc.org
Ämne: Re: Problem using subclasses, getting no free leases
Hi Marcus,
what about defining a pool range such as:
subnet 192.168.8.0 netmask 255.255.255.224 {
pool
{
range 192.168.8.11 192.168.8.100;
option domain-name "public.local";
option subnet-mask 255.255.255.224;
range 192.168.8.10 192.168.8.20;
allow members of "test";
}
}
Kind Regards
Holger
Uddenhed, Marcus schrieb:
> I can't get the use of subclasses in dhcpd.conf it says that there are
> no free leases, below are the dhcpd.conf file, tcpdump from the dhcpd
> server and the logmessages in the messages log.
>
> What am i doing wrong.
>
> The clients are primarily Windows machines if that could be an tip in
> the right direction on the error.
>
> I've used the following rows to instead of the match hardware-address
> under class "test" clause.
> "match hardware;" & "match pick-first-value (option
> dhcp-client-identifier, hardware);" but with no difference in the
> outcome.
>
> Thanks in advance
>
> Marcus Uddenhed
>
> dhcpd.conf:
> -----------------
>
> authoritative;
> deny duplicates;
> deny declines;
> get-lease-hostnames on;
> one-lease-per-client on;
> ddns-update-style none;
> default-lease-time 3600;
> max-lease-time 84600;
> allow client-updates;
> boot-unknown-clients on;
>
> # test class
> class "test"
> {
> match hardware-address;
> }
>
> subclass "test" 1:00:0c:29:bb:e5:db;
>
> subnet 192.168.8.0 netmask 255.255.255.224 {
> pool
> {
> option domain-name "public.local";
> option subnet-mask 255.255.255.224;
> range 192.168.8.10 192.168.8.20;
> allow members of "test";
> }
> }
>
>
> tcpdump -vv:
> ------------------
>
> 09:39:20.688212 IP (tos 0x0, ttl 128, id 551, offset 0, flags [none],
> proto: UDP (17), length: 328) 0.0.0.0.bootpc > 255.255.255.255.bootps:
> BOOTP/DHCP, Request from 00:0c:29:bb:e5:bd (oui Unknown), length: 300,
> xid:0x25385500, flags: [Broadcast] (0x8000) Client Ethernet Address:
> 00:0c:29:bb:e5:bd (oui Unknown) [|bootp] 09:39:22.498040 IP (tos 0x0,
> ttl 128, id 552, offset 0, flags [none],
> proto: UDP (17), length: 328) 0.0.0.0.bootpc > 255.255.255.255.bootps:
> BOOTP/DHCP, Request from 00:0c:29:bb:e5:bd (oui Unknown), length: 300,
> xid:0x25385500, secs:57227, flags: [Broadcast] (0x8000) Client
> Ethernet Address: 00:0c:29:bb:e5:bd (oui Unknown) [|bootp]
> 09:39:26.267276 IP (tos 0x0, ttl 128, id 553, offset 0, flags [none],
> proto: UDP (17), length: 328) 0.0.0.0.bootpc > 255.255.255.255.bootps:
> BOOTP/DHCP, Request from 00:0c:29:bb:e5:bd (oui Unknown), length: 300,
> xid:0x25385500, secs:57227, flags: [Broadcast] (0x8000) Client
> Ethernet Address: 00:0c:29:bb:e5:bd (oui Unknown) [|bootp]
> 09:39:31.280183 IP (tos 0x0, ttl 128, id 554, offset 0, flags [none],
> proto: UDP (17), length: 328) 0.0.0.0.bootpc > 255.255.255.255.bootps:
> BOOTP/DHCP, Request from 00:0c:29:bb:e5:bd (oui Unknown), length: 300,
> xid:0x25385500, secs:57227, flags: [Broadcast] (0x8000) Client
> Ethernet Address: 00:0c:29:bb:e5:bd (oui Unknown) [|bootp]
>
> messages log:
> ----------------------
>
> Mar 20 15:00:33 dhcp dhcpd: DHCPDISCOVER from 00:0c:29:bb:e5:bd via
> lnc0: network 192.168.8.0/27: no free leases Mar 20 15:01:51 dhcp
> dhcpd: DHCPDISCOVER from 00:0c:29:bb:e5:bd via
> lnc0: network 192.168.8.0/27: no free leases Mar 20 15:02:06 dhcp last
> message repeated 3 times Mar 20 15:04:57 dhcp dhcpd: DHCPDISCOVER from
> 00:0c:29:bb:e5:bd via
> lnc0: network 192.168.8.0/27: no free leases Mar 20 15:08:23 dhcp last
> message repeated 7 times Mar 20 15:10:15 dhcp dhcpd: DHCPDISCOVER from
> 00:0c:29:bb:e5:bd via
> lnc0: network 192.168.8.0/27: no free leases Mar 20 15:10:29 dhcp last
> message repeated 3 times Mar 20 15:13:42 dhcp dhcpd: DHCPDISCOVER from
> 00:0c:29:bb:e5:bd via
> lnc0: network 192.168.8.0/27: no free leases Mar 20 15:13:58 dhcp last
> message repeated 3 times
>
>
>
>
>
More information about the dhcp-users
mailing list