Results 1 to 2 of 2
Hi,
This is the chunck of config that I'm having trouble with:
Code:
class "sysadm" {
match pick-first-value (option dhcp-client-identifier, hardware);
lease limit 2;
}
subclass "sysadm" 00:0d:56:b8:2d:6c; # Dell ...
- 06-02-2006 #1Just Joined!
- Join Date
- May 2006
- Posts
- 2
Dhcpd.conf classes question
Hi,
This is the chunck of config that I'm having trouble with:
Basicly what I want to achieve is a class with the matching done on the mac adresses that I can use throughout several subnets for pools of IPs. This will significantly simplify the maintenance because if a new mac must be put in I write it in the class and then I use that class in all the 5 or 6 subnet declarations I have.Code:class "sysadm" { match pick-first-value (option dhcp-client-identifier, hardware); lease limit 2; } subclass "sysadm" 00:0d:56:b8:2d:6c; # Dell ethernet subclass "sysadm" 00:90:96:b8:5f:9d; # Dell wireless >>>>>>>>>>>>>>>>>>Other stuff <<<<<<<<<<<<<<<<< subnet 192.168.6.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option broadcast-address 192.168.6.255; option routers 192.168.6.1; pool { allow members of "sysadm"; range 192.168.6.240 192.168.6.241; } }
The dhcpd daemon starts with no errors but I get a "NO free leases" message in the logs. I suspect that the matching doesn't occur because if I use a range without restrictions it gives a lease imediatly. Any ideea?
- 06-02-2006 #2Just Joined!
- Join Date
- May 2006
- Posts
- 2
Ok... so I did some more googeling afterwards...
It works with the following config:
Notice the "1" in front of the mac addresses in the subclass declarations. That stands for ethernet I guess.Code:class "sysadm" { match option dhcp-client-identifier; lease limit 2; } subclass "sysadm" 1:00:0d:56:b8:2d:6c; # Dell ethernet subclass "sysadm" 1:00:90:96:b8:5f:9d; # Dell wireless >>>>>>>>>>>>>>>>>>Other stuff <<<<<<<<<<<<<<<<< subnet 192.168.6.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option broadcast-address 192.168.6.255; option routers 192.168.6.1; pool { allow members of "sysadm"; range 192.168.6.240 192.168.6.241; } }


Reply With Quote