Selecting fixed or dynamic address based on vendor-class-identifier

Sten Carlsen stenc at s-carlsen.dk
Mon Oct 21 21:05:20 UTC 2013


On 21/10/13 21.31, Peter Rathlev wrote:
> On Mon, 2013-10-21 at 17:06 +0200, Anders Blomdell wrote:
>> I would like the ISC dhcpd server to hand out either a dynamic ip
>> address or a fixed address based on the vendor-class-identifier (I
>> want a dynamic address from one subnet during pxeboots and a
>> [possibly] fixed address from another subnet otherwise).
> Maybe you could do it by using "deny known-clients" in the pool and
> removing "ignore booting" from the host declaration. Something like
> this:
>
>   subnet 192.168.254.0 netmask 255.255.255.0 {
>     pool {
>       allow members of "pxeclient";
>       deny known-clients;
>       range 192.168.254.100 192.168.254.109;
>     }
>   }
>
>   host boottest {
>     hardware ethernet 02:13:10:07:11:58;
>     fixed-address 192.168.255.12;
>   }
>
> It passes a syntax check, though I haven't actually tested it.
Probably you need a subnet for ...255.x? If not, I don't see how you
will get an address for 192.168.255.12?

>

-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20131021/a1c0debb/attachment.html>


More information about the dhcp-users mailing list