bind mac address to ip pool?

Harald Dunkel harald.dunkel at aixigo.de
Mon Feb 8 14:51:41 UTC 2010


On 02/08/10 15:02, Simon Hobson wrote:
> 
> Remove "deny unknown-clients;" and see what happens. When you use deny,
> then anything not explicitly denied is allowed, and vice-versa for allow
> statements. When you use both, I can't remember the details of how they
> interact - but it's not immediately intuitive.
> 
> "allow members of ..." is sufficient as it will implicitly deny anything
> not in the named class.
> 

Still doesn't work. Squeeze is bound to the wrong pool.

In /var/log/daemon.log on _both_ servers I found messages like

	DHCPDISCOVER from 00:16:36:65:73:c4 via eth0: peer holds all free leases
and
	DHCPREQUEST for 192.168.1.243 (192.168.1.123) from 00:16:36:65:73:c4 via eth0: lease owned by peer

???


Below is the current configuration. According to your
mail host squeeze should get a mac address from the
second pool, because it is member of the virtual-host
class, which is explicitly denied for the first pool.


class "virtual-host" { match hardware; }
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;

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;
			deny members of "virtual-host";
			failover peer "dhcp-failover";
			range 192.168.1.231 192.168.1.254;
		}
		pool {
			allow members of "virtual-host";
			failover peer "dhcp-failover";
			ddns-domainname "dyn.mydomain.de";
			range 192.168.1.140 192.168.1.189;
		}
	}
}

If I add another "real-host" class and change the configuration
of the first pool accordingly, then squeeze doesn't get an
IP address at all.



More information about the dhcp-users mailing list