bind mac address to ip pool?

Harald Dunkel harald.dunkel at aixigo.de
Mon Feb 8 13:50:35 UTC 2010


Hi Simon,

On 02/03/10 10:22, Simon Hobson wrote:
> 
> See man dhcpd.conf and look at the section (and example) on classes and
> subclasses. Define a class for each pool, add a subclass to assign
> clients to classes, and then add 'allow "someclassname" ;' to each pool
> (where someclassname is replaced with the appropriate class name).
> 

I tried, but it doesn't work :-(. Hosts are still assigned to the
wrong pool.

Here is the configuration (hopefully I did not cut off too
many lines):


class "real-host" {
	match pick-first-value (option dhcp-client-identifier, hardware);
}
class "virtual-host" {
	match pick-first-value (option dhcp-client-identifier, hardware);
}
shared-network physicalnet1 {
	subnet 192.168.1.0 netmask 255.255.255.0 {
		option routers 192.168.1.1;
		option subnet-mask 255.255.255.0;
		option broadcast-address 192.168.1.255;
		pool {
			deny unknown-clients;
			allow members of "real-host";
			failover peer "dhcp-failover";
			range 192.168.1.231 192.168.1.254;
		}
		pool {
			deny unknown-clients;
			allow members of "virtual-host";
			failover peer "dhcp-failover";
			ddns-domainname "dyn.mydomain.de";
			range 192.168.1.140 192.168.1.189;
		}
	}
}

host squeeze {
	hardware ethernet 00:16:36:65:73:c4;
	ddns-hostname "squeeze";
	option host-name "squeeze";
}
subclass "virtual-host" 00:16:36:65:73:c4;



AFAICS this is according to the example on dhcpd.conf, but
host "squeeze" is still assigned to the "real-host" pool.

Any helpful hint would be highly appreciated.


Regards

Harri



More information about the dhcp-users mailing list