Getting IP range for different network

Abu Abdulla alhanbali montaqa at gmail.com
Sun Aug 26 10:43:41 UTC 2007


Dear all,
Is there a way that specific devices receive different IP range from the
subnet that it is in using dhcp-client-identifier.

for example I have a voice unit in a network (172.19.0.0) that should
receive a private ip (e.g. 10.0.1.5). The relay agent for the unit is
172.19.0.1 and it has a Client identifier of "SipuraTe" (Client MAC address:
SipuraTe_e8:4e:bf). This is because I don't know if the gatway of the device
(10.0.1.1) support DHCP relay agent or not.

So all nodes with that network (172.19.0.0) should receive IPs within the
range 172.19.0.2 - 254 except the devices that has "SipuraTe" Client
identifier in which they should receive IPs within the range of 10.0.1.2 -
254

I tried this without success:
---------------------

subnet 172.19.0.0 netmask 255.255.255.0
{
  option subnet-mask 255.255.255.0;
  option routers 172.19.0.1;
  range 172.19.0.2 172.19.0.254;
  pool
  {
    match if substring (option dhcp-client-identifier, 1, 7) = "SipuraTe";
    range 10.0.1.2 10.0.1.254;
  }
}

----------------

Thanks in advance




More information about the dhcp-users mailing list