dhcp3 IP address allocation based on part of MAC doesn't work
b5b5b5b5
b5b5b5b5 at centrum.sk
Fri Mar 20 14:48:14 UTC 2009
Hm, didn't thought about that it was needed to deny the "class-ed" MAC
addresses.
Anyway, now it works.
Thx a lot.
Daniel
Simon Hobson wrote:
> 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;
> }
> }
>
More information about the dhcp-users
mailing list