dhcp3 IP address allocation based on part of MAC doesn't work
Simon Hobson
dhcp1 at thehobsons.co.uk
Fri Mar 20 14:37:42 UTC 2009
b5b5b5b5 wrote:
>For few last days i'm trying to find why the IP address allocation
>based on part of MAC doesn't work.
>Everything else works fine.
>But when i try to make some allocation based on the part of MAC address, e.g.:
>
>class "vm-vmware" {
> match if substring (hardware, 1, 2) = 00:0C:29;
>}
>
>subnet 192.168.0.0 netmask 255.255.0.0 {
> range 192.168.20.160 192.168.20.240;
> option subnet-mask 255.255.0.0;
> pool {
> range 192.168.23.50 192.168.23.150;
> allow members of "vm-vmware";
> option subnet-mask 255.255.0.0;
> option routers 192.168.22.1;
> option broadcast-address 192.168.23.255;
> }
>}
>
>... then it doesn't work.
>The destination system takes it's IP address from the first range:
>"range 192.168.20.160 192.168.20.240".
That's because you didn't tell the server that those clients CAN'T
use that range.
You need :
subnet 192.168.0.0 netmask 255.255.0.0 {
pool {
range 192.168.20.160 192.168.20.240;
deny members of "vm-vmware";
}
option subnet-mask 255.255.0.0;
pool {
range 192.168.23.50 192.168.23.150;
allow members of "vm-vmware";
option subnet-mask 255.255.0.0;
option routers 192.168.22.1;
option broadcast-address 192.168.23.255;
}
}
--
Simon Hobson
Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.
More information about the dhcp-users
mailing list