<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5764" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana size=2></FONT><FONT face=Verdana size=2>There was a
thread on the subject back in December 2008.</FONT></DIV>
<DIV><FONT face=Verdana size=2> <A
href="https://lists.isc.org/pipermail/dhcp-users/2008-December/subject.html">https://lists.isc.org/pipermail/dhcp-users/2008-December/subject.html</A></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Here is an explanation for the problem you
described.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2><A
href="https://lists.isc.org/pipermail/dhcp-users/2008-December/007565.html">https://lists.isc.org/pipermail/dhcp-users/2008-December/007565.html</A></FONT></DIV>
<DIV><FONT face=Verdana size=2>and</FONT></DIV>
<DIV><FONT face=Verdana size=2><A
href="https://lists.isc.org/pipermail/dhcp-users/2008-December/007568.html">https://lists.isc.org/pipermail/dhcp-users/2008-December/007568.html</A></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>There is an alternative, however it may not
work in your case because of shared networks.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2> <A
href="https://lists.isc.org/pipermail/dhcp-users/2008-December/007574.html">https://lists.isc.org/pipermail/dhcp-users/2008-December/007574.html</A></FONT></DIV>
<DIV><FONT face=Verdana size=2> <A
href="https://lists.isc.org/pipermail/dhcp-users/2008-December/007576.html">https://lists.isc.org/pipermail/dhcp-users/2008-December/007576.html</A></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Regards,</FONT></DIV>
<DIV><FONT face=Verdana size=2>Reissom Beshir</FONT></DIV>
<DIV><FONT face=Verdana size=2>Mitel Networks</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Verdana size=2>From: "Tor Houghton" <</FONT><A
href="mailto:torh+dhcp-users@bogus.net"><FONT face=Verdana
size=2>torh+dhcp-users@bogus.net</FONT></A><FONT face=Verdana
size=2>></FONT></DIV>
<DIV><FONT face=Verdana size=2>To: <</FONT><A
href="mailto:dhcp-users@lists.isc.org"><FONT face=Verdana
size=2>dhcp-users@lists.isc.org</FONT></A><FONT face=Verdana
size=2>></FONT></DIV>
<DIV><FONT face=Verdana size=2>Sent: Wednesday, May 20, 2009 4:17
AM</FONT></DIV>
<DIV><FONT face=Verdana size=2>Subject: Question regarding client
classes</FONT></DIV></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana><FONT face="Times New Roman">Ick, I mistakenly sent this
to dhcp-hackers; I humbly apologise.<BR><BR>List,<BR><BR>I have a number of
similar clients (phones) with the same vendor-id, but they<BR>exist on different
subnets.<BR><BR>How can I best set subnet-specific options for these
classes?<BR><BR>I thought I would be able to define a bunch of "class"
defines:<BR><BR>class "Phones-Subnet1" {<BR> match if substring (option
vendor-class-identifier, 0, 3) = "SOFT";<BR> option soft-option
"ip1=10.0.0.1;ip2=10.0.0.2;";<BR>}<BR><BR>class "Phones-Subnet2"
{<BR> match if substring (option vendor-class-identifier, 0, 3) =
"SOFT";<BR> option soft-option
"ip1=10.1.0.1;ip2=10.1.0.2;";<BR>}<BR><BR>class "Phones-Subnet3"
{<BR> match if substring (option vendor-class-identifier, 0, 3) =
"SOFT";<BR> option soft-option
"ip1=10.2.0.1;ip2=10.2.0.2;";<BR>}<BR><BR>and then use a number of
"shared-network" definitions, so:<BR><BR>shared-network "subnet1"
{<BR> subnet 10.0.0.0 netmask 255.255.255.0 {<BR> option subnet-mask
255.255.255.0;<BR> option routers 10.0.0.254;<BR> default-lease-time
28800;<BR> max-lease-time 86400;<BR> pool
{<BR> range 10.0.0.64
10.0.0.128;<BR> allow members of
"Phones-Subnet1";<BR> }<BR> }<BR>}<BR><BR>shared-network
"subnet2" {<BR> subnet 10.1.0.0 netmask 255.255.255.0 {<BR> option
subnet-mask 255.255.255.0;<BR> option routers
10.0.0.254;<BR> default-lease-time 28800;<BR> max-lease-time
86400;<BR> pool {<BR> range 10.1.0.64
10.1.0.128;<BR> allow members of
"Phones-Subnet2";<BR> }<BR> }<BR>}<BR><BR>shared-network
"subnet3" {<BR> subnet 10.2.0.0 netmask 255.255.255.0 {<BR> option
subnet-mask 255.255.255.0;<BR> option routers
10.2.0.254;<BR> default-lease-time 28800;<BR> max-lease-time
86400;<BR> pool {<BR> range 10.2.0.64
10.2.0.128;<BR> allow members of
"Phones-Subnet3";<BR> }<BR> }<BR>}<BR><BR>However, this does
not appear to work (perhaps I missed something important<BR>in the documentation
..); all networks are given options from the<BR>Phones-Subnet1 class (I guess,
first match ..).<BR><BR>What would the best work-around be? <BR><BR>Kind
regards,<BR><BR>Tor<BR>_______________________________________________<BR>dhcp-users
mailing list<BR></FONT><A href=""><FONT
face="Times New Roman">dhcp-users@lists.isc.org</FONT></A><BR><A href=""><FONT
face="Times New Roman">https://lists.isc.org/mailman/listinfo/dhcp-users</FONT></A><BR></DIV></FONT></BODY></HTML>