Selecting fixed or dynamic address based on vendor-class-identifier
Peter Rathlev
peter at rathlev.dk
Mon Oct 21 19:31:59 UTC 2013
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.
--
Peter
More information about the dhcp-users
mailing list