<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}

p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style><style><!--
.EmailQuote {
margin-left:1pt;
padding-left:4pt;
border-left:#800000 2px solid;
}


--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div> </div><div data-signatureblock="true"> </div><div data-signatureblock="true">Stier and expert</div><div data-signatureblock="true"> </div><div data-signatureblock="true">Great thanks, I have fixed my problem, by using your method.  </div><div data-signatureblock="true">class ...<br>
 match if A and B<br>
</div><div data-signatureblock="true">And now I have another question, regards “server-identifier 10.2.2.10;”.Pl</div><div data-signatureblock="true"> </div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true">My client need if the dhcp client is in subnet10.2.2.0/24, it do not get server-identifier value. so the client will automatically broadcast inside the subnet to get active PXE server.</div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true"> </div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true">Please advice how can I  set server-identifiew value to null? or how can I  let dhcp server give no value to this option?</div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true"> </div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true"> </div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true">Any comments will be appreciated</div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true"> </div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true">Thanks in advance</div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true"> </div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true">Julie<br>
<br>
related original email:</div><div style="margin-right: 0px;" dir="ltr" data-signatureblock="true">==================<br>
Message: 2<br>
Date: Thu, 21 Nov 2013 15:42:33 +0000<br>
From: "Simon Hobson"  <dhcp1@thehobsons.co.uk><br>
To: Users of ISC DHCP  <dhcp-users@lists.isc.org><br>
Subject: RE: how to config class<br>
Message-ID: <0B47B1D65F2EB20968520E6EB2D77A53E@thehobsons.co.uk><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
"Stier, Matthew" wrote:<br>
> Order?<br>
> As written, both classes are true, so the later one overwrites the settings of the prior one.<br>
<br>
<br>
No, order is not significant within the config file - at least, not in that way for class definitions. Some things are evaluated in a specific order, but that is implementation dependent and may change at any time without warning.<br>
<br>
<br>
>  I need most subnets PXE server ip address as 10.1.1.10, and only subnet 10.2.2.0/24 need PXE server address as 10.2.2.10<br>
> How can I write the class statement using two classes. I have tried netboot from my laptop on ip 10.2.2.100, but, I still get server-identifier 10.1.1.10.<br>
<br>
> could anyone advice what I did wrong?<br>
<br>
It's messy (especially if you start to extend it), but re-write the main class so as to exclude the other devices :<br>
<br>
class ...<br>
 match if A and B<br>
<br>
class ...<br>
 match if A and not B<br>
<br>

<br>
> class "vlan418RIS" {<br>
> # This is only for subnet 10.2.2.0/24 subnet<br>
> # this dhcp server is on different subnet, the address 10.2.2.1 is relay agent - router<br>
> match if ( binary-to-ascii(10,8, ".", packet(24,4)) = "10.2.2.1" and<br>
> substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" );<br>
> option vendor-class-identifier "PXEClient";<br>
> server-identifier 10.2.2.10;<br>
> }<br>
><br>
> class "MicrosoftRIS" {<br>
> # This is default, all my subnets using this class, except 10.2.2.0/24<br>
> match if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient";<br>
> option vendor-class-identifier "PXEClient";<br>
> server-identifier 10.1.1.10;<br>
> }<br>
><br>
><br>
> subnet 10.2.2.0 netmask 255.255.255.0 {<br>
> option routers 10.2.2.1;<br>
> option broadcast-address 10.2.2.255;<br>
> }<br>
><br>
> Any comments will be appreciated<br>
><br>
> Thanks in advance<br>
><br>
> julie<br>
><br>

<br>
<br>
</div>


</div></body></html>