<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></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>hi</div><div> </div><div> </div><div>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</div><div> </div><div>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. </div><div> </div><div>could anyone advice what I did wrong?</div><div> </div><div>below is my configure:</div><div> </div><div>class "vlan418RIS" {<br> # This is only for subnet 10.2.2.0/24 subnet </div><div> # 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> }</div><div> </div><div>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> }</div><div> </div><div> </div><div> 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></div><div> </div><div>Any comments will be appreciated</div><div> </div><div>Thanks in advance</div><div> </div><div>julie</div><div> </div><div><br> </div><div data-signatureblock="true"><div> </div><div> </div><div> </div></div></div></body></html>